mirror of
https://github.com/dorny/paths-filter.git
synced 2026-03-30 23:10:09 +00:00
Both packages moved to ESM-only in v3, so this migrates the project from CommonJS to ESM: adds "type": "module" to package.json, switches tsconfig to module/moduleResolution "nodenext", adds .js extensions to all relative imports, and reconfigures Jest for ESM support.
15 lines
315 B
JSON
15 lines
315 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2022",
|
|
"module": "nodenext",
|
|
"moduleResolution": "nodenext",
|
|
"outDir": "./lib",
|
|
"rootDir": "./src",
|
|
"strict": true,
|
|
"noImplicitAny": true,
|
|
"isolatedModules": true,
|
|
"esModuleInterop": true
|
|
},
|
|
"exclude": ["node_modules", "**/*.test.ts"]
|
|
}
|