Skip to content

Commit

Permalink
feat!: publish with "main", src & tests, fix ts.map
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Apr 26, 2021
1 parent bde81c0 commit f94c999
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
},
"scripts": {
"build": "npm run build:js && npm run build:types",
"build:js": "npm_config_yes=true ipjs build --tests",
"build:types": "tsc --build",
"build:js": "npm_config_yes=true ipjs build --tests --main && npm run build:copy",
"build:copy": "cp -a tsconfig.json *.js *.ts lib/ test/ dist/",
"build:types": "npm run build:copy && cd dist && tsc --build",
"prepublishOnly": "npm run build",
"publish": "npm_config_yes=true npx ipjs@latest publish",
"lint": "standard",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"outDir": "dist/types",
"outDir": "types",
"skipLibCheck": true,
"stripInternal": true,
"resolveJsonModule": true,
Expand All @@ -39,7 +39,8 @@
"include": [ "lib", "." ],
"exclude": [
"node_modules/",
"./dist/",
"esm/",
"cjs/",
"example*.js"
],
"compileOnSave": false
Expand Down

0 comments on commit f94c999

Please sign in to comment.