-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
executable file
·44 lines (42 loc) · 1011 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env node
const createMonorepo = require("base-create-monorepo");
createMonorepo({
package: {
keywords: ["create-babel-monorepo"],
scripts: {
start: "lerna run --parallel start",
build: "lerna run build",
"build:watch": "lerna run --parallel build:watch",
},
},
devDependencies: [
"@babel/core",
"@babel/cli",
"@babel/node",
"@babel/preset-env",
"@babel/plugin-transform-runtime",
],
eachPackage: {
dependencies: ["@babel/runtime"],
package: {
main: "dist/index.js",
files: ["dist"],
keywords: ["create-babel-monorepo"],
scripts: {
start: "node .",
build: "babel --root-mode upward src --out-dir dist",
"build:watch": "npm run build -- --watch",
},
},
files: ["src/index.js"],
},
files: [
{
path: "babel.config.json",
contents: {
presets: ["@babel/preset-env"],
plugins: ["@babel/plugin-transform-runtime"],
},
},
],
});