diff --git a/index.ts b/index.ts index 1ce96f4b..83a691bf 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,4 @@ -import iconManifest from "./outputs/icon-manifest.json"; +import iconManifest from "./outputs/icon-manifest.json" with { type: "json" }; import { type IconManifest } from "./types.js"; export { ZetaIconNameList } from "./outputs/web/icon-types.js"; diff --git a/package-lock.json b/package-lock.json index 9c52a653..b871c356 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "sinon": "^19.0.2", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", - "typescript": "^5.7.2", + "typescript": "^5.4.5", "webfont": "^11.2.26", "zeta-icon-name-checker": "^0.0.15" } diff --git a/tsconfig.json b/tsconfig.json index 2c19ea67..f7ade61d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,17 +1,20 @@ { "compilerOptions": { - "target": "ES2021", - "module": "Node16", + "target": "ES2022", + "module": "esnext", "strict": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "allowArbitraryExtensions": true, "declaration": true, - "moduleResolution": "node16", + "declarationMap": true, + "emitDeclarationOnly": true, + "isolatedModules": true, + "moduleResolution": "bundler", "allowJs": true, "checkJs": false, "resolveJsonModule": true, - "outDir": "./dist", + "outDir": "./dist", "newLine": "lf", "typeRoots": ["./node_modules/@types", "scripts/definitions"] },