Skip to content

Commit

Permalink
Made separate tsconfig for soundgen
Browse files Browse the repository at this point in the history
  • Loading branch information
neonfuz committed Jul 27, 2022
1 parent 3ba21a4 commit 7645574
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"scripts": {
"dev": "concurrently -n web,audio npm:dev-web npm:dev-audio",
"dev-web": "vite dev",
"dev-audio": "esbuild --bundle --watch ./src/lib/soundgen/index.js --outfile=./static/soundgen.bundle.js",
"dev-audio": "esbuild --bundle --watch --tsconfig=./tsconfig.soundgen.json ./src/lib/soundgen/index.js --outfile=./static/soundgen.bundle.js",
"build": "concurrently -n web,audio npm:build-web npm:build-audio",
"build-web": "vite build",
"build-audio": "esbuild --bundle ./src/lib/soundgen/index.js --outfile=./static/soundgen.bundle.js",
"build-audio": "esbuild --bundle --tsconfig=./tsconfig.soundgen.json ./src/lib/soundgen/index.js --outfile=./static/soundgen.bundle.js",
"package": "svelte-kit package",
"preview": "vite preview",
"prepare": "svelte-kit sync",
Expand Down
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"lib": [
"esnext"
]
"strict": true
}
}
42 changes: 42 additions & 0 deletions tsconfig.soundgen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"baseUrl": ".",
"paths": {
"$lib": [
"src/lib"
],
"$lib/*": [
"src/lib/*"
]
},
"rootDirs": [
"."
],
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"preserveValueImports": true,
"lib": [
"esnext",
"DOM"
],
"moduleResolution": "node",
"module": "esnext",
"target": "esnext"
},
"include": [
"./src/**/*.js",
"./src/**/*.ts",
"./src/**/*.svelte"
],
"exclude": [
"./node_modules/**"
]
}

0 comments on commit 7645574

Please sign in to comment.