Skip to content

Commit a08887d

Browse files
committed
adding development conditions and distinct build tsconfig
1 parent 25c223e commit a08887d

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

packages/b2c-dx-mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
}
6060
},
6161
"scripts": {
62-
"build": "tsc",
62+
"build": "shx rm -rf dist && tsc -p tsconfig.build.json",
6363
"clean": "shx rm -rf dist",
6464
"lint": "eslint",
6565
"format": "prettier --write src",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"customConditions": []
5+
}
6+
}

packages/b2c-dx-mcp/tsconfig.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
{
2+
"extends": "@salesforce/dev-config/tsconfig-strict-esm",
23
"compilerOptions": {
3-
"target": "ES2022",
4-
"module": "NodeNext",
5-
"moduleResolution": "NodeNext",
6-
"declaration": true,
7-
"declarationMap": true,
8-
"sourceMap": true,
94
"outDir": "dist",
105
"rootDir": "src",
11-
"strict": true,
12-
"esModuleInterop": true,
136
"skipLibCheck": true,
7+
"esModuleInterop": true,
148
"forceConsistentCasingInFileNames": true,
15-
"resolveJsonModule": true
9+
"verbatimModuleSyntax": true,
10+
"customConditions": ["development"]
1611
},
17-
"include": ["src/**/*"],
18-
"exclude": ["node_modules", "dist"]
12+
"include": ["./src/**/*"]
1913
}
20-

0 commit comments

Comments
 (0)