Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Commit 54dd367

Browse files
committed
Update build
1 parent 353de31 commit 54dd367

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
"type": "git",
88
"url": "https://github.com/csvenke/react-semantics.git"
99
},
10-
"main": "index.ts",
11-
"types": "index.d.ts",
10+
"main": "dist/index.ts",
11+
"types": "dist/index.d.ts",
12+
"files": [
13+
"dist"
14+
],
1215
"private": false,
1316
"license": "MIT",
1417
"keywords": [
@@ -47,9 +50,9 @@
4750
"typescript": "^2.9.2"
4851
},
4952
"scripts": {
50-
"build": "npm run clean:build && npm run lint && npm run prettify && npm run test && tsc -p ./tsconfig.build.json && cp ./package.json ./dist/lib",
51-
"clean:build": "rimraf ./dist/lib",
52-
"dist": "cd ./dist/lib && npm publish",
53+
"build": "npm run clean:build && npm run lint && npm run prettify && npm run test && tsc -p ./tsconfig.build.json",
54+
"clean:build": "rimraf ./dist",
55+
"prepublish": "npm run build",
5356
"lint": "tslint -c tslint.json './src/**/*'",
5457
"lintfix": "tslint -c tslint.json --fix './src/**/*'",
5558
"prettify": "prettier -c .prettierrc --write \"src/**/*.@(ts|tsx)\"",

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "dist/lib",
4+
"outDir": "dist",
55
"sourceMap": false,
66
"declaration": true,
77
"removeComments": false

0 commit comments

Comments
 (0)