Skip to content

Commit 6072422

Browse files
committed
Exclude test files from published package
Fixes module resolution issues reported in #5 by preventing TypeScript from compiling test files into the dist directory.
1 parent bb4c135 commit 6072422

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pluscodes",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Library to encode and decode Open Location Codes (Plus Codes) with support for 2-15 digit precision",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

tsconfig.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@
88
"sourceMap": true,
99
"outDir": "./dist",
1010
"strict": true
11-
}
11+
},
12+
"include": [
13+
"src/**/*"
14+
],
15+
"exclude": [
16+
"**/*.spec.ts",
17+
"dist",
18+
"node_modules"
19+
]
1220
}

0 commit comments

Comments
 (0)