Skip to content

Commit

Permalink
v0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Jan 2, 2024
1 parent 8eacb37 commit 9644b5b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 4 additions & 2 deletions script/ts/config/package.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ const packageConfig = {
keywords: pack.keywords,
license: pack.license,
homepage: pack.homepage,
main: "js/index.js",
types: "js/index.d.ts",
main: "js/index",
types: "js/index",
// main: "js/index.js",
// types: "js/index.d.ts",
// main: 'index.js',
files: [
"svg/**/*.svg",
Expand Down
12 changes: 10 additions & 2 deletions script/ts/config/ts.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@


const tsConfig = {
target: "es6", // Specify ECMAScript target version
module: "commonjs", // Specify module code generation
allowSyntheticDefaultImports: true,
esModuleInterop: true,
declaration: true,
esModuleInterop: true, // Enables compatibility with Babel imports
declaration: true, // Enables generation of .d.ts files
strict: true,
skipLibCheck: true, // Skip type checking of declaration files
forceConsistentCasingInFileNames: true, // Disallow inconsistently-cased references
resolveJsonModule: true, // Allow importing of .json files
lib: ["es2015", "dom"] // Specify library files to be included in the compilation



// allowImportingTsExtensions?: boolean;
// allowJs?: boolean;
// allowArbitraryExtensions?: boolean;
Expand Down

0 comments on commit 9644b5b

Please sign in to comment.