Skip to content

Commit 4009d38

Browse files
Merge pull request #5 from jacksierkstra/develop
Develop
2 parents 07a0c27 + d9eca4a commit 4009d38

File tree

4 files changed

+325
-12
lines changed

4 files changed

+325
-12
lines changed

.npmignore

+9-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22
.github/
33
.vscode/
44
jest.config.ts
5-
src/**/*.test.ts
65

76
# Exclude coverage output
87
coverage/
98

109
# Yarn internals
1110
.yarn/
12-
.yarnrc.yml
11+
.yarnrc.yml
12+
13+
# Ignore test files
14+
dist/**/*.test.js
15+
dist/**/*.test.d.ts
16+
dist/**/*.test.d.ts.map
17+
18+
# Ignore source maps (optional if you don’t need them)
19+
dist/**/*.d.ts.map

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"scripts": {
99
"test": "jest",
1010
"build": "tsc",
11-
"prepublishOnly": "yarn build"
11+
"clean": "rimraf dist",
12+
"prepublishOnly": "yarn clean && yarn build && tsc-alias"
1213
},
1314
"files": [
1415
"dist/",
@@ -20,8 +21,10 @@
2021
"@types/jest": "^29.5.14",
2122
"@types/xmldom": "^0.1.34",
2223
"jest": "^29.7.0",
24+
"rimraf": "^6.0.1",
2325
"ts-jest": "^29.2.6",
2426
"ts-node": "^10.9.2",
27+
"tsc-alias": "^1.8.11",
2528
"typescript": "^5.7.3",
2629
"xmldom": "^0.6.0"
2730
},

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@
109109
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
110110

111111
"paths": {
112-
"@lib/*": ["src/*"]
112+
"@lib/*": ["./src/*"]
113113
},
114114

115115
"resolveJsonModule": true
116116
},
117117

118118
"include": ["src/**/*"],
119-
"exclude": ["node_modules", "dist"]
119+
"exclude": ["node_modules", "dist", "**/*.test.ts"]
120120
}

0 commit comments

Comments
 (0)