diff --git a/.gitignore b/.gitignore index 00094e2..e119053 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ -lib +dist node_modules +yarn-error.log + .idea diff --git a/package.json b/package.json index 21e4e30..b912aac 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@microwavedcola/voter-stake-registry-client", + "name": "@blockworks-foundation/voter-stake-registry-client", "version": "0.1.2", "description": "Client for Voter-stake-registry which is a voter weight addin for Solana's spl-governance program.", "main": "lib/src/index.js", @@ -8,8 +8,9 @@ "scripts": { "build": "tsc", "postinstall": "tsc", - "clean": "rm -rf lib", + "clean": "rm -rf dist", "prepare": "yarn clean && yarn build", + "publish": "yarn prepare && cp package.json dist/ && yarn publish dist", "type-check": "tsc --pretty --noEmit", "format": "prettier --check .", "lint": "eslint . --ext ts --ext tsx --ext js --quiet" diff --git a/tsconfig.json b/tsconfig.json index 8342406..84f99ed 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,17 +2,18 @@ "extends": "@tsconfig/recommended/tsconfig.json", "compilerOptions": { - "outDir": "./lib", - "target": "es6", - "lib": ["es2019"], "allowJs": true, "checkJs": true, "declaration": true, + "declarationDir": "dist", "declarationMap": true, + "esModuleInterop": true, + "lib": ["es2019"], "noImplicitAny": false, + "outDir": "dist", "resolveJsonModule": true, "sourceMap": true, - "esModuleInterop": true + "target": "es6" }, "include": ["./src/**/*"], "exclude": ["./src/**/*.test.js", "node_modules", "**/node_modules"]