Skip to content

Commit

Permalink
build: changed module in tsconfig to esnext due to not being able to …
Browse files Browse the repository at this point in the history
…import json directly
  • Loading branch information
benken committed Dec 4, 2024
1 parent fbec395 commit 91b1c18
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
},
Expand Down

0 comments on commit 91b1c18

Please sign in to comment.