diff --git a/.npmignore b/.npmignore index f8663c5d..23b6051e 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1,3 @@ -logos/ \ No newline at end of file +node_modules/ +logos/ +.DS_Store diff --git a/package.json b/package.json index 29c82124..d9179d17 100644 --- a/package.json +++ b/package.json @@ -3,11 +3,16 @@ "version": "2.0.0", "description": "Tokenlist typings, schema and lists used on Trader Joe.", "main": "dist/index.js", + "types": "index.d.ts", + "files": [ + "dist" + ], "repository": "https://github.com/traderjoe-xyz/joe-tokenlists.git", "author": "traderjoexyz", "scripts": { "start": "npx tsc --watch", - "build": "npx tsc --build" + "build": "npx tsc --build", + "prepublishOnly": "npx tsc --build" }, "license": "MIT", "publishConfig": { diff --git a/tsconfig.json b/tsconfig.json index c08b829e..1be36101 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "target": "es2016", "module": "commonjs", "esModuleInterop": true, + "declaration": true, "forceConsistentCasingInFileNames": true, "strict": true, "skipLibCheck": true,