Skip to content

Commit

Permalink
Added proper pre-publish bundling, replacing transpiling the library …
Browse files Browse the repository at this point in the history
…in postinstall
  • Loading branch information
artus9033 committed Aug 19, 2021
1 parent f67be72 commit b6d23bc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "tsdiskdb",
"version": "2.0.0",
"version": "2.1.0",
"description": "TypeScript disk-based JSON database for storing small structures with a Mongo-like interface",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"postinstall": "npm run build",
"test": "jest"
"test": "jest",
"prepublish": "npm run build"
},
"author": "artus9033",
"homepage": "github.com/artus9033/tsdiskdb",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"noImplicitAny": false,
"moduleResolution": "node",
"sourceMap": true,
"declaration": true,
"outDir": "dist",
"rootDir": "src",
"declaration": true,
"types": ["node", "jest"]
},
"exclude": ["test"]
"exclude": ["test", "dist"]
}

0 comments on commit b6d23bc

Please sign in to comment.