Skip to content

Commit 9c7b2c6

Browse files
authored
build: remove source maps, src from package (#2812)
* build: remove source maps, src from package Signed-off-by: gpbl <[email protected]> * Re-add styles to dist Signed-off-by: gpbl <[email protected]> --------- Signed-off-by: gpbl <[email protected]>
1 parent 6089e62 commit 9c7b2c6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@
175175
},
176176
"files": [
177177
"dist",
178-
"src",
178+
"src/style.css",
179+
"src/style.module.css",
180+
"src/style.css.d.ts",
181+
"src/style.module.css.d.ts",
179182
"jalali.js",
180183
"jalali.d.ts",
181184
"persian.js",

tsconfig-cjs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "./tsconfig-base.json",
33
"compilerOptions": {
44
"outDir": "./dist/cjs",
5-
"module": "CommonJS"
5+
"module": "CommonJS",
6+
"sourceMap": false
67
},
78
"include": ["src"],
89
"exclude": ["**/*.test.*"]

tsconfig-esm.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "./tsconfig-base.json",
33
"compilerOptions": {
44
"outDir": "./dist/esm",
5-
"module": "ES2020"
5+
"module": "ES2020",
6+
"sourceMap": false
67
},
78
"include": ["src"],
89
"exclude": ["**/*.test.*"]

0 commit comments

Comments
 (0)