Skip to content

Commit 927fd6d

Browse files
committed
add typescript options for package publish to package.json and tsconfig.json
1 parent 16ad869 commit 927fd6d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.npmignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
logos/
1+
node_modules/
2+
logos/
3+
.DS_Store

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
"version": "2.0.0",
44
"description": "Tokenlist typings, schema and lists used on Trader Joe.",
55
"main": "dist/index.js",
6+
"types": "index.d.ts",
7+
"files": [
8+
"dist"
9+
],
610
"repository": "https://github.com/traderjoe-xyz/joe-tokenlists.git",
711
"author": "traderjoexyz",
812
"scripts": {
913
"start": "npx tsc --watch",
10-
"build": "npx tsc --build"
14+
"build": "npx tsc --build",
15+
"prepublishOnly": "npx tsc --build"
1116
},
1217
"license": "MIT",
1318
"publishConfig": {

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"target": "es2016",
44
"module": "commonjs",
55
"esModuleInterop": true,
6+
"declaration": true,
67
"forceConsistentCasingInFileNames": true,
78
"strict": true,
89
"skipLibCheck": true,

0 commit comments

Comments
 (0)