diff --git a/index.js b/index.js index 3d72971..c1963a5 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,9 @@ +const path = require('path'); const fg = require('fast-glob'); +const normalize = require('normalize-path'); -const entries = fg.sync('test/fixtures/index.html') +const input = normalize(path.resolve('test/fixtures/index.html')); +console.log({input}) +const entries = fg.sync(input) console.log({entries}) \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7f1007a..4bb2979 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "fast-glob-demo", - "version": "1.0.0", + "version": "0.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -104,6 +104,11 @@ "picomatch": "^2.0.5" } }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + }, "picomatch": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", diff --git a/package.json b/package.json index 23448b1..ecc404b 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "author": "", "license": "ISC", "dependencies": { - "fast-glob": "^3.2.4" + "fast-glob": "^3.2.4", + "normalize-path": "^3.0.0" } }