Skip to content

Commit be888bb

Browse files
Karan KanwarKaran Kanwar
Karan Kanwar
authored and
Karan Kanwar
committed
More build changes
1 parent 1577212 commit be888bb

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Dist files
22
dist
3+
dist-types
34

45
# Logs
56
logs

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "@spresso-sdk/price_optimization",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "Spresso Price Optimization SDK for Node",
55
"sideEffects": false,
66
"private": false,
77
"scripts": {
8-
"build": "npx tsc -b ./tsconfig.json",
8+
"build": "npx tsc -p ./tsconfig.json",
9+
"build:types": "tsc -p ./tsconfig.types.json",
910
"lint": "npx eslint ./src"
1011
},
1112
"author": "Spresso",
@@ -25,7 +26,8 @@
2526
"axios": "^1.4.0"
2627
},
2728
"files": [
28-
"dist"
29+
"dist",
30+
"dist-types"
2931
],
3032
"homepage": "",
3133
"repository": {

tsconfig.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
"noErrorTruncation": true,
2727
"esModuleInterop": true,
2828
"removeComments": true,
29-
"outDir": "dist"
30-
}
29+
"outDir": "dist",
30+
"rootDir": "src"
31+
},
32+
"include": ["src/"]
3133
}

tsconfig.types.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"declarationDir": "dist-types",
5+
"rootDir": "src",
6+
"declaration": true,
7+
"emitDeclarationOnly": true,
8+
"removeComments": false,
9+
"strict": true
10+
},
11+
"extends": "./tsconfig.json",
12+
"include": ["src/"]
13+
}

0 commit comments

Comments
 (0)