jiek 2.2.7-alpha.3 → 2.2.7-alpha.5
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/.jiek-production-tag +0 -0
- package/dist/.internal/.chunks/{getWD.ZF0avqDB.cjs → filterSupport.4rM7f6jB.cjs} +38 -29
- package/dist/.internal/.chunks/{getWD.D6wq8Qc2.js → filterSupport.BXWpLBpT.js} +37 -28
- package/dist/.internal/.chunks/index.BHuJRlvZ.js +9059 -0
- package/dist/.internal/.chunks/index.Daihq2aI.cjs +9071 -0
- package/dist/.internal/.chunks/loadConfig.CFfzkm_p.js +110 -0
- package/dist/.internal/.chunks/loadConfig.OOKddvHF.cjs +117 -0
- package/dist/.internal/bin/common.cjs +757 -0
- package/dist/.internal/bin/common.d.cts +18 -0
- package/dist/.internal/bin/common.d.ts +18 -0
- package/dist/.internal/bin/common.js +750 -0
- package/dist/.internal/bridge.cjs +20 -2
- package/dist/.internal/bridge.js +19 -1
- package/dist/.internal/utils/filterSupport.cjs +1 -3
- package/dist/.internal/utils/filterSupport.js +1 -3
- package/dist/.internal/utils/loadConfig.cjs +8 -94
- package/dist/.internal/utils/loadConfig.js +7 -92
- package/dist/bin/build.cjs +2 -507
- package/dist/bin/index.cjs +5 -1
- package/package.json +2 -3
- package/src/bin/build.cts +2 -8
- package/src/bin/common.ts +3 -0
- package/src/bin/index.cts +2 -1
- package/src/commands/publish.ts +5 -0
- package/dist/.internal/.chunks/jiek_create-require.CWFWNQHj.cjs +0 -5
- package/dist/.internal/.chunks/jiek_create-require.CxSGbkTB.js +0 -5
- package/dist/.internal/commands/build/analyzer.cjs +0 -201
- package/dist/.internal/commands/build/analyzer.d.cts +0 -30
- package/dist/.internal/commands/build/analyzer.d.ts +0 -30
- package/dist/.internal/commands/build/analyzer.js +0 -195
- package/dist/.internal/commands/descriptions.cjs +0 -21
- package/dist/.internal/commands/descriptions.d.cts +0 -5
- package/dist/.internal/commands/descriptions.d.ts +0 -5
- package/dist/.internal/commands/descriptions.js +0 -17
- package/dist/.internal/commands/meta.cjs +0 -16
- package/dist/.internal/commands/meta.d.cts +0 -3
- package/dist/.internal/commands/meta.d.ts +0 -3
- package/dist/.internal/commands/meta.js +0 -15
- package/dist/.internal/commands/utils/optionParser.cjs +0 -8
- package/dist/.internal/commands/utils/optionParser.d.cts +0 -3
- package/dist/.internal/commands/utils/optionParser.d.ts +0 -3
- package/dist/.internal/commands/utils/optionParser.js +0 -6
- package/dist/.internal/server.cjs +0 -33
- package/dist/.internal/server.d.cts +0 -8
- package/dist/.internal/server.d.ts +0 -8
- package/dist/.internal/server.js +0 -27
- package/dist/.internal/utils/checkDependency.cjs +0 -39
- package/dist/.internal/utils/checkDependency.d.cts +0 -3
- package/dist/.internal/utils/checkDependency.d.ts +0 -3
- package/dist/.internal/utils/checkDependency.js +0 -34
- package/dist/.internal/utils/getRoot.cjs +0 -17
- package/dist/.internal/utils/getRoot.d.cts +0 -3
- package/dist/.internal/utils/getRoot.d.ts +0 -3
- package/dist/.internal/utils/getRoot.js +0 -11
- package/dist/.internal/utils/getWD.cjs +0 -15
- package/dist/.internal/utils/getWD.d.cts +0 -6
- package/dist/.internal/utils/getWD.d.ts +0 -6
- package/dist/.internal/utils/getWD.js +0 -10
- package/dist/.internal/utils/tsRegister.cjs +0 -25
- package/dist/.internal/utils/tsRegister.d.cts +0 -3
- package/dist/.internal/utils/tsRegister.d.ts +0 -3
- package/dist/.internal/utils/tsRegister.js +0 -26
@@ -1,39 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var jiek_createRequire = require('../.chunks/jiek_create-require.CWFWNQHj.cjs');
|
4
|
-
var node_child_process = require('node:child_process');
|
5
|
-
var process = require('node:process');
|
6
|
-
var prompts = require('@inquirer/prompts');
|
7
|
-
var filterSupport = require('../.chunks/getWD.ZF0avqDB.cjs');
|
8
|
-
require('@jiek/utils/getWorkspaceDir');
|
9
|
-
require('node:fs');
|
10
|
-
require('node:path');
|
11
|
-
require('commander');
|
12
|
-
require('js-yaml');
|
13
|
-
require('./getRoot.cjs');
|
14
|
-
|
15
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
16
|
-
|
17
|
-
var process__default = /*#__PURE__*/_interopDefault(process);
|
18
|
-
|
19
|
-
async function checkDependency(dependency) {
|
20
|
-
try {
|
21
|
-
jiek_createRequire.require.resolve(dependency);
|
22
|
-
} catch {
|
23
|
-
console.error(`The package '${dependency}' is not installed, please install it first.`);
|
24
|
-
const { notWorkspace } = filterSupport.getWD();
|
25
|
-
const command = `pnpm add -${notWorkspace ? "" : "w"}D ${dependency}`;
|
26
|
-
if (await prompts.confirm({ message: `Do you want to add it now? (${command})` })) {
|
27
|
-
node_child_process.execSync(command, {
|
28
|
-
stdio: "inherit",
|
29
|
-
cwd: process__default.default.cwd(),
|
30
|
-
env: process__default.default.env
|
31
|
-
});
|
32
|
-
} else {
|
33
|
-
console.warn(`You can run the command '${command}' to install it manually.`);
|
34
|
-
process__default.default.exit(1);
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
exports.checkDependency = checkDependency;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import { r as require } from '../.chunks/jiek_create-require.CxSGbkTB.js';
|
2
|
-
import { execSync } from 'node:child_process';
|
3
|
-
import process from 'node:process';
|
4
|
-
import { confirm } from '@inquirer/prompts';
|
5
|
-
import { g as getWD } from '../.chunks/getWD.D6wq8Qc2.js';
|
6
|
-
import 'node:module';
|
7
|
-
import '@jiek/utils/getWorkspaceDir';
|
8
|
-
import 'node:fs';
|
9
|
-
import 'node:path';
|
10
|
-
import 'commander';
|
11
|
-
import 'js-yaml';
|
12
|
-
import './getRoot.js';
|
13
|
-
|
14
|
-
async function checkDependency(dependency) {
|
15
|
-
try {
|
16
|
-
require.resolve(dependency);
|
17
|
-
} catch {
|
18
|
-
console.error(`The package '${dependency}' is not installed, please install it first.`);
|
19
|
-
const { notWorkspace } = getWD();
|
20
|
-
const command = `pnpm add -${notWorkspace ? "" : "w"}D ${dependency}`;
|
21
|
-
if (await confirm({ message: `Do you want to add it now? (${command})` })) {
|
22
|
-
execSync(command, {
|
23
|
-
stdio: "inherit",
|
24
|
-
cwd: process.cwd(),
|
25
|
-
env: process.env
|
26
|
-
});
|
27
|
-
} else {
|
28
|
-
console.warn(`You can run the command '${command}' to install it manually.`);
|
29
|
-
process.exit(1);
|
30
|
-
}
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
export { checkDependency };
|
@@ -1,17 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var path = require('node:path');
|
4
|
-
|
5
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
6
|
-
|
7
|
-
var path__default = /*#__PURE__*/_interopDefault(path);
|
8
|
-
|
9
|
-
let root;
|
10
|
-
function getRoot() {
|
11
|
-
if (root) return root;
|
12
|
-
const rootOption = process.env.JIEK_ROOT;
|
13
|
-
root = rootOption ? path__default.default.isAbsolute(rootOption) ? rootOption : path__default.default.resolve(process.cwd(), rootOption) : void 0;
|
14
|
-
return root;
|
15
|
-
}
|
16
|
-
|
17
|
-
exports.getRoot = getRoot;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import path from 'node:path';
|
2
|
-
|
3
|
-
let root;
|
4
|
-
function getRoot() {
|
5
|
-
if (root) return root;
|
6
|
-
const rootOption = process.env.JIEK_ROOT;
|
7
|
-
root = rootOption ? path.isAbsolute(rootOption) ? rootOption : path.resolve(process.cwd(), rootOption) : void 0;
|
8
|
-
return root;
|
9
|
-
}
|
10
|
-
|
11
|
-
export { getRoot };
|
@@ -1,15 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
require('@jiek/utils/getWorkspaceDir');
|
4
|
-
var filterSupport = require('../.chunks/getWD.ZF0avqDB.cjs');
|
5
|
-
require('./getRoot.cjs');
|
6
|
-
require('../.chunks/jiek_create-require.CWFWNQHj.cjs');
|
7
|
-
require('node:fs');
|
8
|
-
require('node:path');
|
9
|
-
require('node:process');
|
10
|
-
require('commander');
|
11
|
-
require('js-yaml');
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
exports.getWD = filterSupport.getWD;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import '@jiek/utils/getWorkspaceDir';
|
2
|
-
export { g as getWD } from '../.chunks/getWD.D6wq8Qc2.js';
|
3
|
-
import './getRoot.js';
|
4
|
-
import '../.chunks/jiek_create-require.CxSGbkTB.js';
|
5
|
-
import 'node:module';
|
6
|
-
import 'node:fs';
|
7
|
-
import 'node:path';
|
8
|
-
import 'node:process';
|
9
|
-
import 'commander';
|
10
|
-
import 'js-yaml';
|
@@ -1,25 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
var jiek_createRequire = require('../.chunks/jiek_create-require.CWFWNQHj.cjs');
|
4
|
-
|
5
|
-
function packageIsExist(name) {
|
6
|
-
try {
|
7
|
-
jiek_createRequire.require.resolve(name);
|
8
|
-
return true;
|
9
|
-
} catch (e) {
|
10
|
-
return false;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
exports.tsRegisterName = void 0;
|
14
|
-
const registers = [
|
15
|
-
process.env.JIEK_TS_REGISTER,
|
16
|
-
"esbuild-register",
|
17
|
-
"@swc-node/register",
|
18
|
-
"ts-node/register"
|
19
|
-
].filter(Boolean);
|
20
|
-
for (const register of registers) {
|
21
|
-
if (packageIsExist(register)) {
|
22
|
-
exports.tsRegisterName = register;
|
23
|
-
break;
|
24
|
-
}
|
25
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { r as require } from '../.chunks/jiek_create-require.CxSGbkTB.js';
|
2
|
-
import 'node:module';
|
3
|
-
|
4
|
-
function packageIsExist(name) {
|
5
|
-
try {
|
6
|
-
require.resolve(name);
|
7
|
-
return true;
|
8
|
-
} catch (e) {
|
9
|
-
return false;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
let tsRegisterName;
|
13
|
-
const registers = [
|
14
|
-
process.env.JIEK_TS_REGISTER,
|
15
|
-
"esbuild-register",
|
16
|
-
"@swc-node/register",
|
17
|
-
"ts-node/register"
|
18
|
-
].filter(Boolean);
|
19
|
-
for (const register of registers) {
|
20
|
-
if (packageIsExist(register)) {
|
21
|
-
tsRegisterName = register;
|
22
|
-
break;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
export { tsRegisterName };
|