pnpm 7.7.0-0 → 7.7.0-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/node_modules/.modules.yaml +2 -2
- package/dist/node_modules/.pnpm/lock.yaml +4 -4
- package/dist/node_modules/are-we-there-yet/lib/tracker-group.js +1 -1
- package/dist/node_modules/are-we-there-yet/package.json +12 -13
- package/dist/pnpm.cjs +29 -14
- package/dist/pnpx.cjs +28 -13
- package/package.json +1 -1
|
@@ -7,11 +7,11 @@ included:
|
|
|
7
7
|
injectedDeps: {}
|
|
8
8
|
layoutVersion: 5
|
|
9
9
|
nodeLinker: hoisted
|
|
10
|
-
packageManager: pnpm@7.
|
|
10
|
+
packageManager: pnpm@7.7.0-0
|
|
11
11
|
pendingBuilds:
|
|
12
12
|
- /node-gyp/8.4.1
|
|
13
13
|
- /encoding/0.1.13
|
|
14
|
-
prunedAt:
|
|
14
|
+
prunedAt: Thu, 28 Jul 2022 13:58:38 GMT
|
|
15
15
|
publicHoistPattern:
|
|
16
16
|
- '*eslint*'
|
|
17
17
|
- '*prettier*'
|
|
@@ -83,9 +83,9 @@ packages:
|
|
|
83
83
|
dev: false
|
|
84
84
|
optional: true
|
|
85
85
|
|
|
86
|
-
/are-we-there-yet/3.0.
|
|
87
|
-
resolution: {integrity: sha512-
|
|
88
|
-
engines: {node: ^12.13.0 || ^14.15.0 || >=16}
|
|
86
|
+
/are-we-there-yet/3.0.1:
|
|
87
|
+
resolution: {integrity: sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==}
|
|
88
|
+
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
|
|
89
89
|
dependencies:
|
|
90
90
|
delegates: 1.0.0
|
|
91
91
|
readable-stream: 3.6.0
|
|
@@ -512,7 +512,7 @@ packages:
|
|
|
512
512
|
resolution: {integrity: sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==}
|
|
513
513
|
engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}
|
|
514
514
|
dependencies:
|
|
515
|
-
are-we-there-yet: 3.0.
|
|
515
|
+
are-we-there-yet: 3.0.1
|
|
516
516
|
console-control-strings: 1.1.0
|
|
517
517
|
gauge: 4.0.4
|
|
518
518
|
set-blocking: 2.0.0
|
|
@@ -103,7 +103,7 @@ TrackerGroup.prototype.finish = function () {
|
|
|
103
103
|
var buffer = ' '
|
|
104
104
|
TrackerGroup.prototype.debug = function (depth) {
|
|
105
105
|
depth = depth || 0
|
|
106
|
-
var indent = depth ? buffer.
|
|
106
|
+
var indent = depth ? buffer.slice(0, depth) : ''
|
|
107
107
|
var output = indent + (this.name || 'top') + ': ' + this.completed() + '\n'
|
|
108
108
|
this.trackers.forEach(function (tracker) {
|
|
109
109
|
if (tracker instanceof TrackerGroup) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "are-we-there-yet",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Keep track of the overall completion of many disparate processes",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "tap",
|
|
8
8
|
"npmclilint": "npmcli-lint",
|
|
9
|
-
"lint": "eslint
|
|
9
|
+
"lint": "eslint \"**/*.js\"",
|
|
10
10
|
"lintfix": "npm run lint -- --fix",
|
|
11
11
|
"posttest": "npm run lint",
|
|
12
12
|
"postsnap": "npm run lintfix --",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"postversion": "npm publish",
|
|
15
15
|
"prepublishOnly": "git push origin --follow-tags",
|
|
16
16
|
"snap": "tap",
|
|
17
|
-
"postlint": "
|
|
18
|
-
"template-
|
|
17
|
+
"postlint": "template-oss-check",
|
|
18
|
+
"template-oss-apply": "template-oss-apply --force"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
@@ -28,22 +28,20 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/npm/are-we-there-yet",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@npmcli/eslint-config": "^
|
|
32
|
-
"@npmcli/template-oss": "
|
|
33
|
-
"
|
|
34
|
-
"eslint-plugin-node": "^11.1.0",
|
|
35
|
-
"tap": "^15.0.9"
|
|
31
|
+
"@npmcli/eslint-config": "^3.0.1",
|
|
32
|
+
"@npmcli/template-oss": "3.5.0",
|
|
33
|
+
"tap": "^16.0.1"
|
|
36
34
|
},
|
|
37
35
|
"dependencies": {
|
|
38
36
|
"delegates": "^1.0.0",
|
|
39
37
|
"readable-stream": "^3.6.0"
|
|
40
38
|
},
|
|
41
39
|
"files": [
|
|
42
|
-
"bin",
|
|
43
|
-
"lib"
|
|
40
|
+
"bin/",
|
|
41
|
+
"lib/"
|
|
44
42
|
],
|
|
45
43
|
"engines": {
|
|
46
|
-
"node": "^12.13.0 || ^14.15.0 || >=16"
|
|
44
|
+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
|
|
47
45
|
},
|
|
48
46
|
"tap": {
|
|
49
47
|
"branches": 68,
|
|
@@ -52,6 +50,7 @@
|
|
|
52
50
|
"lines": 92
|
|
53
51
|
},
|
|
54
52
|
"templateOSS": {
|
|
55
|
-
"
|
|
53
|
+
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
54
|
+
"version": "3.5.0"
|
|
56
55
|
}
|
|
57
56
|
}
|
package/dist/pnpm.cjs
CHANGED
|
@@ -3182,7 +3182,7 @@ var require_lib4 = __commonJS({
|
|
|
3182
3182
|
var load_json_file_1 = __importDefault(require_load_json_file());
|
|
3183
3183
|
var defaultManifest = {
|
|
3184
3184
|
name: "pnpm" != null && true ? "pnpm" : "pnpm",
|
|
3185
|
-
version: "7.7.0-
|
|
3185
|
+
version: "7.7.0-1" != null && true ? "7.7.0-1" : "0.0.0"
|
|
3186
3186
|
};
|
|
3187
3187
|
var pkgJson;
|
|
3188
3188
|
if (require.main == null) {
|
|
@@ -87881,7 +87881,7 @@ var require_satisfiesPackageManifest = __commonJS({
|
|
|
87881
87881
|
}
|
|
87882
87882
|
};
|
|
87883
87883
|
}
|
|
87884
|
-
if (!(0, equals_js_1.default)(existingDeps, importer.specifiers)) {
|
|
87884
|
+
if (!(0, equals_js_1.default)(existingDeps, importer.specifiers) || importer.publishDirectory !== pkg.publishConfig?.directory) {
|
|
87885
87885
|
return false;
|
|
87886
87886
|
}
|
|
87887
87887
|
if (!(0, equals_js_1.default)(pkg.dependenciesMeta ?? {}, importer.dependenciesMeta ?? {}))
|
|
@@ -87907,7 +87907,7 @@ var require_satisfiesPackageManifest = __commonJS({
|
|
|
87907
87907
|
return false;
|
|
87908
87908
|
}
|
|
87909
87909
|
for (const depName of pkgDepNames) {
|
|
87910
|
-
if (!importerDeps[depName] || importer.specifiers[depName] !== pkgDeps[depName])
|
|
87910
|
+
if (!importerDeps[depName] || importer.specifiers?.[depName] !== pkgDeps[depName])
|
|
87911
87911
|
return false;
|
|
87912
87912
|
}
|
|
87913
87913
|
}
|
|
@@ -88592,20 +88592,23 @@ var require_write = __commonJS({
|
|
|
88592
88592
|
return (0, rimraf_1.default)(lockfilePath);
|
|
88593
88593
|
}
|
|
88594
88594
|
const lockfileToStringify = opts?.useInlineSpecifiersFormat ?? false ? (0, inlineSpecifiersLockfileConverters_1.convertToInlineSpecifiersFormat)(wantedLockfile) : wantedLockfile;
|
|
88595
|
-
const yamlDoc = yamlStringify(lockfileToStringify,
|
|
88595
|
+
const yamlDoc = yamlStringify(lockfileToStringify, {
|
|
88596
|
+
forceSharedFormat: opts?.forceSharedFormat === true,
|
|
88597
|
+
includeEmptySpecifiersField: !opts?.useInlineSpecifiersFormat
|
|
88598
|
+
});
|
|
88596
88599
|
return writeFileAtomic(lockfilePath, yamlDoc);
|
|
88597
88600
|
}
|
|
88598
|
-
function yamlStringify(lockfile,
|
|
88599
|
-
let normalizedLockfile = normalizeLockfile(lockfile,
|
|
88601
|
+
function yamlStringify(lockfile, opts) {
|
|
88602
|
+
let normalizedLockfile = normalizeLockfile(lockfile, opts);
|
|
88600
88603
|
normalizedLockfile = (0, sortLockfileKeys_1.sortLockfileKeys)(normalizedLockfile);
|
|
88601
88604
|
return js_yaml_1.default.dump(normalizedLockfile, LOCKFILE_YAML_FORMAT);
|
|
88602
88605
|
}
|
|
88603
88606
|
function isEmptyLockfile(lockfile) {
|
|
88604
88607
|
return Object.values(lockfile.importers).every((importer) => (0, isEmpty_js_1.default)(importer.specifiers ?? {}) && (0, isEmpty_js_1.default)(importer.dependencies ?? {}));
|
|
88605
88608
|
}
|
|
88606
|
-
function normalizeLockfile(lockfile,
|
|
88609
|
+
function normalizeLockfile(lockfile, opts) {
|
|
88607
88610
|
let lockfileToSave;
|
|
88608
|
-
if (!forceSharedFormat && (0, equals_js_1.default)(Object.keys(lockfile.importers), ["."])) {
|
|
88611
|
+
if (!opts.forceSharedFormat && (0, equals_js_1.default)(Object.keys(lockfile.importers), ["."])) {
|
|
88609
88612
|
lockfileToSave = {
|
|
88610
88613
|
...lockfile,
|
|
88611
88614
|
...lockfile.importers["."]
|
|
@@ -88624,9 +88627,10 @@ var require_write = __commonJS({
|
|
|
88624
88627
|
...lockfile,
|
|
88625
88628
|
importers: Object.keys(lockfile.importers).reduce((acc, alias) => {
|
|
88626
88629
|
const importer = lockfile.importers[alias];
|
|
88627
|
-
const normalizedImporter = {
|
|
88628
|
-
|
|
88629
|
-
|
|
88630
|
+
const normalizedImporter = {};
|
|
88631
|
+
if (!(0, isEmpty_js_1.default)(importer.specifiers ?? {}) || opts.includeEmptySpecifiersField) {
|
|
88632
|
+
normalizedImporter["specifiers"] = importer.specifiers ?? {};
|
|
88633
|
+
}
|
|
88630
88634
|
if (importer.dependenciesMeta != null && !(0, isEmpty_js_1.default)(importer.dependenciesMeta)) {
|
|
88631
88635
|
normalizedImporter["dependenciesMeta"] = importer.dependenciesMeta;
|
|
88632
88636
|
}
|
|
@@ -88635,6 +88639,9 @@ var require_write = __commonJS({
|
|
|
88635
88639
|
normalizedImporter[depType] = importer[depType];
|
|
88636
88640
|
}
|
|
88637
88641
|
}
|
|
88642
|
+
if (importer.publishDirectory) {
|
|
88643
|
+
normalizedImporter.publishDirectory = importer.publishDirectory;
|
|
88644
|
+
}
|
|
88638
88645
|
acc[alias] = normalizedImporter;
|
|
88639
88646
|
return acc;
|
|
88640
88647
|
}, {})
|
|
@@ -88678,7 +88685,11 @@ var require_write = __commonJS({
|
|
|
88678
88685
|
}
|
|
88679
88686
|
const forceSharedFormat = opts?.forceSharedFormat === true;
|
|
88680
88687
|
const wantedLockfileToStringify = opts.useInlineSpecifiersFormat ?? false ? (0, inlineSpecifiersLockfileConverters_1.convertToInlineSpecifiersFormat)(opts.wantedLockfile) : opts.wantedLockfile;
|
|
88681
|
-
const
|
|
88688
|
+
const normalizeOpts = {
|
|
88689
|
+
forceSharedFormat,
|
|
88690
|
+
includeEmptySpecifiersField: !opts.useInlineSpecifiersFormat
|
|
88691
|
+
};
|
|
88692
|
+
const yamlDoc = yamlStringify(wantedLockfileToStringify, normalizeOpts);
|
|
88682
88693
|
if (opts.wantedLockfile === opts.currentLockfile) {
|
|
88683
88694
|
await Promise.all([
|
|
88684
88695
|
writeFileAtomic(wantedLockfilePath, yamlDoc),
|
|
@@ -88693,7 +88704,7 @@ var require_write = __commonJS({
|
|
|
88693
88704
|
message: `\`${constants_1.WANTED_LOCKFILE}\` differs from \`${path_1.default.relative(opts.wantedLockfileDir, currentLockfilePath)}\``,
|
|
88694
88705
|
prefix: opts.wantedLockfileDir
|
|
88695
88706
|
});
|
|
88696
|
-
const currentYamlDoc = yamlStringify(opts.currentLockfile,
|
|
88707
|
+
const currentYamlDoc = yamlStringify(opts.currentLockfile, normalizeOpts);
|
|
88697
88708
|
await Promise.all([
|
|
88698
88709
|
writeFileAtomic(wantedLockfilePath, yamlDoc),
|
|
88699
88710
|
(async () => {
|
|
@@ -124183,6 +124194,9 @@ var require_lib105 = __commonJS({
|
|
|
124183
124194
|
optionalDependencies: {},
|
|
124184
124195
|
specifiers: {}
|
|
124185
124196
|
};
|
|
124197
|
+
if (newManifest.publishConfig?.directory) {
|
|
124198
|
+
newProjectSnapshot.publishDirectory = newManifest.publishConfig.directory;
|
|
124199
|
+
}
|
|
124186
124200
|
linkedPackages.forEach((linkedPkg) => {
|
|
124187
124201
|
newProjectSnapshot.specifiers[linkedPkg.alias] = (0, manifest_utils_1.getSpecFromPackageManifest)(newManifest, linkedPkg.alias);
|
|
124188
124202
|
});
|
|
@@ -181580,7 +181594,8 @@ var require_deploy = __commonJS({
|
|
|
181580
181594
|
throw new error_1.default("INVALID_DEPLOY_TARGET", "This command requires one parameter");
|
|
181581
181595
|
}
|
|
181582
181596
|
const deployedDir = selectedDirs[0];
|
|
181583
|
-
const
|
|
181597
|
+
const deployDirParam = params[0];
|
|
181598
|
+
const deployDir = path_1.default.isAbsolute(deployDirParam) ? deployDirParam : path_1.default.join(opts.dir, deployDirParam);
|
|
181584
181599
|
await (0, rimraf_1.default)(deployDir);
|
|
181585
181600
|
await fs_1.default.promises.mkdir(deployDir, { recursive: true });
|
|
181586
181601
|
await copyProject(deployedDir, deployDir);
|
package/dist/pnpx.cjs
CHANGED
|
@@ -82871,7 +82871,7 @@ var require_satisfiesPackageManifest = __commonJS({
|
|
|
82871
82871
|
}
|
|
82872
82872
|
};
|
|
82873
82873
|
}
|
|
82874
|
-
if (!(0, equals_js_1.default)(existingDeps, importer.specifiers)) {
|
|
82874
|
+
if (!(0, equals_js_1.default)(existingDeps, importer.specifiers) || importer.publishDirectory !== pkg.publishConfig?.directory) {
|
|
82875
82875
|
return false;
|
|
82876
82876
|
}
|
|
82877
82877
|
if (!(0, equals_js_1.default)(pkg.dependenciesMeta ?? {}, importer.dependenciesMeta ?? {}))
|
|
@@ -82897,7 +82897,7 @@ var require_satisfiesPackageManifest = __commonJS({
|
|
|
82897
82897
|
return false;
|
|
82898
82898
|
}
|
|
82899
82899
|
for (const depName of pkgDepNames) {
|
|
82900
|
-
if (!importerDeps[depName] || importer.specifiers[depName] !== pkgDeps[depName])
|
|
82900
|
+
if (!importerDeps[depName] || importer.specifiers?.[depName] !== pkgDeps[depName])
|
|
82901
82901
|
return false;
|
|
82902
82902
|
}
|
|
82903
82903
|
}
|
|
@@ -83582,20 +83582,23 @@ var require_write = __commonJS({
|
|
|
83582
83582
|
return (0, rimraf_1.default)(lockfilePath);
|
|
83583
83583
|
}
|
|
83584
83584
|
const lockfileToStringify = opts?.useInlineSpecifiersFormat ?? false ? (0, inlineSpecifiersLockfileConverters_1.convertToInlineSpecifiersFormat)(wantedLockfile) : wantedLockfile;
|
|
83585
|
-
const yamlDoc = yamlStringify(lockfileToStringify,
|
|
83585
|
+
const yamlDoc = yamlStringify(lockfileToStringify, {
|
|
83586
|
+
forceSharedFormat: opts?.forceSharedFormat === true,
|
|
83587
|
+
includeEmptySpecifiersField: !opts?.useInlineSpecifiersFormat
|
|
83588
|
+
});
|
|
83586
83589
|
return writeFileAtomic(lockfilePath, yamlDoc);
|
|
83587
83590
|
}
|
|
83588
|
-
function yamlStringify(lockfile,
|
|
83589
|
-
let normalizedLockfile = normalizeLockfile(lockfile,
|
|
83591
|
+
function yamlStringify(lockfile, opts) {
|
|
83592
|
+
let normalizedLockfile = normalizeLockfile(lockfile, opts);
|
|
83590
83593
|
normalizedLockfile = (0, sortLockfileKeys_1.sortLockfileKeys)(normalizedLockfile);
|
|
83591
83594
|
return js_yaml_1.default.dump(normalizedLockfile, LOCKFILE_YAML_FORMAT);
|
|
83592
83595
|
}
|
|
83593
83596
|
function isEmptyLockfile(lockfile) {
|
|
83594
83597
|
return Object.values(lockfile.importers).every((importer) => (0, isEmpty_js_1.default)(importer.specifiers ?? {}) && (0, isEmpty_js_1.default)(importer.dependencies ?? {}));
|
|
83595
83598
|
}
|
|
83596
|
-
function normalizeLockfile(lockfile,
|
|
83599
|
+
function normalizeLockfile(lockfile, opts) {
|
|
83597
83600
|
let lockfileToSave;
|
|
83598
|
-
if (!forceSharedFormat && (0, equals_js_1.default)(Object.keys(lockfile.importers), ["."])) {
|
|
83601
|
+
if (!opts.forceSharedFormat && (0, equals_js_1.default)(Object.keys(lockfile.importers), ["."])) {
|
|
83599
83602
|
lockfileToSave = {
|
|
83600
83603
|
...lockfile,
|
|
83601
83604
|
...lockfile.importers["."]
|
|
@@ -83614,9 +83617,10 @@ var require_write = __commonJS({
|
|
|
83614
83617
|
...lockfile,
|
|
83615
83618
|
importers: Object.keys(lockfile.importers).reduce((acc, alias) => {
|
|
83616
83619
|
const importer = lockfile.importers[alias];
|
|
83617
|
-
const normalizedImporter = {
|
|
83618
|
-
|
|
83619
|
-
|
|
83620
|
+
const normalizedImporter = {};
|
|
83621
|
+
if (!(0, isEmpty_js_1.default)(importer.specifiers ?? {}) || opts.includeEmptySpecifiersField) {
|
|
83622
|
+
normalizedImporter["specifiers"] = importer.specifiers ?? {};
|
|
83623
|
+
}
|
|
83620
83624
|
if (importer.dependenciesMeta != null && !(0, isEmpty_js_1.default)(importer.dependenciesMeta)) {
|
|
83621
83625
|
normalizedImporter["dependenciesMeta"] = importer.dependenciesMeta;
|
|
83622
83626
|
}
|
|
@@ -83625,6 +83629,9 @@ var require_write = __commonJS({
|
|
|
83625
83629
|
normalizedImporter[depType] = importer[depType];
|
|
83626
83630
|
}
|
|
83627
83631
|
}
|
|
83632
|
+
if (importer.publishDirectory) {
|
|
83633
|
+
normalizedImporter.publishDirectory = importer.publishDirectory;
|
|
83634
|
+
}
|
|
83628
83635
|
acc[alias] = normalizedImporter;
|
|
83629
83636
|
return acc;
|
|
83630
83637
|
}, {})
|
|
@@ -83668,7 +83675,11 @@ var require_write = __commonJS({
|
|
|
83668
83675
|
}
|
|
83669
83676
|
const forceSharedFormat = opts?.forceSharedFormat === true;
|
|
83670
83677
|
const wantedLockfileToStringify = opts.useInlineSpecifiersFormat ?? false ? (0, inlineSpecifiersLockfileConverters_1.convertToInlineSpecifiersFormat)(opts.wantedLockfile) : opts.wantedLockfile;
|
|
83671
|
-
const
|
|
83678
|
+
const normalizeOpts = {
|
|
83679
|
+
forceSharedFormat,
|
|
83680
|
+
includeEmptySpecifiersField: !opts.useInlineSpecifiersFormat
|
|
83681
|
+
};
|
|
83682
|
+
const yamlDoc = yamlStringify(wantedLockfileToStringify, normalizeOpts);
|
|
83672
83683
|
if (opts.wantedLockfile === opts.currentLockfile) {
|
|
83673
83684
|
await Promise.all([
|
|
83674
83685
|
writeFileAtomic(wantedLockfilePath, yamlDoc),
|
|
@@ -83683,7 +83694,7 @@ var require_write = __commonJS({
|
|
|
83683
83694
|
message: `\`${constants_1.WANTED_LOCKFILE}\` differs from \`${path_1.default.relative(opts.wantedLockfileDir, currentLockfilePath)}\``,
|
|
83684
83695
|
prefix: opts.wantedLockfileDir
|
|
83685
83696
|
});
|
|
83686
|
-
const currentYamlDoc = yamlStringify(opts.currentLockfile,
|
|
83697
|
+
const currentYamlDoc = yamlStringify(opts.currentLockfile, normalizeOpts);
|
|
83687
83698
|
await Promise.all([
|
|
83688
83699
|
writeFileAtomic(wantedLockfilePath, yamlDoc),
|
|
83689
83700
|
(async () => {
|
|
@@ -119173,6 +119184,9 @@ var require_lib104 = __commonJS({
|
|
|
119173
119184
|
optionalDependencies: {},
|
|
119174
119185
|
specifiers: {}
|
|
119175
119186
|
};
|
|
119187
|
+
if (newManifest.publishConfig?.directory) {
|
|
119188
|
+
newProjectSnapshot.publishDirectory = newManifest.publishConfig.directory;
|
|
119189
|
+
}
|
|
119176
119190
|
linkedPackages.forEach((linkedPkg) => {
|
|
119177
119191
|
newProjectSnapshot.specifiers[linkedPkg.alias] = (0, manifest_utils_1.getSpecFromPackageManifest)(newManifest, linkedPkg.alias);
|
|
119178
119192
|
});
|
|
@@ -181055,7 +181069,8 @@ var require_deploy = __commonJS({
|
|
|
181055
181069
|
throw new error_1.default("INVALID_DEPLOY_TARGET", "This command requires one parameter");
|
|
181056
181070
|
}
|
|
181057
181071
|
const deployedDir = selectedDirs[0];
|
|
181058
|
-
const
|
|
181072
|
+
const deployDirParam = params[0];
|
|
181073
|
+
const deployDir = path_1.default.isAbsolute(deployDirParam) ? deployDirParam : path_1.default.join(opts.dir, deployDirParam);
|
|
181059
181074
|
await (0, rimraf_1.default)(deployDir);
|
|
181060
181075
|
await fs_1.default.promises.mkdir(deployDir, { recursive: true });
|
|
181061
181076
|
await copyProject(deployedDir, deployDir);
|