Skip to content

Commit efa33bb

Browse files
committed
Reduce size of build files
1 parent cd461c2 commit efa33bb

File tree

10 files changed

+16
-60
lines changed

10 files changed

+16
-60
lines changed

engine/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
{
22
"name": "slang-playground-engine",
3-
"version": "0.0.1",
43
"workspaces": [
54
"shared",
65
"slang-compilation-engine",
76
"playground-render-canvas",
87
"playground-uniform-panel"
98
],
109
"scripts": {
11-
"build": "npm run build:shared && npm-run-all --parallel build:slang-compilation-engine build:playground-render-canvas build:playground-uniform-panel",
12-
"build:shared": "npm --prefix ./shared run build",
13-
"build:slang-compilation-engine": "npm --prefix ./slang-compilation-engine run build",
14-
"build:playground-render-canvas": "npm --prefix ./playground-render-canvas run build",
15-
"build:playground-uniform-panel": "npm --prefix ./playground-uniform-panel run build"
10+
"build": "npm run build -w shared && npm run build --workspaces --exclude=shared"
1611
}
1712
}

engine/playground-render-canvas/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "playground-render-canvas",
33
"description": "Extension for the Slang Shading Language",
4-
"version": "0.0.1",
54
"main": "dist/index.umd.js",
65
"module": "dist/index.es.js",
76
"types": "dist/index.d.ts",
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
{
22
"compilerOptions": {
3-
"module": "esnext",
4-
"target": "esnext",
5-
"lib": [
6-
"esnext",
7-
"WebWorker",
8-
"DOM"
9-
],
103
"rootDir": "src",
11-
"sourceMap": true,
12-
"types": [
13-
"@webgpu/types",
14-
],
15-
"moduleResolution": "bundler"
164
},
175
"include": [
186
"src"
197
],
20-
"exclude": [
21-
"node_modules",
22-
".vscode-test-web"
23-
],
24-
"references": [{ "path": "../shared/tsconfig.json" }]
8+
"extends": "../tsconfig.base.json"
259
}

engine/playground-uniform-panel/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "playground-uniform-panel",
33
"description": "Extension for the Slang Shading Language",
4-
"version": "0.0.1",
54
"main": "dist/index.umd.js",
65
"module": "dist/index.es.js",
76
"types": "dist/index.d.ts",
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
{
22
"compilerOptions": {
3-
"module": "esnext",
4-
"target": "esnext",
5-
"lib": [
6-
"esnext",
7-
"WebWorker",
8-
"DOM"
9-
],
103
"rootDir": "src",
11-
"sourceMap": true,
12-
"types": [
13-
"@webgpu/types",
14-
],
15-
"moduleResolution": "bundler"
164
},
175
"include": [
186
"src"
197
],
20-
"exclude": [
21-
"node_modules",
22-
".vscode-test-web"
23-
],
24-
"references": [{ "path": "../shared/tsconfig.json" }]
8+
"extends": "../tsconfig.base.json"
259
}

engine/shared/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "slang-playground-shared",
33
"description": "Shared code for the Slang VSCode extension",
4-
"version": "0.0.1",
54
"main": "dist/index.umd.js",
65
"module": "dist/index.es.js",
76
"types": "dist/index.d.ts",

engine/shared/tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
{
2+
"extends": "../tsconfig.base.json",
23
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "es2020",
54
"lib": [
65
"es2020",
76
"WebWorker",
87
"DOM"
98
],
109
"rootDir": "src",
11-
"sourceMap": true,
12-
"types": [
13-
"@webgpu/types",
14-
],
1510
"composite": true,
1611
"outDir": "dist"
1712
},

engine/slang-compilation-engine/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "slang-compilation-engine",
3-
"version": "0.0.1",
43
"description": "Slang compilation engine",
54
"main": "dist/index.umd.js",
65
"module": "dist/index.es.js",
Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
{
2+
"extends": "../tsconfig.base.json",
23
"compilerOptions": {
3-
"target": "es2020",
4-
"module": "commonjs",
54
"outDir": "dist",
65
"rootDir": "src",
76
"strict": true,
8-
"moduleResolution": "node",
9-
"declaration": true,
10-
"types": [
11-
"@webgpu/types"
12-
]
7+
"declaration": true
138
},
149
"include": [
1510
"src"
16-
],
17-
"exclude": [
18-
"node_modules"
1911
]
2012
}

engine/tsconfig.base.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"module": "esnext",
4+
"target": "esnext",
5+
"lib": ["esnext", "WebWorker", "DOM"],
6+
"sourceMap": true,
7+
"types": ["@webgpu/types"],
8+
"moduleResolution": "bundler",
9+
}
10+
}

0 commit comments

Comments
 (0)