@powerlines/plugin-env 0.16.67 → 0.16.69
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/README.md +1 -1
- package/dist/_virtual/_rolldown/runtime.cjs +0 -2
- package/dist/_virtual/_rolldown/runtime.mjs +2 -31
- package/dist/babel/plugin.mjs.map +1 -1
- package/dist/components/docs.cjs +37 -27
- package/dist/components/docs.mjs +37 -27
- package/dist/components/docs.mjs.map +1 -1
- package/dist/components/env-builtin.cjs +404 -314
- package/dist/components/env-builtin.mjs +404 -314
- package/dist/components/env-builtin.mjs.map +1 -1
- package/dist/helpers/automd-generator.mjs.map +1 -1
- package/dist/helpers/create-reflection-resource.mjs.map +1 -1
- package/dist/helpers/docs-helper.mjs.map +1 -1
- package/dist/helpers/load.cjs +4 -4
- package/dist/helpers/load.mjs +2 -2
- package/dist/helpers/load.mjs.map +1 -1
- package/dist/helpers/persistence.mjs.map +1 -1
- package/dist/helpers/reflect.mjs.map +1 -1
- package/dist/helpers/source-file-env.mjs.map +1 -1
- package/dist/helpers/template-helpers.mjs.map +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types/runtime.mjs.map +1 -1
- package/package.json +20 -35
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.cjs +0 -346
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs +0 -347
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.cjs +0 -23
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs +0 -23
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.cjs +0 -10
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs +0 -11
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.cjs +0 -1060
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +0 -1060
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.cjs +0 -761
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs +0 -761
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.cjs +0 -388
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +0 -388
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.cjs +0 -639
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +0 -639
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.cjs +0 -17
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +0 -17
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.cjs +0 -13
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs +0 -14
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.cjs +0 -11
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs +0 -12
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.cjs +0 -11
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs +0 -12
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs.map +0 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.cjs +0 -11
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs +0 -12
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs.map +0 -1
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -46
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +0 -46
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.cjs +0 -285
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs +0 -283
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs.map +0 -1
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.cjs +0 -71
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs +0 -69
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs.map +0 -1
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +0 -1013
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +0 -1008
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +0 -23
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +0 -14
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +0 -2695
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -2683
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +0 -1
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +0 -4457
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +0 -4455
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +0 -1
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +0 -29
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +0 -30
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +0 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -181
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -177
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +0 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +0 -22
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +0 -18
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +0 -3967
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +0 -3963
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +0 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +0 -11766
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +0 -11762
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +0 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -25
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +0 -21
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs.map +0 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +0 -20
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +0 -18
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.cjs +0 -178
- package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs +0 -176
- package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +0 -13
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +0 -13
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +0 -3
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +0 -3
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +0 -145
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -139
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +0 -1
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +0 -128
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +0 -127
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +0 -138
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +0 -137
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +0 -629
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +0 -628
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +0 -1
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const require_runtime = require('../../../../../../../_virtual/_rolldown/runtime.cjs');
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs
|
|
6
|
-
var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ require_runtime.__commonJSMin(((exports) => {
|
|
7
|
-
var l = Object.defineProperty;
|
|
8
|
-
var o = (e, t) => l(e, "name", {
|
|
9
|
-
value: t,
|
|
10
|
-
configurable: !0
|
|
11
|
-
});
|
|
12
|
-
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
13
|
-
function getDefaultExportFromCjs(e) {
|
|
14
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
15
|
-
}
|
|
16
|
-
o(getDefaultExportFromCjs, "getDefaultExportFromCjs"), exports.commonjsGlobal = commonjsGlobal, exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
17
|
-
}));
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
Object.defineProperty(exports, 'default', {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () {
|
|
23
|
-
return require_node_fetch_native_DhEqb06g();
|
|
24
|
-
}
|
|
25
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs
|
|
4
|
-
var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
-
var l = Object.defineProperty;
|
|
6
|
-
var o = (e, t) => l(e, "name", {
|
|
7
|
-
value: t,
|
|
8
|
-
configurable: !0
|
|
9
|
-
});
|
|
10
|
-
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
11
|
-
function getDefaultExportFromCjs(e) {
|
|
12
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
13
|
-
}
|
|
14
|
-
o(getDefaultExportFromCjs, "getDefaultExportFromCjs"), exports.commonjsGlobal = commonjsGlobal, exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
15
|
-
}));
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export default require_node_fetch_native_DhEqb06g();
|
|
19
|
-
|
|
20
|
-
export { require_node_fetch_native_DhEqb06g };
|
|
21
|
-
//# sourceMappingURL=node-fetch-native.DhEqb06g.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-fetch-native.DhEqb06g.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs"],"sourcesContent":["\"use strict\";var l=Object.defineProperty;var o=(e,t)=>l(e,\"name\",{value:t,configurable:!0});var commonjsGlobal=typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof global<\"u\"?global:typeof self<\"u\"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}o(getDefaultExportFromCjs,\"getDefaultExportFromCjs\"),exports.commonjsGlobal=commonjsGlobal,exports.getDefaultExportFromCjs=getDefaultExportFromCjs;\n"],"x_google_ignoreList":[0],"mappings":";;;;CAAa,IAAI,IAAE,OAAO;CAAe,IAAI,KAAG,GAAE,MAAI,EAAE,GAAE,QAAO;EAAC,OAAM;EAAE,cAAa,CAAC;EAAE,CAAC;CAAC,IAAI,iBAAe,OAAO,aAAW,MAAI,aAAW,OAAO,SAAO,MAAI,SAAO,OAAO,SAAO,MAAI,SAAO,OAAO,OAAK,MAAI,OAAK,EAAE;CAAC,SAAS,wBAAwB,GAAE;AAAC,SAAO,KAAG,EAAE,cAAY,OAAO,UAAU,eAAe,KAAK,GAAE,UAAU,GAAC,EAAE,UAAQ;;AAAE,GAAE,yBAAwB,0BAA0B,EAAC,QAAQ,iBAAe,gBAAe,QAAQ,0BAAwB"}
|
package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('../../../../../../_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_index = require('../dist/index.cjs');
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs
|
|
5
|
-
var require_lib = /* @__PURE__ */ require_runtime.__commonJSMin(((exports, module) => {
|
|
6
|
-
const nodeFetch = require_index.default;
|
|
7
|
-
function fetch(input, options) {
|
|
8
|
-
return nodeFetch.fetch(input, options);
|
|
9
|
-
}
|
|
10
|
-
for (const key in nodeFetch) fetch[key] = nodeFetch[key];
|
|
11
|
-
module.exports = fetch;
|
|
12
|
-
}));
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
Object.defineProperty(exports, 'default', {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () {
|
|
18
|
-
return require_lib();
|
|
19
|
-
}
|
|
20
|
-
});
|
package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { require_dist } from "../dist/index.mjs";
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs
|
|
5
|
-
var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
-
const nodeFetch = require_dist();
|
|
7
|
-
function fetch(input, options) {
|
|
8
|
-
return nodeFetch.fetch(input, options);
|
|
9
|
-
}
|
|
10
|
-
for (const key in nodeFetch) fetch[key] = nodeFetch[key];
|
|
11
|
-
module.exports = fetch;
|
|
12
|
-
}));
|
|
13
|
-
|
|
14
|
-
//#endregion
|
|
15
|
-
export default require_lib();
|
|
16
|
-
|
|
17
|
-
export { require_lib };
|
|
18
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs"],"sourcesContent":["const nodeFetch = require(\"../dist/index.cjs\");\n\nfunction fetch(input, options) {\n return nodeFetch.fetch(input, options);\n}\n\nfor (const key in nodeFetch) {\n fetch[key] = nodeFetch[key];\n}\n\nmodule.exports = fetch;\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAAA,MAAM;CAEN,SAAS,MAAM,OAAO,SAAS;AAC7B,SAAO,UAAU,MAAM,OAAO,QAAQ;;AAGxC,MAAK,MAAM,OAAO,UAChB,OAAM,OAAO,UAAU;AAGzB,QAAO,UAAU"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('../../../../../../_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const require_pathe_M_eThtNZ = require('../../../../pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs');
|
|
3
|
-
const require_main = require('../../../../tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs');
|
|
4
|
-
let node_fs = require("node:fs");
|
|
5
|
-
node_fs = require_runtime.__toESM(node_fs);
|
|
6
|
-
let node_path = require("node:path");
|
|
7
|
-
let node_fs_promises = require("node:fs/promises");
|
|
8
|
-
let node_module = require("node:module");
|
|
9
|
-
|
|
10
|
-
//#region ../../node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs
|
|
11
|
-
async function findup(cwd, match, options = {}) {
|
|
12
|
-
const segments = require_pathe_M_eThtNZ.normalize(cwd).split("/");
|
|
13
|
-
while (segments.length > 0) {
|
|
14
|
-
const result = await match(segments.join("/") || "/");
|
|
15
|
-
if (result || !options.includeParentDirs) return result;
|
|
16
|
-
segments.pop();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function cached(fn) {
|
|
20
|
-
let v;
|
|
21
|
-
return () => {
|
|
22
|
-
if (v === void 0) v = fn().then((r) => {
|
|
23
|
-
v = r;
|
|
24
|
-
return v;
|
|
25
|
-
});
|
|
26
|
-
return v;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
const hasCorepack = cached(async () => {
|
|
30
|
-
if (globalThis.process?.versions?.webcontainer) return false;
|
|
31
|
-
try {
|
|
32
|
-
const { exitCode } = await require_main.K("corepack", ["--version"]);
|
|
33
|
-
return exitCode === 0;
|
|
34
|
-
} catch {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
async function executeCommand(command, args, options = {}) {
|
|
39
|
-
const xArgs = command !== "npm" && command !== "bun" && command !== "deno" && options.corepack !== false && await hasCorepack() ? ["corepack", [command, ...args]] : [command, args];
|
|
40
|
-
const { exitCode, stdout, stderr } = await require_main.K(xArgs[0], xArgs[1], { nodeOptions: {
|
|
41
|
-
cwd: require_pathe_M_eThtNZ.resolve(options.cwd || process.cwd()),
|
|
42
|
-
env: options.env,
|
|
43
|
-
stdio: options.silent ? "pipe" : "inherit"
|
|
44
|
-
} });
|
|
45
|
-
if (exitCode !== 0) throw new Error(`\`${xArgs.flat().join(" ")}\` failed.${options.silent ? [
|
|
46
|
-
"",
|
|
47
|
-
stdout,
|
|
48
|
-
stderr
|
|
49
|
-
].join("\n") : ""}`);
|
|
50
|
-
}
|
|
51
|
-
const NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG = "No package manager auto-detected.";
|
|
52
|
-
async function resolveOperationOptions(options = {}) {
|
|
53
|
-
const cwd = options.cwd || process.cwd();
|
|
54
|
-
const env = {
|
|
55
|
-
...process.env,
|
|
56
|
-
...options.env
|
|
57
|
-
};
|
|
58
|
-
const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
|
|
59
|
-
if (!packageManager) throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
|
|
60
|
-
return {
|
|
61
|
-
cwd,
|
|
62
|
-
env,
|
|
63
|
-
silent: options.silent ?? false,
|
|
64
|
-
packageManager,
|
|
65
|
-
dev: options.dev ?? false,
|
|
66
|
-
workspace: options.workspace,
|
|
67
|
-
global: options.global ?? false,
|
|
68
|
-
dry: options.dry ?? false,
|
|
69
|
-
corepack: options.corepack ?? true
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function parsePackageManagerField(packageManager) {
|
|
73
|
-
const [name, _version] = (packageManager || "").split("@");
|
|
74
|
-
const [version, buildMeta] = _version?.split("+") || [];
|
|
75
|
-
if (name && name !== "-" && /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(name)) return {
|
|
76
|
-
name,
|
|
77
|
-
version,
|
|
78
|
-
buildMeta
|
|
79
|
-
};
|
|
80
|
-
const sanitized = (name || "").replace(/\W+/g, "");
|
|
81
|
-
return {
|
|
82
|
-
name: sanitized,
|
|
83
|
-
version,
|
|
84
|
-
buildMeta,
|
|
85
|
-
warnings: [`Abnormal characters found in \`packageManager\` field, sanitizing from \`${name}\` to \`${sanitized}\``]
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
const packageManagers = [
|
|
89
|
-
{
|
|
90
|
-
name: "npm",
|
|
91
|
-
command: "npm",
|
|
92
|
-
lockFile: "package-lock.json"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: "pnpm",
|
|
96
|
-
command: "pnpm",
|
|
97
|
-
lockFile: "pnpm-lock.yaml",
|
|
98
|
-
files: ["pnpm-workspace.yaml"]
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: "bun",
|
|
102
|
-
command: "bun",
|
|
103
|
-
lockFile: ["bun.lockb", "bun.lock"]
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: "yarn",
|
|
107
|
-
command: "yarn",
|
|
108
|
-
lockFile: "yarn.lock",
|
|
109
|
-
files: [".yarnrc.yml"]
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: "deno",
|
|
113
|
-
command: "deno",
|
|
114
|
-
lockFile: "deno.lock",
|
|
115
|
-
files: ["deno.json"]
|
|
116
|
-
}
|
|
117
|
-
];
|
|
118
|
-
async function detectPackageManager(cwd, options = {}) {
|
|
119
|
-
const detected = await findup(require_pathe_M_eThtNZ.resolve(cwd || "."), async (path) => {
|
|
120
|
-
if (!options.ignorePackageJSON) {
|
|
121
|
-
const packageJSONPath = require_pathe_M_eThtNZ.join(path, "package.json");
|
|
122
|
-
if ((0, node_fs.existsSync)(packageJSONPath)) {
|
|
123
|
-
const packageJSON = JSON.parse(await (0, node_fs_promises.readFile)(packageJSONPath, "utf8"));
|
|
124
|
-
if (packageJSON?.packageManager) {
|
|
125
|
-
const { name, version = "0.0.0", buildMeta, warnings } = parsePackageManagerField(packageJSON.packageManager);
|
|
126
|
-
if (name) {
|
|
127
|
-
const majorVersion = version.split(".")[0];
|
|
128
|
-
const packageManager = packageManagers.find((pm) => pm.name === name && pm.majorVersion === majorVersion) || packageManagers.find((pm) => pm.name === name);
|
|
129
|
-
return {
|
|
130
|
-
name,
|
|
131
|
-
command: name,
|
|
132
|
-
version,
|
|
133
|
-
majorVersion,
|
|
134
|
-
buildMeta,
|
|
135
|
-
warnings,
|
|
136
|
-
files: packageManager?.files,
|
|
137
|
-
lockFile: packageManager?.lockFile
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
if ((0, node_fs.existsSync)(require_pathe_M_eThtNZ.join(path, "deno.json"))) return packageManagers.find((pm) => pm.name === "deno");
|
|
143
|
-
}
|
|
144
|
-
if (!options.ignoreLockFile) {
|
|
145
|
-
for (const packageManager of packageManagers) if ([packageManager.lockFile, packageManager.files].flat().filter(Boolean).some((file) => (0, node_fs.existsSync)(require_pathe_M_eThtNZ.resolve(path, file)))) return { ...packageManager };
|
|
146
|
-
}
|
|
147
|
-
}, { includeParentDirs: options.includeParentDirs ?? true });
|
|
148
|
-
if (!detected && !options.ignoreArgv) {
|
|
149
|
-
const scriptArg = process.argv[1];
|
|
150
|
-
if (scriptArg) {
|
|
151
|
-
for (const packageManager of packageManagers) if (new RegExp(`[/\\\\]\\.?${packageManager.command}`).test(scriptArg)) return packageManager;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
return detected;
|
|
155
|
-
}
|
|
156
|
-
async function installDependencies(options = {}) {
|
|
157
|
-
const resolvedOptions = await resolveOperationOptions(options);
|
|
158
|
-
const commandArgs = options.frozenLockFile ? {
|
|
159
|
-
npm: ["ci"],
|
|
160
|
-
yarn: ["install", "--immutable"],
|
|
161
|
-
bun: ["install", "--frozen-lockfile"],
|
|
162
|
-
pnpm: ["install", "--frozen-lockfile"],
|
|
163
|
-
deno: ["install", "--frozen"]
|
|
164
|
-
}[resolvedOptions.packageManager.name] : ["install"];
|
|
165
|
-
if (options.ignoreWorkspace && resolvedOptions.packageManager.name === "pnpm") commandArgs.push("--ignore-workspace");
|
|
166
|
-
if (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, commandArgs, {
|
|
167
|
-
cwd: resolvedOptions.cwd,
|
|
168
|
-
silent: resolvedOptions.silent,
|
|
169
|
-
corepack: resolvedOptions.corepack
|
|
170
|
-
});
|
|
171
|
-
return { exec: {
|
|
172
|
-
command: resolvedOptions.packageManager.command,
|
|
173
|
-
args: commandArgs
|
|
174
|
-
} };
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
//#endregion
|
|
178
|
-
exports.installDependencies = installDependencies;
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { join, normalize as normalize$1, resolve as resolve$1 } from "../../../../pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs";
|
|
2
|
-
import { K } from "../../../../tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs";
|
|
3
|
-
import { createRequire } from "node:module";
|
|
4
|
-
import { existsSync } from "node:fs";
|
|
5
|
-
import { readFile } from "node:fs/promises";
|
|
6
|
-
|
|
7
|
-
//#region ../../node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs
|
|
8
|
-
async function findup(cwd, match, options = {}) {
|
|
9
|
-
const segments = normalize$1(cwd).split("/");
|
|
10
|
-
while (segments.length > 0) {
|
|
11
|
-
const result = await match(segments.join("/") || "/");
|
|
12
|
-
if (result || !options.includeParentDirs) return result;
|
|
13
|
-
segments.pop();
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
function cached(fn) {
|
|
17
|
-
let v;
|
|
18
|
-
return () => {
|
|
19
|
-
if (v === void 0) v = fn().then((r) => {
|
|
20
|
-
v = r;
|
|
21
|
-
return v;
|
|
22
|
-
});
|
|
23
|
-
return v;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
const hasCorepack = cached(async () => {
|
|
27
|
-
if (globalThis.process?.versions?.webcontainer) return false;
|
|
28
|
-
try {
|
|
29
|
-
const { exitCode } = await K("corepack", ["--version"]);
|
|
30
|
-
return exitCode === 0;
|
|
31
|
-
} catch {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
async function executeCommand(command, args, options = {}) {
|
|
36
|
-
const xArgs = command !== "npm" && command !== "bun" && command !== "deno" && options.corepack !== false && await hasCorepack() ? ["corepack", [command, ...args]] : [command, args];
|
|
37
|
-
const { exitCode, stdout, stderr } = await K(xArgs[0], xArgs[1], { nodeOptions: {
|
|
38
|
-
cwd: resolve$1(options.cwd || process.cwd()),
|
|
39
|
-
env: options.env,
|
|
40
|
-
stdio: options.silent ? "pipe" : "inherit"
|
|
41
|
-
} });
|
|
42
|
-
if (exitCode !== 0) throw new Error(`\`${xArgs.flat().join(" ")}\` failed.${options.silent ? [
|
|
43
|
-
"",
|
|
44
|
-
stdout,
|
|
45
|
-
stderr
|
|
46
|
-
].join("\n") : ""}`);
|
|
47
|
-
}
|
|
48
|
-
const NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG = "No package manager auto-detected.";
|
|
49
|
-
async function resolveOperationOptions(options = {}) {
|
|
50
|
-
const cwd = options.cwd || process.cwd();
|
|
51
|
-
const env = {
|
|
52
|
-
...process.env,
|
|
53
|
-
...options.env
|
|
54
|
-
};
|
|
55
|
-
const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
|
|
56
|
-
if (!packageManager) throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
|
|
57
|
-
return {
|
|
58
|
-
cwd,
|
|
59
|
-
env,
|
|
60
|
-
silent: options.silent ?? false,
|
|
61
|
-
packageManager,
|
|
62
|
-
dev: options.dev ?? false,
|
|
63
|
-
workspace: options.workspace,
|
|
64
|
-
global: options.global ?? false,
|
|
65
|
-
dry: options.dry ?? false,
|
|
66
|
-
corepack: options.corepack ?? true
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function parsePackageManagerField(packageManager) {
|
|
70
|
-
const [name, _version] = (packageManager || "").split("@");
|
|
71
|
-
const [version, buildMeta] = _version?.split("+") || [];
|
|
72
|
-
if (name && name !== "-" && /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(name)) return {
|
|
73
|
-
name,
|
|
74
|
-
version,
|
|
75
|
-
buildMeta
|
|
76
|
-
};
|
|
77
|
-
const sanitized = (name || "").replace(/\W+/g, "");
|
|
78
|
-
return {
|
|
79
|
-
name: sanitized,
|
|
80
|
-
version,
|
|
81
|
-
buildMeta,
|
|
82
|
-
warnings: [`Abnormal characters found in \`packageManager\` field, sanitizing from \`${name}\` to \`${sanitized}\``]
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
const packageManagers = [
|
|
86
|
-
{
|
|
87
|
-
name: "npm",
|
|
88
|
-
command: "npm",
|
|
89
|
-
lockFile: "package-lock.json"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: "pnpm",
|
|
93
|
-
command: "pnpm",
|
|
94
|
-
lockFile: "pnpm-lock.yaml",
|
|
95
|
-
files: ["pnpm-workspace.yaml"]
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: "bun",
|
|
99
|
-
command: "bun",
|
|
100
|
-
lockFile: ["bun.lockb", "bun.lock"]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: "yarn",
|
|
104
|
-
command: "yarn",
|
|
105
|
-
lockFile: "yarn.lock",
|
|
106
|
-
files: [".yarnrc.yml"]
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
name: "deno",
|
|
110
|
-
command: "deno",
|
|
111
|
-
lockFile: "deno.lock",
|
|
112
|
-
files: ["deno.json"]
|
|
113
|
-
}
|
|
114
|
-
];
|
|
115
|
-
async function detectPackageManager(cwd, options = {}) {
|
|
116
|
-
const detected = await findup(resolve$1(cwd || "."), async (path) => {
|
|
117
|
-
if (!options.ignorePackageJSON) {
|
|
118
|
-
const packageJSONPath = join(path, "package.json");
|
|
119
|
-
if (existsSync(packageJSONPath)) {
|
|
120
|
-
const packageJSON = JSON.parse(await readFile(packageJSONPath, "utf8"));
|
|
121
|
-
if (packageJSON?.packageManager) {
|
|
122
|
-
const { name, version = "0.0.0", buildMeta, warnings } = parsePackageManagerField(packageJSON.packageManager);
|
|
123
|
-
if (name) {
|
|
124
|
-
const majorVersion = version.split(".")[0];
|
|
125
|
-
const packageManager = packageManagers.find((pm) => pm.name === name && pm.majorVersion === majorVersion) || packageManagers.find((pm) => pm.name === name);
|
|
126
|
-
return {
|
|
127
|
-
name,
|
|
128
|
-
command: name,
|
|
129
|
-
version,
|
|
130
|
-
majorVersion,
|
|
131
|
-
buildMeta,
|
|
132
|
-
warnings,
|
|
133
|
-
files: packageManager?.files,
|
|
134
|
-
lockFile: packageManager?.lockFile
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
if (existsSync(join(path, "deno.json"))) return packageManagers.find((pm) => pm.name === "deno");
|
|
140
|
-
}
|
|
141
|
-
if (!options.ignoreLockFile) {
|
|
142
|
-
for (const packageManager of packageManagers) if ([packageManager.lockFile, packageManager.files].flat().filter(Boolean).some((file) => existsSync(resolve$1(path, file)))) return { ...packageManager };
|
|
143
|
-
}
|
|
144
|
-
}, { includeParentDirs: options.includeParentDirs ?? true });
|
|
145
|
-
if (!detected && !options.ignoreArgv) {
|
|
146
|
-
const scriptArg = process.argv[1];
|
|
147
|
-
if (scriptArg) {
|
|
148
|
-
for (const packageManager of packageManagers) if (new RegExp(`[/\\\\]\\.?${packageManager.command}`).test(scriptArg)) return packageManager;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return detected;
|
|
152
|
-
}
|
|
153
|
-
async function installDependencies(options = {}) {
|
|
154
|
-
const resolvedOptions = await resolveOperationOptions(options);
|
|
155
|
-
const commandArgs = options.frozenLockFile ? {
|
|
156
|
-
npm: ["ci"],
|
|
157
|
-
yarn: ["install", "--immutable"],
|
|
158
|
-
bun: ["install", "--frozen-lockfile"],
|
|
159
|
-
pnpm: ["install", "--frozen-lockfile"],
|
|
160
|
-
deno: ["install", "--frozen"]
|
|
161
|
-
}[resolvedOptions.packageManager.name] : ["install"];
|
|
162
|
-
if (options.ignoreWorkspace && resolvedOptions.packageManager.name === "pnpm") commandArgs.push("--ignore-workspace");
|
|
163
|
-
if (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, commandArgs, {
|
|
164
|
-
cwd: resolvedOptions.cwd,
|
|
165
|
-
silent: resolvedOptions.silent,
|
|
166
|
-
corepack: resolvedOptions.corepack
|
|
167
|
-
});
|
|
168
|
-
return { exec: {
|
|
169
|
-
command: resolvedOptions.packageManager.command,
|
|
170
|
-
args: commandArgs
|
|
171
|
-
} };
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
//#endregion
|
|
175
|
-
export { installDependencies };
|
|
176
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["normalize","x","resolve"],"sources":["../../../../../../../../../node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport * as fs from \"node:fs\";\nimport { existsSync } from \"node:fs\";\nimport { readFile } from \"node:fs/promises\";\nimport { join, normalize, resolve } from \"pathe\";\nimport { x } from \"tinyexec\";\nimport { join as join$1 } from \"node:path\";\nasync function findup(cwd, match, options = {}) {\n\tconst segments = normalize(cwd).split(\"/\");\n\twhile (segments.length > 0) {\n\t\tconst result = await match(segments.join(\"/\") || \"/\");\n\t\tif (result || !options.includeParentDirs) return result;\n\t\tsegments.pop();\n\t}\n}\nasync function readPackageJSON(cwd) {\n\treturn findup(cwd, (p) => {\n\t\tconst pkgPath = join$1(p, \"package.json\");\n\t\tif (existsSync(pkgPath)) return readFile(pkgPath, \"utf8\").then((data) => JSON.parse(data));\n\t});\n}\nfunction cached(fn) {\n\tlet v;\n\treturn () => {\n\t\tif (v === void 0) v = fn().then((r) => {\n\t\t\tv = r;\n\t\t\treturn v;\n\t\t});\n\t\treturn v;\n\t};\n}\nconst hasCorepack = cached(async () => {\n\tif (globalThis.process?.versions?.webcontainer) return false;\n\ttry {\n\t\tconst { exitCode } = await x(\"corepack\", [\"--version\"]);\n\t\treturn exitCode === 0;\n\t} catch {\n\t\treturn false;\n\t}\n});\nasync function executeCommand(command, args, options = {}) {\n\tconst xArgs = command !== \"npm\" && command !== \"bun\" && command !== \"deno\" && options.corepack !== false && await hasCorepack() ? [\"corepack\", [command, ...args]] : [command, args];\n\tconst { exitCode, stdout, stderr } = await x(xArgs[0], xArgs[1], { nodeOptions: {\n\t\tcwd: resolve(options.cwd || process.cwd()),\n\t\tenv: options.env,\n\t\tstdio: options.silent ? \"pipe\" : \"inherit\"\n\t} });\n\tif (exitCode !== 0) throw new Error(`\\`${xArgs.flat().join(\" \")}\\` failed.${options.silent ? [\n\t\t\"\",\n\t\tstdout,\n\t\tstderr\n\t].join(\"\\n\") : \"\"}`);\n}\nconst NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG = \"No package manager auto-detected.\";\nasync function resolveOperationOptions(options = {}) {\n\tconst cwd = options.cwd || process.cwd();\n\tconst env = {\n\t\t...process.env,\n\t\t...options.env\n\t};\n\tconst packageManager = (typeof options.packageManager === \"string\" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());\n\tif (!packageManager) throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);\n\treturn {\n\t\tcwd,\n\t\tenv,\n\t\tsilent: options.silent ?? false,\n\t\tpackageManager,\n\t\tdev: options.dev ?? false,\n\t\tworkspace: options.workspace,\n\t\tglobal: options.global ?? false,\n\t\tdry: options.dry ?? false,\n\t\tcorepack: options.corepack ?? true\n\t};\n}\nfunction getWorkspaceArgs(options) {\n\tif (!options.workspace) return [];\n\tconst workspacePkg = typeof options.workspace === \"string\" && options.workspace !== \"\" ? options.workspace : void 0;\n\tif (options.packageManager.name === \"pnpm\") return workspacePkg ? [\"--filter\", workspacePkg] : [\"--workspace-root\"];\n\tif (options.packageManager.name === \"npm\") return workspacePkg ? [\"-w\", workspacePkg] : [\"--workspaces\"];\n\tif (options.packageManager.name === \"yarn\") if (!options.packageManager.majorVersion || options.packageManager.majorVersion === \"1\") return workspacePkg ? [\"--cwd\", workspacePkg] : [\"-W\"];\n\telse return workspacePkg ? [\"workspace\", workspacePkg] : [];\n\treturn [];\n}\nfunction getWorkspaceArgs2(options) {\n\tif (!options.workspace) return [];\n\tconst workspacePkg = typeof options.workspace === \"string\" && options.workspace !== \"\" ? options.workspace : void 0;\n\tif (options.packageManager === \"pnpm\") return workspacePkg ? [\"--filter\", workspacePkg] : [\"--workspace-root\"];\n\tif (options.packageManager === \"npm\") return workspacePkg ? [\"-w\", workspacePkg] : [\"--workspaces\"];\n\tif (options.packageManager === \"yarn\") if (options.yarnBerry) return workspacePkg ? [\"workspace\", workspacePkg] : [];\n\telse return workspacePkg ? [\"--cwd\", workspacePkg] : [\"-W\"];\n\treturn [];\n}\nfunction fmtCommand(args) {\n\treturn args.filter(Boolean).map((arg, i) => i > 0 && arg.includes(\" \") ? `\"${arg}\"` : arg).join(\" \");\n}\nfunction doesDependencyExist(name, options) {\n\tconst require = createRequire(options.cwd.endsWith(\"/\") ? options.cwd : options.cwd + \"/\");\n\ttry {\n\t\treturn require.resolve(name).startsWith(options.cwd);\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction parsePackageManagerField(packageManager) {\n\tconst [name, _version] = (packageManager || \"\").split(\"@\");\n\tconst [version, buildMeta] = _version?.split(\"+\") || [];\n\tif (name && name !== \"-\" && /^(@[a-z0-9-~][a-z0-9-._~]*\\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(name)) return {\n\t\tname,\n\t\tversion,\n\t\tbuildMeta\n\t};\n\tconst sanitized = (name || \"\").replace(/\\W+/g, \"\");\n\treturn {\n\t\tname: sanitized,\n\t\tversion,\n\t\tbuildMeta,\n\t\twarnings: [`Abnormal characters found in \\`packageManager\\` field, sanitizing from \\`${name}\\` to \\`${sanitized}\\``]\n\t};\n}\nconst packageManagers = [\n\t{\n\t\tname: \"npm\",\n\t\tcommand: \"npm\",\n\t\tlockFile: \"package-lock.json\"\n\t},\n\t{\n\t\tname: \"pnpm\",\n\t\tcommand: \"pnpm\",\n\t\tlockFile: \"pnpm-lock.yaml\",\n\t\tfiles: [\"pnpm-workspace.yaml\"]\n\t},\n\t{\n\t\tname: \"bun\",\n\t\tcommand: \"bun\",\n\t\tlockFile: [\"bun.lockb\", \"bun.lock\"]\n\t},\n\t{\n\t\tname: \"yarn\",\n\t\tcommand: \"yarn\",\n\t\tlockFile: \"yarn.lock\",\n\t\tfiles: [\".yarnrc.yml\"]\n\t},\n\t{\n\t\tname: \"deno\",\n\t\tcommand: \"deno\",\n\t\tlockFile: \"deno.lock\",\n\t\tfiles: [\"deno.json\"]\n\t}\n];\nasync function detectPackageManager(cwd, options = {}) {\n\tconst detected = await findup(resolve(cwd || \".\"), async (path) => {\n\t\tif (!options.ignorePackageJSON) {\n\t\t\tconst packageJSONPath = join(path, \"package.json\");\n\t\t\tif (existsSync(packageJSONPath)) {\n\t\t\t\tconst packageJSON = JSON.parse(await readFile(packageJSONPath, \"utf8\"));\n\t\t\t\tif (packageJSON?.packageManager) {\n\t\t\t\t\tconst { name, version = \"0.0.0\", buildMeta, warnings } = parsePackageManagerField(packageJSON.packageManager);\n\t\t\t\t\tif (name) {\n\t\t\t\t\t\tconst majorVersion = version.split(\".\")[0];\n\t\t\t\t\t\tconst packageManager = packageManagers.find((pm) => pm.name === name && pm.majorVersion === majorVersion) || packageManagers.find((pm) => pm.name === name);\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\tcommand: name,\n\t\t\t\t\t\t\tversion,\n\t\t\t\t\t\t\tmajorVersion,\n\t\t\t\t\t\t\tbuildMeta,\n\t\t\t\t\t\t\twarnings,\n\t\t\t\t\t\t\tfiles: packageManager?.files,\n\t\t\t\t\t\t\tlockFile: packageManager?.lockFile\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (existsSync(join(path, \"deno.json\"))) return packageManagers.find((pm) => pm.name === \"deno\");\n\t\t}\n\t\tif (!options.ignoreLockFile) {\n\t\t\tfor (const packageManager of packageManagers) if ([packageManager.lockFile, packageManager.files].flat().filter(Boolean).some((file) => existsSync(resolve(path, file)))) return { ...packageManager };\n\t\t}\n\t}, { includeParentDirs: options.includeParentDirs ?? true });\n\tif (!detected && !options.ignoreArgv) {\n\t\tconst scriptArg = process.argv[1];\n\t\tif (scriptArg) {\n\t\t\tfor (const packageManager of packageManagers) if (new RegExp(`[/\\\\\\\\]\\\\.?${packageManager.command}`).test(scriptArg)) return packageManager;\n\t\t}\n\t}\n\treturn detected;\n}\nfunction installDependenciesCommand(packageManager, options = {}) {\n\tconst installCmd = options.short ? \"i\" : \"install\";\n\tconst pmToFrozenLockfileInstallCommand = {\n\t\tnpm: [\"ci\"],\n\t\tyarn: [installCmd, \"--immutable\"],\n\t\tbun: [installCmd, \"--frozen-lockfile\"],\n\t\tpnpm: [installCmd, \"--frozen-lockfile\"],\n\t\tdeno: [installCmd, \"--frozen\"]\n\t};\n\treturn fmtCommand([packageManager, ...options.frozenLockFile ? pmToFrozenLockfileInstallCommand[packageManager] : [installCmd]]);\n}\nfunction addDependencyCommand(packageManager, name, options = {}) {\n\tconst names = Array.isArray(name) ? name : [name];\n\tif (packageManager === \"deno\") {\n\t\tfor (let i = 0; i < names.length; i++) if (!/^(npm|jsr|file):.+$/.test(names[i])) names[i] = `npm:${names[i]}`;\n\t}\n\treturn fmtCommand([packageManager, ...(packageManager === \"yarn\" ? [\n\t\t...getWorkspaceArgs2({\n\t\t\tpackageManager,\n\t\t\t...options\n\t\t}),\n\t\toptions.global && !options.yarnBerry ? \"global\" : \"\",\n\t\t\"add\",\n\t\toptions.dev ? options.short ? \"-D\" : \"--dev\" : \"\",\n\t\t...names\n\t] : [\n\t\tpackageManager === \"npm\" ? options.short ? \"i\" : \"install\" : \"add\",\n\t\t...getWorkspaceArgs2({\n\t\t\tpackageManager,\n\t\t\t...options\n\t\t}),\n\t\toptions.dev ? options.short ? \"-D\" : \"--dev\" : \"\",\n\t\toptions.global ? \"-g\" : \"\",\n\t\t...names\n\t]).filter(Boolean)]);\n}\nfunction runScriptCommand(packageManager, name, options = {}) {\n\treturn fmtCommand([packageManager, ...[\n\t\tpackageManager === \"deno\" ? \"task\" : \"run\",\n\t\tname,\n\t\t...options.args || []\n\t]]);\n}\nfunction dlxCommand(packageManager, name, options = {}) {\n\tconst command = {\n\t\tnpm: options.short ? \"npx\" : \"npm exec\",\n\t\tyarn: \"yarn dlx\",\n\t\tpnpm: options.short ? \"pnpx\" : \"pnpm dlx\",\n\t\tbun: options.short ? \"bunx\" : \"bun x\",\n\t\tdeno: \"deno run -A\"\n\t}[packageManager];\n\tlet packages = options.packages || [];\n\tif (packageManager === \"deno\") {\n\t\tif (!name.startsWith(\"npm:\")) name = `npm:${name}`;\n\t\tpackages = packages.map((pkg) => pkg.startsWith(\"npm:\") ? pkg : `npm:${pkg}`);\n\t}\n\tconst packageArgs = [];\n\tif (packages.length > 0 && packageManager !== \"deno\") {\n\t\tconst packageFlag = options.short && /^npm|yarn$/.test(packageManager) ? \"-p\" : \"--package\";\n\t\tfor (const pkg of packages) packageArgs.push(`${packageFlag}=${pkg}`);\n\t}\n\tconst argSep = packageManager === \"npm\" && !options.short ? \"--\" : \"\";\n\treturn fmtCommand([\n\t\tcommand,\n\t\t...packageArgs,\n\t\tname,\n\t\targSep,\n\t\t...options.args || []\n\t]);\n}\nasync function installDependencies(options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst commandArgs = options.frozenLockFile ? {\n\t\tnpm: [\"ci\"],\n\t\tyarn: [\"install\", \"--immutable\"],\n\t\tbun: [\"install\", \"--frozen-lockfile\"],\n\t\tpnpm: [\"install\", \"--frozen-lockfile\"],\n\t\tdeno: [\"install\", \"--frozen\"]\n\t}[resolvedOptions.packageManager.name] : [\"install\"];\n\tif (options.ignoreWorkspace && resolvedOptions.packageManager.name === \"pnpm\") commandArgs.push(\"--ignore-workspace\");\n\tif (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, commandArgs, {\n\t\tcwd: resolvedOptions.cwd,\n\t\tsilent: resolvedOptions.silent,\n\t\tcorepack: resolvedOptions.corepack\n\t});\n\treturn { exec: {\n\t\tcommand: resolvedOptions.packageManager.command,\n\t\targs: commandArgs\n\t} };\n}\nasync function addDependency(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst names = Array.isArray(name) ? name : [name];\n\tif (resolvedOptions.packageManager.name === \"deno\") {\n\t\tfor (let i = 0; i < names.length; i++) if (!/^(npm|jsr|file):.+$/.test(names[i] || \"\")) names[i] = `npm:${names[i]}`;\n\t}\n\tif (names.length === 0) return {};\n\tconst args = (resolvedOptions.packageManager.name === \"yarn\" ? [\n\t\t...getWorkspaceArgs(resolvedOptions),\n\t\tresolvedOptions.global && resolvedOptions.packageManager.majorVersion === \"1\" ? \"global\" : \"\",\n\t\t\"add\",\n\t\tresolvedOptions.dev ? \"-D\" : \"\",\n\t\t...names\n\t] : [\n\t\tresolvedOptions.packageManager.name === \"npm\" ? \"install\" : \"add\",\n\t\t...getWorkspaceArgs(resolvedOptions),\n\t\tresolvedOptions.dev ? \"-D\" : \"\",\n\t\tresolvedOptions.global ? \"-g\" : \"\",\n\t\t...names\n\t]).filter(Boolean);\n\tif (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, args, {\n\t\tcwd: resolvedOptions.cwd,\n\t\tsilent: resolvedOptions.silent,\n\t\tcorepack: resolvedOptions.corepack\n\t});\n\tif (!resolvedOptions.dry && options.installPeerDependencies) {\n\t\tconst existingPkg = await readPackageJSON(resolvedOptions.cwd);\n\t\tconst peerDeps = [];\n\t\tconst peerDevDeps = [];\n\t\tconst _require = createRequire(join$1(resolvedOptions.cwd, \"/_.js\"));\n\t\tfor (const _name of names) {\n\t\t\tconst pkgName = _name.match(/^(.[^@]+)/)?.[0];\n\t\t\tconst pkg = await readPackageJSON(_require.resolve(pkgName));\n\t\t\tif (!pkg?.peerDependencies || pkg?.name !== pkgName) continue;\n\t\t\tfor (const [peerDependency, version] of Object.entries(pkg.peerDependencies)) {\n\t\t\t\tif (pkg.peerDependenciesMeta?.[peerDependency]?.optional) continue;\n\t\t\t\tif (existingPkg?.dependencies?.[peerDependency] || existingPkg?.devDependencies?.[peerDependency]) continue;\n\t\t\t\t(pkg.peerDependenciesMeta?.[peerDependency]?.dev ? peerDevDeps : peerDeps).push(`${peerDependency}@${version}`);\n\t\t\t}\n\t\t}\n\t\tif (peerDeps.length > 0) await addDependency(peerDeps, { ...resolvedOptions });\n\t\tif (peerDevDeps.length > 0) await addDevDependency(peerDevDeps, { ...resolvedOptions });\n\t}\n\treturn { exec: {\n\t\tcommand: resolvedOptions.packageManager.command,\n\t\targs\n\t} };\n}\nasync function addDevDependency(name, options = {}) {\n\treturn await addDependency(name, {\n\t\t...options,\n\t\tdev: true\n\t});\n}\nasync function removeDependency(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst names = Array.isArray(name) ? name : [name];\n\tif (names.length === 0) return {};\n\tconst args = (resolvedOptions.packageManager.name === \"yarn\" ? [\n\t\tresolvedOptions.global && resolvedOptions.packageManager.majorVersion === \"1\" ? \"global\" : \"\",\n\t\t...getWorkspaceArgs(resolvedOptions),\n\t\t\"remove\",\n\t\tresolvedOptions.dev ? \"-D\" : \"\",\n\t\tresolvedOptions.global ? \"-g\" : \"\",\n\t\t...names\n\t] : [\n\t\tresolvedOptions.packageManager.name === \"npm\" ? \"uninstall\" : \"remove\",\n\t\t...getWorkspaceArgs(resolvedOptions),\n\t\tresolvedOptions.dev ? \"-D\" : \"\",\n\t\tresolvedOptions.global ? \"-g\" : \"\",\n\t\t...names\n\t]).filter(Boolean);\n\tif (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, args, {\n\t\tcwd: resolvedOptions.cwd,\n\t\tsilent: resolvedOptions.silent,\n\t\tcorepack: resolvedOptions.corepack\n\t});\n\treturn { exec: {\n\t\tcommand: resolvedOptions.packageManager.command,\n\t\targs\n\t} };\n}\nasync function ensureDependencyInstalled(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tif (doesDependencyExist(name, resolvedOptions)) return true;\n\tawait addDependency(name, resolvedOptions);\n}\nasync function dedupeDependencies(options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst isSupported = ![\"bun\", \"deno\"].includes(resolvedOptions.packageManager.name);\n\tif (options.recreateLockfile ?? !isSupported) {\n\t\tconst lockfiles = Array.isArray(resolvedOptions.packageManager.lockFile) ? resolvedOptions.packageManager.lockFile : [resolvedOptions.packageManager.lockFile];\n\t\tfor (const lockfile of lockfiles) if (lockfile) fs.rmSync(resolve(resolvedOptions.cwd, lockfile), { force: true });\n\t\treturn await installDependencies(resolvedOptions);\n\t}\n\tif (isSupported) {\n\t\tconst isyarnv1 = resolvedOptions.packageManager.name === \"yarn\" && resolvedOptions.packageManager.majorVersion === \"1\";\n\t\tif (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, [isyarnv1 ? \"install\" : \"dedupe\"], {\n\t\t\tcwd: resolvedOptions.cwd,\n\t\t\tsilent: resolvedOptions.silent,\n\t\t\tcorepack: resolvedOptions.corepack\n\t\t});\n\t\treturn { exec: {\n\t\t\tcommand: resolvedOptions.packageManager.command,\n\t\t\targs: [isyarnv1 ? \"install\" : \"dedupe\"]\n\t\t} };\n\t}\n\tthrow new Error(`Deduplication is not supported for ${resolvedOptions.packageManager.name}`);\n}\nasync function runScript(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst args = [\n\t\tresolvedOptions.packageManager.name === \"deno\" ? \"task\" : \"run\",\n\t\tname,\n\t\t...options.args || []\n\t];\n\tif (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, args, {\n\t\tcwd: resolvedOptions.cwd,\n\t\tenv: resolvedOptions.env,\n\t\tsilent: resolvedOptions.silent,\n\t\tcorepack: resolvedOptions.corepack\n\t});\n\treturn { exec: {\n\t\tcommand: resolvedOptions.packageManager.command,\n\t\targs\n\t} };\n}\nasync function dlx(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst [command, ...args] = dlxCommand(resolvedOptions.packageManager.name, name, {\n\t\targs: options.args,\n\t\tshort: options.short,\n\t\tpackages: options.packages\n\t}).split(\" \");\n\tif (!resolvedOptions.dry) await executeCommand(command, args, {\n\t\tcwd: resolvedOptions.cwd,\n\t\tenv: resolvedOptions.env,\n\t\tsilent: resolvedOptions.silent,\n\t\tcorepack: resolvedOptions.corepack\n\t});\n\treturn { exec: {\n\t\tcommand,\n\t\targs\n\t} };\n}\nexport { addDependency, addDependencyCommand, addDevDependency, dedupeDependencies, detectPackageManager, dlx, dlxCommand, ensureDependencyInstalled, installDependencies, installDependenciesCommand, packageManagers, removeDependency, runScript, runScriptCommand };\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const require_runtime = require('../../../../../../../../_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
let node_crypto = require("node:crypto");
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs
|
|
5
|
-
const e = globalThis.process?.getBuiltinModule?.("crypto")?.hash, r = "sha256", s = "base64url";
|
|
6
|
-
function digest(t) {
|
|
7
|
-
if (e) return e(r, t, s);
|
|
8
|
-
const o = (0, node_crypto.createHash)(r).update(t);
|
|
9
|
-
return globalThis.process?.versions?.webcontainer ? o.digest().toString(s) : o.digest(s);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
exports.digest = digest;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createHash } from "node:crypto";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs
|
|
4
|
-
const e = globalThis.process?.getBuiltinModule?.("crypto")?.hash, r = "sha256", s = "base64url";
|
|
5
|
-
function digest(t) {
|
|
6
|
-
if (e) return e(r, t, s);
|
|
7
|
-
const o = createHash(r).update(t);
|
|
8
|
-
return globalThis.process?.versions?.webcontainer ? o.digest().toString(s) : o.digest(s);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { digest };
|
|
13
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs"],"sourcesContent":["import { createHash } from 'node:crypto';\n\nconst e=globalThis.process?.getBuiltinModule?.(\"crypto\")?.hash,r=\"sha256\",s=\"base64url\";function digest(t){if(e)return e(r,t,s);const o=createHash(r).update(t);return globalThis.process?.versions?.webcontainer?o.digest().toString(s):o.digest(s)}\n\nexport { digest };\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,MAAM,IAAE,WAAW,SAAS,mBAAmB,SAAS,EAAE,MAAK,IAAE,UAAS,IAAE;AAAY,SAAS,OAAO,GAAE;AAAC,KAAG,EAAE,QAAO,EAAE,GAAE,GAAE,EAAE;CAAC,MAAM,IAAE,WAAW,EAAE,CAAC,OAAO,EAAE;AAAC,QAAO,WAAW,SAAS,UAAU,eAAa,EAAE,QAAQ,CAAC,SAAS,EAAE,GAAC,EAAE,OAAO,EAAE"}
|