Skip to content

Commit 6954781

Browse files
committed
fix(build): no source map in prod
1 parent a6b98f5 commit 6954781

File tree

4 files changed

+40
-2
lines changed

4 files changed

+40
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install modules
1717
run: npm ci --ignore-scripts
1818
- name: Build
19-
run: npm run build
19+
run: npm run build:prod
2020
- name: Test
2121
run: npm run test
2222
- name: Generate docs

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
- name: ESLint
1414
run: npm run lint
1515
- name: TypeScript validity
16-
run: npm run build
16+
run: npm run build:prod
1717
- name: Run Tests
1818
run: npm run test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"scripts": {
4848
"generate-docs": "typedoc",
4949
"build": "tsc --build tsconfig.json",
50+
"build:prod": "tsc --build tsconfig.prod.json",
5051
"cli": "npm run build && node -r dotenv/config ./dist/cli/cli.js",
5152
"format": "npm run lint:eslint -- --fix",
5253
"prepack": "npm run build",

tsconfig.prod.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"compilerOptions": {
3+
"lib": [
4+
"es2022",
5+
"DOM"
6+
],
7+
"module": "NodeNext",
8+
"target": "es2022",
9+
"esModuleInterop": true,
10+
"noImplicitAny": true,
11+
"noImplicitReturns": true,
12+
"noImplicitThis": true,
13+
"noImplicitOverride": true,
14+
"removeComments": false,
15+
"allowSyntheticDefaultImports": true,
16+
"forceConsistentCasingInFileNames": true,
17+
"noFallthroughCasesInSwitch": true,
18+
"skipLibCheck": true,
19+
"moduleResolution": "NodeNext",
20+
"resolveJsonModule": true,
21+
"strictNullChecks": true,
22+
"isolatedModules": true,
23+
"noEmit": false,
24+
"outDir": "./dist",
25+
"strict": true,
26+
"sourceMap": false,
27+
"composite": false,
28+
"declaration": true,
29+
"stripInternal": true
30+
},
31+
"files": [
32+
"./src/index.ts"
33+
],
34+
"include": [
35+
"./src"
36+
]
37+
}

0 commit comments

Comments
 (0)