Skip to content

Commit f0f55ab

Browse files
committed
added clean and pack scripts
1 parent 8506a5e commit f0f55ab

6 files changed

Lines changed: 11 additions & 19 deletions

File tree

.npmignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"name": "klepper",
3-
"version": "0.0.1-alpha",
4-
"author": "Piotr Szewczyk",
5-
"description": "NodeJS library to catching exceptions.",
2+
"version": "0.0.0",
63
"license": "MIT",
74
"private": true,
85
"workspaces": [
@@ -11,8 +8,10 @@
118
"packages/commons"
129
],
1310
"scripts": {
14-
"build": "lerna run build",
11+
"build": "lerna run clean && lerna run --stream --concurrency 1 --sort build",
1512
"lint": "lerna run lint",
13+
"clean": "lerna run clean",
14+
"package": "lerna run pack",
1615
"test": "lerna run test"
1716
},
1817
"dependencies": {},
@@ -22,6 +21,7 @@
2221
"lerna": "^4.0.0",
2322
"jest": "^27.5.1",
2423
"prettier": "^2.5.1",
24+
"rimraf": "^3.0.2",
2525
"ts-jest": "^27.1.3",
2626
"tslint": "^6.1.3",
2727
"typescript": "^4.6.2"

packages/commons/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"build": "tsc -p tsconfig.json",
1515
"lint": "run-s lint:prettier",
1616
"lint:prettier": "prettier */**/*.{js,ts,tsx} --write",
17+
"pack": "npm pack",
18+
"clean": "rimraf dist",
1719
"test": "jest",
1820
"test:watch": "jest --watch --notify"
1921
},

packages/node/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"build": "tsc -p tsconfig.json",
2424
"lint": "run-s lint:prettier",
2525
"lint:prettier": "prettier */**/*.{js,ts,tsx} --write",
26+
"pack": "npm pack",
27+
"clean": "rimraf dist",
2628
"test": "jest",
2729
"test:watch": "jest --watch --notify"
2830
},

packages/transport/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
"build": "tsc -p tsconfig.json",
1313
"lint": "run-s lint:prettier",
1414
"lint:prettier": "prettier */**/*.{js,ts,tsx} --write",
15+
"pack": "npm pack",
16+
"clean": "rimraf dist",
1517
"test": "jest",
1618
"test:watch": "jest --watch --notify"
1719
},

0 commit comments

Comments
 (0)