jiek 2.2.3-alpha.2 → 2.2.3-alpha.4
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/cli-only-build.cjs
CHANGED
@@ -119,7 +119,7 @@ async function getSelectedProjectsGraph(filter = commander.program.getOptionValu
|
|
119
119
|
|
120
120
|
var name = "jiek";
|
121
121
|
var type = "module";
|
122
|
-
var version = "2.2.3-alpha.
|
122
|
+
var version = "2.2.3-alpha.3";
|
123
123
|
var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
|
124
124
|
var author = "YiJie <yijie4188@gmail.com>";
|
125
125
|
var homepage = "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme";
|
@@ -385,7 +385,11 @@ async function checkDependency(dependency) {
|
|
385
385
|
const { notWorkspace } = getWD();
|
386
386
|
const command = `pnpm install -${notWorkspace ? "" : "w"}D ${dependency}`;
|
387
387
|
if (await prompts.confirm({ message: "Do you want to install it now?" })) {
|
388
|
-
node_child_process.
|
388
|
+
node_child_process.execSync(command, {
|
389
|
+
stdio: "inherit",
|
390
|
+
cwd: process__default.default.cwd(),
|
391
|
+
env: process__default.default.env
|
392
|
+
});
|
389
393
|
} else {
|
390
394
|
console.warn(`You can run the command '${command}' to install it manually.`);
|
391
395
|
process__default.default.exit(1);
|
@@ -690,13 +694,8 @@ command.action(async (commandFiltersOrEntries, options) => {
|
|
690
694
|
minifyType = resolvedType;
|
691
695
|
}
|
692
696
|
}
|
693
|
-
if (!withoutMin) {
|
694
|
-
await checkDependency(
|
695
|
-
{
|
696
|
-
...BUILDER_TYPE_PACKAGE_NAME_MAP,
|
697
|
-
terser: "@rollup/plugin-terser"
|
698
|
-
}[resolvedType]
|
699
|
-
);
|
697
|
+
if (!withoutMin && minifyType === "terser") {
|
698
|
+
await checkDependency("@rollup/plugin-terser");
|
700
699
|
}
|
701
700
|
let shouldPassThrough = false;
|
702
701
|
const passThroughOptions = process__default.default.argv.reduce(
|
package/dist/cli-only-build.js
CHANGED
@@ -7,7 +7,7 @@ import { isWorkspaceDir, getWorkspaceDir } from '@jiek/utils/getWorkspaceDir';
|
|
7
7
|
import process$1 from 'node:process';
|
8
8
|
import { MultiBar, Presets } from 'cli-progress';
|
9
9
|
import { execaCommand } from 'execa';
|
10
|
-
import {
|
10
|
+
import { execSync } from 'node:child_process';
|
11
11
|
import { confirm } from '@inquirer/prompts';
|
12
12
|
import Koa from 'koa';
|
13
13
|
|
@@ -109,7 +109,7 @@ async function getSelectedProjectsGraph(filter = program.getOptionValue("filter"
|
|
109
109
|
|
110
110
|
var name = "jiek";
|
111
111
|
var type = "module";
|
112
|
-
var version = "2.2.3-alpha.
|
112
|
+
var version = "2.2.3-alpha.3";
|
113
113
|
var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
|
114
114
|
var author = "YiJie <yijie4188@gmail.com>";
|
115
115
|
var homepage = "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme";
|
@@ -375,7 +375,11 @@ async function checkDependency(dependency) {
|
|
375
375
|
const { notWorkspace } = getWD();
|
376
376
|
const command = `pnpm install -${notWorkspace ? "" : "w"}D ${dependency}`;
|
377
377
|
if (await confirm({ message: "Do you want to install it now?" })) {
|
378
|
-
|
378
|
+
execSync(command, {
|
379
|
+
stdio: "inherit",
|
380
|
+
cwd: process$1.cwd(),
|
381
|
+
env: process$1.env
|
382
|
+
});
|
379
383
|
} else {
|
380
384
|
console.warn(`You can run the command '${command}' to install it manually.`);
|
381
385
|
process$1.exit(1);
|
@@ -680,13 +684,8 @@ command.action(async (commandFiltersOrEntries, options) => {
|
|
680
684
|
minifyType = resolvedType;
|
681
685
|
}
|
682
686
|
}
|
683
|
-
if (!withoutMin) {
|
684
|
-
await checkDependency(
|
685
|
-
{
|
686
|
-
...BUILDER_TYPE_PACKAGE_NAME_MAP,
|
687
|
-
terser: "@rollup/plugin-terser"
|
688
|
-
}[resolvedType]
|
689
|
-
);
|
687
|
+
if (!withoutMin && minifyType === "terser") {
|
688
|
+
await checkDependency("@rollup/plugin-terser");
|
690
689
|
}
|
691
690
|
let shouldPassThrough = false;
|
692
691
|
const passThroughOptions = process$1.argv.reduce(
|
package/dist/rollup/index.cjs
CHANGED
package/dist/rollup/index.js
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "jiek",
|
3
3
|
"type": "module",
|
4
|
-
"version": "2.2.3-alpha.
|
4
|
+
"version": "2.2.3-alpha.4",
|
5
5
|
"description": "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.",
|
6
6
|
"author": "YiJie <yijie4188@gmail.com>",
|
7
7
|
"homepage": "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme",
|
package/src/commands/build.ts
CHANGED
@@ -214,13 +214,8 @@ command
|
|
214
214
|
minifyType = resolvedType
|
215
215
|
}
|
216
216
|
}
|
217
|
-
if (!withoutMin) {
|
218
|
-
await checkDependency(
|
219
|
-
{
|
220
|
-
...BUILDER_TYPE_PACKAGE_NAME_MAP,
|
221
|
-
terser: '@rollup/plugin-terser'
|
222
|
-
}[resolvedType]
|
223
|
-
)
|
217
|
+
if (!withoutMin && minifyType === 'terser') {
|
218
|
+
await checkDependency('@rollup/plugin-terser')
|
224
219
|
}
|
225
220
|
let shouldPassThrough = false
|
226
221
|
|
package/src/rollup/index.ts
CHANGED
@@ -586,7 +586,7 @@ export function template(packageJSON: PackageJSON): RollupOptions[] {
|
|
586
586
|
return false
|
587
587
|
})
|
588
588
|
|
589
|
-
console.log(exports)
|
589
|
+
// console.log(exports)
|
590
590
|
const configs: RollupOptions[] = []
|
591
591
|
leafMap.forEach((keysArr, input) =>
|
592
592
|
keysArr.forEach((keys) => {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { execSync } from 'node:child_process'
|
2
2
|
import process from 'node:process'
|
3
3
|
|
4
4
|
import { confirm } from '@inquirer/prompts'
|
@@ -13,7 +13,11 @@ export async function checkDependency(dependency: string) {
|
|
13
13
|
const { notWorkspace } = getWD()
|
14
14
|
const command = `pnpm install -${notWorkspace ? '' : 'w'}D ${dependency}`
|
15
15
|
if (await confirm({ message: 'Do you want to install it now?' })) {
|
16
|
-
|
16
|
+
execSync(command, {
|
17
|
+
stdio: 'inherit',
|
18
|
+
cwd: process.cwd(),
|
19
|
+
env: process.env
|
20
|
+
})
|
17
21
|
} else {
|
18
22
|
console.warn(`You can run the command '${command}' to install it manually.`)
|
19
23
|
process.exit(1)
|