Skip to content

Commit a04792b

Browse files
committed
chore: make transformation lighter
1 parent 1fb8491 commit a04792b

File tree

2 files changed

+7
-34
lines changed

2 files changed

+7
-34
lines changed

@commitlint/core/package.json

+4-10
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"pretest": "dep-check",
88
"test": "ava -c 4",
9-
"build": "cross-env NODE_ENV=production babel src --out-dir lib",
9+
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
10+
"watch": "babel src --out-dir lib --watch --source-maps",
1011
"clean": "rimraf lib",
1112
"prepublish": "npm run build"
1213
},
@@ -31,7 +32,6 @@
3132
"sourceMaps": "inline",
3233
"plugins": [
3334
"add-module-exports",
34-
"istanbul",
3535
[
3636
"transform-runtime",
3737
{
@@ -40,11 +40,6 @@
4040
}
4141
]
4242
]
43-
},
44-
"production": {
45-
"ignore": [
46-
"**/*.test.js"
47-
]
4843
}
4944
},
5045
"presets": [
@@ -55,8 +50,7 @@
5550
"node": 4
5651
}
5752
}
58-
],
59-
"stage-0"
53+
]
6054
],
6155
"plugins": [
6256
"add-module-exports",
@@ -106,11 +100,11 @@
106100
"ava": "0.18.2",
107101
"babel-cli": "^6.18.0",
108102
"babel-plugin-add-module-exports": "0.2.1",
103+
"babel-plugin-async-to-promises": "^1.0.5",
109104
"babel-plugin-istanbul": "4.1.3",
110105
"babel-plugin-transform-runtime": "6.23.0",
111106
"babel-polyfill": "^6.20.0",
112107
"babel-preset-env": "^1.2.1",
113-
"babel-preset-stage-0": "^6.16.0",
114108
"babel-register": "6.24.1",
115109
"conventional-changelog-cli": "1.2.0",
116110
"conventional-recommended-bump": "0.3.0",

@commitlint/prompt/package.json

+3-24
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "commitizen prompt using commitlint.config.js",
55
"main": "./lib/index.js",
66
"scripts": {
7-
"build": "cross-env NODE_ENV=production babel src --out-dir lib",
7+
"build": "cross-env NODE_ENV=production babel src --out-dir lib --source-maps",
8+
"watch": "babel src --out-dir lib --watch --source-maps",
89
"clean": "rimraf lib",
910
"commit": "git-cz",
1011
"pretest": "dep-check",
@@ -24,26 +25,6 @@
2425
]
2526
},
2627
"babel": {
27-
"env": {
28-
"development": {
29-
"sourceMaps": "inline",
30-
"plugins": [
31-
"add-module-exports",
32-
[
33-
"transform-runtime",
34-
{
35-
"polyfill": false,
36-
"regenerator": true
37-
}
38-
]
39-
]
40-
},
41-
"production": {
42-
"ignore": [
43-
"**/*.test.js"
44-
]
45-
}
46-
},
4728
"presets": [
4829
[
4930
"env",
@@ -52,8 +33,7 @@
5233
"node": 4
5334
}
5435
}
55-
],
56-
"stage-0"
36+
]
5737
],
5838
"plugins": [
5939
"add-module-exports",
@@ -96,7 +76,6 @@
9676
"babel-plugin-add-module-exports": "^0.2.1",
9777
"babel-plugin-transform-runtime": "^6.23.0",
9878
"babel-preset-env": "^1.6.0",
99-
"babel-preset-stage-0": "^6.24.1",
10079
"babel-register": "^6.24.1",
10180
"commitizen": "^2.9.6",
10281
"cross-env": "^5.0.1",

0 commit comments

Comments
 (0)