Skip to content

Commit f7df10d

Browse files
committed
update for #2
1 parent 88d257c commit f7df10d

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
.idea/
33
npm-debug.log
44
node_modules/
5-
release/
5+
bin/

bin/cli

-2
This file was deleted.

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
22
"name": "typescript-standard",
3-
"version": "0.2.18",
3+
"version": "0.2.19",
44
"description": "Zero-configuration TypeScript Standard Validation",
5-
"main": "./release/lib/index.js",
5+
"main": "./bin/index.js",
66
"bin": {
7-
"standard": "./bin/cli"
7+
"standard": "./bin/cli.js"
88
},
99
"scripts": {
10-
"build": "npm run build:clean && npm run build:tsc",
10+
"build": "npm run build:clean && npm run build:webpack",
1111
"build:clean": "rm -f ./bin/*.js",
1212
"build:tsc": "node_modules/.bin/tsc -p tsconfig.release.json",
1313
"build:webpack": "node_modules/.bin/webpack --display-error-details --config ./webpack.config.ts",
1414
"prepublish": "npm run build"
1515
},
1616
"files": [
1717
"bin",
18-
"release",
1918
"LICENSE",
2019
"README.md",
2120
"tslint.json"

webpack.config.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ export default [{
3535
]
3636
},
3737
plugins: [
38-
new webpack.BannerPlugin('#!/usr/bin/env node', { raw: 1, entryOnly: 1 }),
39-
new webpack.optimize.UglifyJsPlugin({
40-
compress: {
41-
warnings: false
42-
}
43-
})
38+
new webpack.BannerPlugin('#!/usr/bin/env node', { raw: 1, entryOnly: 1 })
39+
// new webpack.optimize.UglifyJsPlugin({
40+
// compress: {
41+
// warnings: false
42+
// }
43+
// })
4444
]
4545
},
4646
{
@@ -66,11 +66,11 @@ export default [{
6666
]
6767
},
6868
plugins: [
69-
new webpack.optimize.UglifyJsPlugin({
70-
compress: {
71-
warnings: false
72-
}
73-
})
69+
// new webpack.optimize.UglifyJsPlugin({
70+
// compress: {
71+
// warnings: false
72+
// }
73+
// })
7474
]
7575
}
7676
]

0 commit comments

Comments
 (0)