diff --git a/packages/fs-routes/index.ts b/packages/fs-routes/index.ts index 0eb695d0..8fd5e9ab 100644 --- a/packages/fs-routes/index.ts +++ b/packages/fs-routes/index.ts @@ -51,7 +51,7 @@ export default function fsRoutes( if (!memo[cacheKey]) { memo[cacheKey] = glob - .sync(options.glob, { cwd: dir }) + .sync(options.glob, { cwd: dir, posix: true }) .sort(compare) .map((file) => ({ path: path.resolve(dir, file), diff --git a/packages/fs-routes/package-lock.json b/packages/fs-routes/package-lock.json index 699fd74f..36b21bd7 100644 --- a/packages/fs-routes/package-lock.json +++ b/packages/fs-routes/package-lock.json @@ -9,7 +9,7 @@ "version": "12.0.0", "license": "MIT", "peerDependencies": { - "glob": ">=7.1.6" + "glob": ">=10.2.7" } }, "node_modules/balanced-match": { @@ -41,20 +41,22 @@ "peer": true }, "node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "version": "10.2.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.2.7.tgz", + "integrity": "sha512-jTKehsravOJo8IJxUGfZILnkvVJM/MOfHRs8QcXolVef2zNI9Tqyy5+SeuOAZd3upViEZQLyFpQhYiHLrMUNmA==", "peer": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2", + "path-scurry": "^1.7.0" + }, + "bin": { + "glob": "dist/cjs/src/bin.js" }, "engines": { - "node": "*" + "node": ">=16 || 14 >=14.17" }, "funding": { "url": "https://github.com/sponsors/isaacs" diff --git a/packages/fs-routes/package.json b/packages/fs-routes/package.json index 2fbb896b..9716bc1d 100644 --- a/packages/fs-routes/package.json +++ b/packages/fs-routes/package.json @@ -28,6 +28,6 @@ }, "homepage": "https://github.com/kogosoftwarellc/open-api/tree/master/packages/fs-routes#readme", "peerDependencies": { - "glob": ">=7.1.6" + "glob": ">=10.2.7" } }