Skip to content

Commit

Permalink
resolve build
Browse files Browse the repository at this point in the history
  • Loading branch information
KamyarTaher committed Jul 28, 2024
1 parent 86b1fda commit 1bddcb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zust",
"version": "0.1.10",
"version": "0.1.12",
"description": "A powerful state manager based on Zustand",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand Down
30 changes: 7 additions & 23 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,26 @@
{
"compilerOptions": {
// Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"target": "ES6",
"module": "ESNext",
"moduleDetection": "force",
"moduleResolution": "node",
"jsx": "react-jsx",
"allowJs": true,

"emitDeclarationOnly": true,

// Bundler mode
"moduleResolution": "node", // Changez "bundler" en "node"
"allowImportingTsExtensions": false, // Changez true en false
"verbatimModuleSyntax": false, // Changez true en false
// Best practices
"allowImportingTsExtensions": false,
"verbatimModuleSyntax": false,
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,

// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false,

// Additional settings for the project
"esModuleInterop": true,
"resolveJsonModule": true,
"isolatedModules": true,
"sourceMap": true,
"declaration": true,
"declarationMap": true,
"rootDir": "./src",
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules", "dist", "tests"],

}


"exclude": ["node_modules", "dist", "tests"]
}

0 comments on commit 1bddcb3

Please sign in to comment.