Skip to content

Commit 71c74df

Browse files
committed
feat: ebuild 0.2.1
1 parent 72915c8 commit 71c74df

File tree

13 files changed

+13097
-13040
lines changed

13 files changed

+13097
-13040
lines changed

bin/ebuild-gen.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// const fs = require('fs');
22
const path = require('path');
33
const copydir = require('copy-dir');
4-
const {writeJsonIntoFile} = require('../scripts/eb-bin/utils');
5-
4+
5+
const {writeJsonIntoFile} = require('../scripts/scripts/ebuild/utils');
66

77
function main () {
88
const currentPath = process.cwd();
@@ -17,13 +17,13 @@ function main () {
1717
);
1818

1919
copydir.sync(
20-
path.resolve(binPath, '../scripts/eb-bin'),
21-
path.resolve(currentPath, './scripts/ebuild'),
20+
path.resolve(binPath, '../scripts/scripts'),
21+
path.resolve(currentPath, './scripts'),
2222
);
2323

2424
const pkg = require(path.resolve(currentPath, './package.json'));
2525

26-
if (!pkg) pkg.scripts = {};
26+
if (!pkg.scripts) pkg.scripts = {};
2727

2828
pkg.scripts['eb:build'] = 'node ./scripts/ebuild/build.js';
2929
pkg.scripts['eb:docs'] = 'node ./scripts/ebuild/build-docs.js';

0 commit comments

Comments
 (0)