create-pkgbld 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -2
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21,6 +21,8 @@ var degit__default = /*#__PURE__*/_interopDefaultLegacy(degit);
|
|
|
21
21
|
async function execute() {
|
|
22
22
|
var _a, _b;
|
|
23
23
|
var _c;
|
|
24
|
+
const myPkg = await readPackage(path__default["default"].resolve(__dirname, '..'));
|
|
25
|
+
console.log('create-pkgbld ' + myPkg.pkg.version);
|
|
24
26
|
const parsedArgs = minimist__default["default"](process.argv.slice(2));
|
|
25
27
|
const packageName = parsedArgs._[0];
|
|
26
28
|
const dir = packageName !== null && packageName !== void 0 ? packageName : '.';
|
|
@@ -47,7 +49,7 @@ async function execute() {
|
|
|
47
49
|
}
|
|
48
50
|
const template = chooseAction.action === 'root' ? 'kshutkin/monorepo-root' : 'kshutkin/monorepo-package';
|
|
49
51
|
const emitter = degit__default["default"](template, {
|
|
50
|
-
cache:
|
|
52
|
+
cache: false,
|
|
51
53
|
force: true,
|
|
52
54
|
verbose: true,
|
|
53
55
|
});
|
|
@@ -55,7 +57,7 @@ async function execute() {
|
|
|
55
57
|
console.log(info.message);
|
|
56
58
|
});
|
|
57
59
|
await emitter.clone(dir);
|
|
58
|
-
const basePackageName = path__default["default"].basename(packageName) || path__default["default"].basename(process.cwd());
|
|
60
|
+
const basePackageName = (packageName && path__default["default"].basename(packageName)) || path__default["default"].basename(process.cwd());
|
|
59
61
|
if (chooseAction.action === 'root') {
|
|
60
62
|
const response = await prompts__default["default"]([{
|
|
61
63
|
type: 'text',
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,8 @@ var degit__default = /*#__PURE__*/_interopDefaultLegacy(degit);
|
|
|
22
22
|
async function execute() {
|
|
23
23
|
var _a, _b;
|
|
24
24
|
var _c;
|
|
25
|
+
const myPkg = await readPackage(path__default["default"].resolve(__dirname, '..'));
|
|
26
|
+
console.log('create-pkgbld ' + myPkg.pkg.version);
|
|
25
27
|
const parsedArgs = minimist__default["default"](process.argv.slice(2));
|
|
26
28
|
const packageName = parsedArgs._[0];
|
|
27
29
|
const dir = packageName !== null && packageName !== void 0 ? packageName : '.';
|
|
@@ -48,7 +50,7 @@ async function execute() {
|
|
|
48
50
|
}
|
|
49
51
|
const template = chooseAction.action === 'root' ? 'kshutkin/monorepo-root' : 'kshutkin/monorepo-package';
|
|
50
52
|
const emitter = degit__default["default"](template, {
|
|
51
|
-
cache:
|
|
53
|
+
cache: false,
|
|
52
54
|
force: true,
|
|
53
55
|
verbose: true,
|
|
54
56
|
});
|
|
@@ -56,7 +58,7 @@ async function execute() {
|
|
|
56
58
|
console.log(info.message);
|
|
57
59
|
});
|
|
58
60
|
await emitter.clone(dir);
|
|
59
|
-
const basePackageName = path__default["default"].basename(packageName) || path__default["default"].basename(process.cwd());
|
|
61
|
+
const basePackageName = (packageName && path__default["default"].basename(packageName)) || path__default["default"].basename(process.cwd());
|
|
60
62
|
if (chooseAction.action === 'root') {
|
|
61
63
|
const response = await prompts__default["default"]([{
|
|
62
64
|
type: 'text',
|
package/dist/index.mjs
CHANGED
|
@@ -9,6 +9,8 @@ import degit from 'degit';
|
|
|
9
9
|
async function execute() {
|
|
10
10
|
var _a, _b;
|
|
11
11
|
var _c;
|
|
12
|
+
const myPkg = await readPackage(path.resolve(__dirname, '..'));
|
|
13
|
+
console.log('create-pkgbld ' + myPkg.pkg.version);
|
|
12
14
|
const parsedArgs = minimist(process.argv.slice(2));
|
|
13
15
|
const packageName = parsedArgs._[0];
|
|
14
16
|
const dir = packageName !== null && packageName !== void 0 ? packageName : '.';
|
|
@@ -35,7 +37,7 @@ async function execute() {
|
|
|
35
37
|
}
|
|
36
38
|
const template = chooseAction.action === 'root' ? 'kshutkin/monorepo-root' : 'kshutkin/monorepo-package';
|
|
37
39
|
const emitter = degit(template, {
|
|
38
|
-
cache:
|
|
40
|
+
cache: false,
|
|
39
41
|
force: true,
|
|
40
42
|
verbose: true,
|
|
41
43
|
});
|
|
@@ -43,7 +45,7 @@ async function execute() {
|
|
|
43
45
|
console.log(info.message);
|
|
44
46
|
});
|
|
45
47
|
await emitter.clone(dir);
|
|
46
|
-
const basePackageName = path.basename(packageName) || path.basename(process.cwd());
|
|
48
|
+
const basePackageName = (packageName && path.basename(packageName)) || path.basename(process.cwd());
|
|
47
49
|
if (chooseAction.action === 'root') {
|
|
48
50
|
const response = await prompts([{
|
|
49
51
|
type: 'text',
|
package/package.json
CHANGED