Skip to content

Commit fda1024

Browse files
committed
update
1 parent 463af70 commit fda1024

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

generator/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const {
33
GetVersion
44
} = require('../utils');
55

6-
module.exports = (api, option, rootOptions) => {
6+
module.exports = (api, option) => {
77
// 扩展 package.json
88
api.extendPackage({
99
dependencies: {
@@ -31,7 +31,7 @@ module.exports = (api, option, rootOptions) => {
3131
api.postProcessFiles(files => {
3232
const babelConfigRaw = files['babel.config.js'];
3333
if (babelConfigRaw) {
34-
files['babel.config.js'] = MergePresets(babelConfigRaw, 'react-app');
34+
files['babel.config.js'] = MergePresets({}, 'react-app');
3535
}
3636
});
3737
};

package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
{
22
"name": "@o3o/vue-cli-plugin-react",
33
"version": "0.1.0",
4-
"description": "",
54
"main": "index.js",
65
"scripts": {
76
"test": "echo \"Error: no test specified\" && exit 1"
87
},
98
"author": "aircity <aircity@drrr.us>",
10-
"license": "MIT"
11-
}
9+
"license": "MIT",
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/Aircity/vue-cli-plugin-react.git"
13+
},
14+
"bugs": {
15+
"url": "https://github.com/Aircity/vue-cli-plugin-react/issues"
16+
},
17+
"homepage": "https://github.com/Aircity/vue-cli-plugin-react#readme",
18+
"description": ""
19+
}

0 commit comments

Comments
 (0)