fix packaging instructions

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2022-01-09 09:14:51 +01:00
parent 09a0c0567e
commit 3db82df7b5
3 changed files with 11 additions and 7 deletions

4
.gitignore vendored
View File

@ -1,4 +1,6 @@
lib
dist
node_modules
yarn-error.log
.idea

View File

@ -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"

View File

@ -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"]