@intelligentgraphics/ig.gfx.packager 3.1.0-alpha.4 → 3.1.0-alpha.6
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/build/bin.mjs +1 -1
- package/build/{cli-DLGFANVF.mjs → cli-CRt1pnL8.mjs} +49 -639
- package/build/cli-CRt1pnL8.mjs.map +1 -0
- package/build/{dependencies-M5HDPf46.mjs → dependencies-DzwnAMHr.mjs} +2 -2
- package/build/{dependencies-M5HDPf46.mjs.map → dependencies-DzwnAMHr.mjs.map} +1 -1
- package/build/docs-BlCIta3Y.mjs +37 -0
- package/build/docs-BlCIta3Y.mjs.map +1 -0
- package/build/{generateIndex-DRNwzIyR.mjs → generateIndex-1_US73VT.mjs} +3 -8
- package/build/{generateIndex-DRNwzIyR.mjs.map → generateIndex-1_US73VT.mjs.map} +1 -1
- package/build/{generateParameterType-9-1z1US9.mjs → generateParameterType-DSWCBqzV.mjs} +2 -7
- package/build/{generateParameterType-9-1z1US9.mjs.map → generateParameterType-DSWCBqzV.mjs.map} +1 -1
- package/build/{index-DV88vk2r.mjs → index-BIqEoSQH.mjs} +7 -11
- package/build/{index-DV88vk2r.mjs.map → index-BIqEoSQH.mjs.map} +1 -1
- package/build/{index-8OmlN_-6.mjs → index-Sj6AX2Pu.mjs} +37 -44
- package/build/index-Sj6AX2Pu.mjs.map +1 -0
- package/build/{postinstall-DleNm8LR.mjs → postinstall-DLxLg3tD.mjs} +4 -9
- package/build/postinstall-DLxLg3tD.mjs.map +1 -0
- package/build/{publishNpm-BecgvGe3.mjs → publishNpm-ByIPsGI3.mjs} +6 -11
- package/build/{publishNpm-BecgvGe3.mjs.map → publishNpm-ByIPsGI3.mjs.map} +1 -1
- package/build/{rollup-DXNQ8zID.mjs → rollup-Dspsy6kv.mjs} +115 -19
- package/build/rollup-Dspsy6kv.mjs.map +1 -0
- package/build/{scripts-DOxdNSgU.mjs → scripts-BmQnbRem.mjs} +2 -5
- package/build/scripts-BmQnbRem.mjs.map +1 -0
- package/build/{versionFile-LnFvSbd9.mjs → versionFile-CK9FMt3L.mjs} +3 -5
- package/build/{versionFile-LnFvSbd9.mjs.map → versionFile-CK9FMt3L.mjs.map} +1 -1
- package/lib/lib.mjs +32 -37
- package/package.json +15 -17
- package/readme.md +185 -176
- package/build/cli-DLGFANVF.mjs.map +0 -1
- package/build/index-8OmlN_-6.mjs.map +0 -1
- package/build/postinstall-DleNm8LR.mjs.map +0 -1
- package/build/rollup-DXNQ8zID.mjs.map +0 -1
- package/build/scripts-DOxdNSgU.mjs.map +0 -1
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import updateNotifier from 'update-notifier';
|
|
2
|
-
import * as fs
|
|
3
|
-
import
|
|
4
|
-
import * as path$1 from 'path';
|
|
5
|
-
import path__default from 'path';
|
|
2
|
+
import * as fs from 'fs';
|
|
3
|
+
import * as path from 'path';
|
|
6
4
|
import yargs from 'yargs/yargs';
|
|
7
5
|
import { fileURLToPath } from 'url';
|
|
8
|
-
import glob from 'glob';
|
|
6
|
+
import * as glob from 'glob';
|
|
9
7
|
import 'resolve';
|
|
10
8
|
import { writePackageSync } from 'write-pkg';
|
|
11
|
-
import 'node:path';
|
|
12
|
-
import 'node:fs';
|
|
13
|
-
import require$$0 from 'assert';
|
|
14
|
-
import require$$2 from 'events';
|
|
15
|
-
import require$$6 from 'util';
|
|
16
9
|
import axios, { AxiosError } from 'axios';
|
|
17
10
|
import inquirer from 'inquirer';
|
|
18
11
|
|
|
@@ -26,14 +19,14 @@ const stripUtf8Bom = (text)=>{
|
|
|
26
19
|
};
|
|
27
20
|
|
|
28
21
|
const readNpmManifest = (directory)=>{
|
|
29
|
-
const packageJsonPath = path
|
|
30
|
-
const packageJson = stripUtf8Bom(fs
|
|
22
|
+
const packageJsonPath = path.join(directory, "package.json");
|
|
23
|
+
const packageJson = stripUtf8Bom(fs.readFileSync(packageJsonPath, {
|
|
31
24
|
encoding: "utf8"
|
|
32
25
|
}));
|
|
33
26
|
return JSON.parse(packageJson);
|
|
34
27
|
};
|
|
35
28
|
const writeNpmManifest = (directory, packageJson)=>{
|
|
36
|
-
const packageJsonPath = path
|
|
29
|
+
const packageJsonPath = path.join(directory, "package.json");
|
|
37
30
|
writePackageSync(packageJsonPath, packageJson);
|
|
38
31
|
};
|
|
39
32
|
|
|
@@ -95,18 +88,18 @@ function parseCreatorPackageName(manifest) {
|
|
|
95
88
|
* @param {string} directory
|
|
96
89
|
* @returns {PackageLocation}
|
|
97
90
|
*/ const detectPackage = (workspace, directory)=>{
|
|
98
|
-
directory = path
|
|
99
|
-
const scriptsPath = path
|
|
100
|
-
const tsPath = path
|
|
91
|
+
directory = path.resolve(workspace.path, directory);
|
|
92
|
+
const scriptsPath = path.join(directory, "Scripts");
|
|
93
|
+
const tsPath = path.join(directory, "ts");
|
|
101
94
|
let location;
|
|
102
|
-
if (fs
|
|
95
|
+
if (fs.existsSync(scriptsPath)) {
|
|
103
96
|
location = {
|
|
104
97
|
_kind: "PackageLocation",
|
|
105
98
|
path: directory,
|
|
106
99
|
scriptsDir: scriptsPath,
|
|
107
100
|
manifestDir: scriptsPath
|
|
108
101
|
};
|
|
109
|
-
} else if (fs
|
|
102
|
+
} else if (fs.existsSync(tsPath)) {
|
|
110
103
|
location = {
|
|
111
104
|
_kind: "PackageLocation",
|
|
112
105
|
path: directory,
|
|
@@ -132,21 +125,21 @@ function parseCreatorPackageName(manifest) {
|
|
|
132
125
|
return location;
|
|
133
126
|
};
|
|
134
127
|
const readPackageCreatorManifest = (location)=>{
|
|
135
|
-
const packageJsonPath = path
|
|
136
|
-
const packageJson = stripUtf8Bom(fs
|
|
128
|
+
const packageJsonPath = path.join(location.manifestDir, PACKAGE_FILE);
|
|
129
|
+
const packageJson = stripUtf8Bom(fs.readFileSync(packageJsonPath, {
|
|
137
130
|
encoding: "utf8"
|
|
138
131
|
}));
|
|
139
132
|
return JSON.parse(packageJson);
|
|
140
133
|
};
|
|
141
134
|
const writePackageCreatorManifest = (location, creatorPackage)=>{
|
|
142
|
-
const packageJsonPath = path
|
|
143
|
-
fs
|
|
135
|
+
const packageJsonPath = path.join(location.manifestDir, PACKAGE_FILE);
|
|
136
|
+
fs.writeFileSync(packageJsonPath, JSON.stringify(creatorPackage, null, "\t") + "\n");
|
|
144
137
|
};
|
|
145
|
-
const getPackageCreatorIndexPath = (location)=>path
|
|
138
|
+
const getPackageCreatorIndexPath = (location)=>path.join(location.manifestDir, INDEX_FILE);
|
|
146
139
|
const readPackageCreatorIndex = (location)=>{
|
|
147
140
|
try {
|
|
148
141
|
const indexPath = getPackageCreatorIndexPath(location);
|
|
149
|
-
const index = stripUtf8Bom(fs
|
|
142
|
+
const index = stripUtf8Bom(fs.readFileSync(indexPath, {
|
|
150
143
|
encoding: "utf8"
|
|
151
144
|
}));
|
|
152
145
|
return JSON.parse(index);
|
|
@@ -159,7 +152,7 @@ const readPackageCreatorIndex = (location)=>{
|
|
|
159
152
|
};
|
|
160
153
|
const writePackageCreatorIndex = (location, index)=>{
|
|
161
154
|
const indexPath = getPackageCreatorIndexPath(location);
|
|
162
|
-
fs
|
|
155
|
+
fs.writeFileSync(indexPath, JSON.stringify(index, null, "\t") + "\n");
|
|
163
156
|
};
|
|
164
157
|
const readPackageNpmManifest = (location)=>{
|
|
165
158
|
try {
|
|
@@ -175,21 +168,21 @@ const writePackageNpmManifest = (location, packageJson)=>{
|
|
|
175
168
|
writeNpmManifest(location.manifestDir, packageJson);
|
|
176
169
|
};
|
|
177
170
|
const readPackageAnimationList = (location)=>{
|
|
178
|
-
const directoryContent = fs
|
|
171
|
+
const directoryContent = fs.readdirSync(location.manifestDir);
|
|
179
172
|
const animationPathList = [];
|
|
180
173
|
for (const entry of directoryContent){
|
|
181
174
|
if (entry.endsWith(ANIMATION_FILE_SUFFIX)) {
|
|
182
|
-
const animationPath = path
|
|
175
|
+
const animationPath = path.join(location.manifestDir, entry);
|
|
183
176
|
animationPathList.push(animationPath);
|
|
184
177
|
}
|
|
185
178
|
}
|
|
186
179
|
return animationPathList;
|
|
187
180
|
};
|
|
188
|
-
const getPackageReleasesDirectory = (location)=>path
|
|
181
|
+
const getPackageReleasesDirectory = (location)=>path.join(location.path, "Releases");
|
|
189
182
|
|
|
190
183
|
// Functionality related to working with a workspace consisting of multiple packages.
|
|
191
184
|
const detectWorkspace = (directory)=>{
|
|
192
|
-
directory = path
|
|
185
|
+
directory = path.resolve(process.cwd(), directory);
|
|
193
186
|
return {
|
|
194
187
|
_kind: "WorkspaceLocation",
|
|
195
188
|
path: directory
|
|
@@ -206,10 +199,10 @@ const readWorkspaceNpmManifest = (workspace)=>{
|
|
|
206
199
|
}
|
|
207
200
|
};
|
|
208
201
|
const writeWorkspaceNpmManifest = (workspace, packageJson)=>writeNpmManifest(workspace.path, packageJson);
|
|
209
|
-
const getWorkspaceOutputPath = (workspace)=>path
|
|
210
|
-
const getWorkspaceLibPath = (workspace)=>path
|
|
202
|
+
const getWorkspaceOutputPath = (workspace)=>path.join(workspace.path, "bin");
|
|
203
|
+
const getWorkspaceLibPath = (workspace)=>path.join(workspace.path, "lib");
|
|
211
204
|
function* iterateWorkspacePackages(workspace) {
|
|
212
|
-
const entries = fs
|
|
205
|
+
const entries = fs.readdirSync(workspace.path, {
|
|
213
206
|
withFileTypes: true
|
|
214
207
|
});
|
|
215
208
|
for (const entry of entries){
|
|
@@ -222,596 +215,6 @@ function* iterateWorkspacePackages(workspace) {
|
|
|
222
215
|
}
|
|
223
216
|
}
|
|
224
217
|
|
|
225
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
226
|
-
|
|
227
|
-
var writeFileAtomic = {exports: {}};
|
|
228
|
-
|
|
229
|
-
var imurmurhash = {exports: {}};
|
|
230
|
-
|
|
231
|
-
(function(module) {
|
|
232
|
-
(function() {
|
|
233
|
-
var cache;
|
|
234
|
-
// Call this function without `new` to use the cached object (good for
|
|
235
|
-
// single-threaded environments), or with `new` to create a new object.
|
|
236
|
-
//
|
|
237
|
-
// @param {string} key A UTF-16 or ASCII string
|
|
238
|
-
// @param {number} seed An optional positive integer
|
|
239
|
-
// @return {object} A MurmurHash3 object for incremental hashing
|
|
240
|
-
function MurmurHash3(key, seed) {
|
|
241
|
-
var m = this instanceof MurmurHash3 ? this : cache;
|
|
242
|
-
m.reset(seed);
|
|
243
|
-
if (typeof key === 'string' && key.length > 0) {
|
|
244
|
-
m.hash(key);
|
|
245
|
-
}
|
|
246
|
-
if (m !== this) {
|
|
247
|
-
return m;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
// Incrementally add a string to this hash
|
|
251
|
-
//
|
|
252
|
-
// @param {string} key A UTF-16 or ASCII string
|
|
253
|
-
// @return {object} this
|
|
254
|
-
MurmurHash3.prototype.hash = function(key) {
|
|
255
|
-
var h1, k1, i, top, len;
|
|
256
|
-
len = key.length;
|
|
257
|
-
this.len += len;
|
|
258
|
-
k1 = this.k1;
|
|
259
|
-
i = 0;
|
|
260
|
-
switch(this.rem){
|
|
261
|
-
case 0:
|
|
262
|
-
k1 ^= len > i ? key.charCodeAt(i++) & 0xffff : 0;
|
|
263
|
-
case 1:
|
|
264
|
-
k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 8 : 0;
|
|
265
|
-
case 2:
|
|
266
|
-
k1 ^= len > i ? (key.charCodeAt(i++) & 0xffff) << 16 : 0;
|
|
267
|
-
case 3:
|
|
268
|
-
k1 ^= len > i ? (key.charCodeAt(i) & 0xff) << 24 : 0;
|
|
269
|
-
k1 ^= len > i ? (key.charCodeAt(i++) & 0xff00) >> 8 : 0;
|
|
270
|
-
}
|
|
271
|
-
this.rem = len + this.rem & 3; // & 3 is same as % 4
|
|
272
|
-
len -= this.rem;
|
|
273
|
-
if (len > 0) {
|
|
274
|
-
h1 = this.h1;
|
|
275
|
-
while(1){
|
|
276
|
-
k1 = k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000 & 0xffffffff;
|
|
277
|
-
k1 = k1 << 15 | k1 >>> 17;
|
|
278
|
-
k1 = k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000 & 0xffffffff;
|
|
279
|
-
h1 ^= k1;
|
|
280
|
-
h1 = h1 << 13 | h1 >>> 19;
|
|
281
|
-
h1 = h1 * 5 + 0xe6546b64 & 0xffffffff;
|
|
282
|
-
if (i >= len) {
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
k1 = key.charCodeAt(i++) & 0xffff ^ (key.charCodeAt(i++) & 0xffff) << 8 ^ (key.charCodeAt(i++) & 0xffff) << 16;
|
|
286
|
-
top = key.charCodeAt(i++);
|
|
287
|
-
k1 ^= (top & 0xff) << 24 ^ (top & 0xff00) >> 8;
|
|
288
|
-
}
|
|
289
|
-
k1 = 0;
|
|
290
|
-
switch(this.rem){
|
|
291
|
-
case 3:
|
|
292
|
-
k1 ^= (key.charCodeAt(i + 2) & 0xffff) << 16;
|
|
293
|
-
case 2:
|
|
294
|
-
k1 ^= (key.charCodeAt(i + 1) & 0xffff) << 8;
|
|
295
|
-
case 1:
|
|
296
|
-
k1 ^= key.charCodeAt(i) & 0xffff;
|
|
297
|
-
}
|
|
298
|
-
this.h1 = h1;
|
|
299
|
-
}
|
|
300
|
-
this.k1 = k1;
|
|
301
|
-
return this;
|
|
302
|
-
};
|
|
303
|
-
// Get the result of this hash
|
|
304
|
-
//
|
|
305
|
-
// @return {number} The 32-bit hash
|
|
306
|
-
MurmurHash3.prototype.result = function() {
|
|
307
|
-
var k1, h1;
|
|
308
|
-
k1 = this.k1;
|
|
309
|
-
h1 = this.h1;
|
|
310
|
-
if (k1 > 0) {
|
|
311
|
-
k1 = k1 * 0x2d51 + (k1 & 0xffff) * 0xcc9e0000 & 0xffffffff;
|
|
312
|
-
k1 = k1 << 15 | k1 >>> 17;
|
|
313
|
-
k1 = k1 * 0x3593 + (k1 & 0xffff) * 0x1b870000 & 0xffffffff;
|
|
314
|
-
h1 ^= k1;
|
|
315
|
-
}
|
|
316
|
-
h1 ^= this.len;
|
|
317
|
-
h1 ^= h1 >>> 16;
|
|
318
|
-
h1 = h1 * 0xca6b + (h1 & 0xffff) * 0x85eb0000 & 0xffffffff;
|
|
319
|
-
h1 ^= h1 >>> 13;
|
|
320
|
-
h1 = h1 * 0xae35 + (h1 & 0xffff) * 0xc2b20000 & 0xffffffff;
|
|
321
|
-
h1 ^= h1 >>> 16;
|
|
322
|
-
return h1 >>> 0;
|
|
323
|
-
};
|
|
324
|
-
// Reset the hash object for reuse
|
|
325
|
-
//
|
|
326
|
-
// @param {number} seed An optional positive integer
|
|
327
|
-
MurmurHash3.prototype.reset = function(seed) {
|
|
328
|
-
this.h1 = typeof seed === 'number' ? seed : 0;
|
|
329
|
-
this.rem = this.k1 = this.len = 0;
|
|
330
|
-
return this;
|
|
331
|
-
};
|
|
332
|
-
// A cached object to use. This can be safely used if you're in a single-
|
|
333
|
-
// threaded environment, otherwise you need to create new hashes to use.
|
|
334
|
-
cache = new MurmurHash3();
|
|
335
|
-
{
|
|
336
|
-
module.exports = MurmurHash3;
|
|
337
|
-
}
|
|
338
|
-
})();
|
|
339
|
-
})(imurmurhash);
|
|
340
|
-
var imurmurhashExports = imurmurhash.exports;
|
|
341
|
-
|
|
342
|
-
var signalExit = {exports: {}};
|
|
343
|
-
|
|
344
|
-
var signals$1 = {exports: {}};
|
|
345
|
-
|
|
346
|
-
var hasRequiredSignals;
|
|
347
|
-
function requireSignals() {
|
|
348
|
-
if (hasRequiredSignals) return signals$1.exports;
|
|
349
|
-
hasRequiredSignals = 1;
|
|
350
|
-
(function(module) {
|
|
351
|
-
// This is not the set of all possible signals.
|
|
352
|
-
//
|
|
353
|
-
// It IS, however, the set of all signals that trigger
|
|
354
|
-
// an exit on either Linux or BSD systems. Linux is a
|
|
355
|
-
// superset of the signal names supported on BSD, and
|
|
356
|
-
// the unknown signals just fail to register, so we can
|
|
357
|
-
// catch that easily enough.
|
|
358
|
-
//
|
|
359
|
-
// Don't bother with SIGKILL. It's uncatchable, which
|
|
360
|
-
// means that we can't fire any callbacks anyway.
|
|
361
|
-
//
|
|
362
|
-
// If a user does happen to register a handler on a non-
|
|
363
|
-
// fatal signal like SIGWINCH or something, and then
|
|
364
|
-
// exit, it'll end up firing `process.emit('exit')`, so
|
|
365
|
-
// the handler will be fired anyway.
|
|
366
|
-
//
|
|
367
|
-
// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
|
|
368
|
-
// artificially, inherently leave the process in a
|
|
369
|
-
// state from which it is not safe to try and enter JS
|
|
370
|
-
// listeners.
|
|
371
|
-
module.exports = [
|
|
372
|
-
'SIGABRT',
|
|
373
|
-
'SIGALRM',
|
|
374
|
-
'SIGHUP',
|
|
375
|
-
'SIGINT',
|
|
376
|
-
'SIGTERM'
|
|
377
|
-
];
|
|
378
|
-
if (process.platform !== 'win32') {
|
|
379
|
-
module.exports.push('SIGVTALRM', 'SIGXCPU', 'SIGXFSZ', 'SIGUSR2', 'SIGTRAP', 'SIGSYS', 'SIGQUIT', 'SIGIOT');
|
|
380
|
-
}
|
|
381
|
-
if (process.platform === 'linux') {
|
|
382
|
-
module.exports.push('SIGIO', 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT', 'SIGUNUSED');
|
|
383
|
-
}
|
|
384
|
-
})(signals$1);
|
|
385
|
-
return signals$1.exports;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
// Note: since nyc uses this module to output coverage, any lines
|
|
389
|
-
// that are in the direct sync flow of nyc's outputCoverage are
|
|
390
|
-
// ignored, since we can never get coverage for them.
|
|
391
|
-
// grab a reference to node's real process object right away
|
|
392
|
-
var process$1 = commonjsGlobal.process;
|
|
393
|
-
const processOk = function(process) {
|
|
394
|
-
return process && typeof process === 'object' && typeof process.removeListener === 'function' && typeof process.emit === 'function' && typeof process.reallyExit === 'function' && typeof process.listeners === 'function' && typeof process.kill === 'function' && typeof process.pid === 'number' && typeof process.on === 'function';
|
|
395
|
-
};
|
|
396
|
-
// some kind of non-node environment, just no-op
|
|
397
|
-
/* istanbul ignore if */ if (!processOk(process$1)) {
|
|
398
|
-
signalExit.exports = function() {
|
|
399
|
-
return function() {};
|
|
400
|
-
};
|
|
401
|
-
} else {
|
|
402
|
-
var assert = require$$0;
|
|
403
|
-
var signals = requireSignals();
|
|
404
|
-
var isWin = /^win/i.test(process$1.platform);
|
|
405
|
-
var EE = require$$2;
|
|
406
|
-
/* istanbul ignore if */ if (typeof EE !== 'function') {
|
|
407
|
-
EE = EE.EventEmitter;
|
|
408
|
-
}
|
|
409
|
-
var emitter;
|
|
410
|
-
if (process$1.__signal_exit_emitter__) {
|
|
411
|
-
emitter = process$1.__signal_exit_emitter__;
|
|
412
|
-
} else {
|
|
413
|
-
emitter = process$1.__signal_exit_emitter__ = new EE();
|
|
414
|
-
emitter.count = 0;
|
|
415
|
-
emitter.emitted = {};
|
|
416
|
-
}
|
|
417
|
-
// Because this emitter is a global, we have to check to see if a
|
|
418
|
-
// previous version of this library failed to enable infinite listeners.
|
|
419
|
-
// I know what you're about to say. But literally everything about
|
|
420
|
-
// signal-exit is a compromise with evil. Get used to it.
|
|
421
|
-
if (!emitter.infinite) {
|
|
422
|
-
emitter.setMaxListeners(Infinity);
|
|
423
|
-
emitter.infinite = true;
|
|
424
|
-
}
|
|
425
|
-
signalExit.exports = function(cb, opts) {
|
|
426
|
-
/* istanbul ignore if */ if (!processOk(commonjsGlobal.process)) {
|
|
427
|
-
return function() {};
|
|
428
|
-
}
|
|
429
|
-
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler');
|
|
430
|
-
if (loaded === false) {
|
|
431
|
-
load();
|
|
432
|
-
}
|
|
433
|
-
var ev = 'exit';
|
|
434
|
-
if (opts && opts.alwaysLast) {
|
|
435
|
-
ev = 'afterexit';
|
|
436
|
-
}
|
|
437
|
-
var remove = function() {
|
|
438
|
-
emitter.removeListener(ev, cb);
|
|
439
|
-
if (emitter.listeners('exit').length === 0 && emitter.listeners('afterexit').length === 0) {
|
|
440
|
-
unload();
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
|
-
emitter.on(ev, cb);
|
|
444
|
-
return remove;
|
|
445
|
-
};
|
|
446
|
-
var unload = function unload() {
|
|
447
|
-
if (!loaded || !processOk(commonjsGlobal.process)) {
|
|
448
|
-
return;
|
|
449
|
-
}
|
|
450
|
-
loaded = false;
|
|
451
|
-
signals.forEach(function(sig) {
|
|
452
|
-
try {
|
|
453
|
-
process$1.removeListener(sig, sigListeners[sig]);
|
|
454
|
-
} catch (er) {}
|
|
455
|
-
});
|
|
456
|
-
process$1.emit = originalProcessEmit;
|
|
457
|
-
process$1.reallyExit = originalProcessReallyExit;
|
|
458
|
-
emitter.count -= 1;
|
|
459
|
-
};
|
|
460
|
-
signalExit.exports.unload = unload;
|
|
461
|
-
var emit = function emit(event, code, signal) {
|
|
462
|
-
/* istanbul ignore if */ if (emitter.emitted[event]) {
|
|
463
|
-
return;
|
|
464
|
-
}
|
|
465
|
-
emitter.emitted[event] = true;
|
|
466
|
-
emitter.emit(event, code, signal);
|
|
467
|
-
};
|
|
468
|
-
// { <signal>: <listener fn>, ... }
|
|
469
|
-
var sigListeners = {};
|
|
470
|
-
signals.forEach(function(sig) {
|
|
471
|
-
sigListeners[sig] = function listener() {
|
|
472
|
-
/* istanbul ignore if */ if (!processOk(commonjsGlobal.process)) {
|
|
473
|
-
return;
|
|
474
|
-
}
|
|
475
|
-
// If there are no other listeners, an exit is coming!
|
|
476
|
-
// Simplest way: remove us and then re-send the signal.
|
|
477
|
-
// We know that this will kill the process, so we can
|
|
478
|
-
// safely emit now.
|
|
479
|
-
var listeners = process$1.listeners(sig);
|
|
480
|
-
if (listeners.length === emitter.count) {
|
|
481
|
-
unload();
|
|
482
|
-
emit('exit', null, sig);
|
|
483
|
-
/* istanbul ignore next */ emit('afterexit', null, sig);
|
|
484
|
-
/* istanbul ignore next */ if (isWin && sig === 'SIGHUP') {
|
|
485
|
-
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
486
|
-
// so use a supported signal instead
|
|
487
|
-
sig = 'SIGINT';
|
|
488
|
-
}
|
|
489
|
-
/* istanbul ignore next */ process$1.kill(process$1.pid, sig);
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
});
|
|
493
|
-
signalExit.exports.signals = function() {
|
|
494
|
-
return signals;
|
|
495
|
-
};
|
|
496
|
-
var loaded = false;
|
|
497
|
-
var load = function load() {
|
|
498
|
-
if (loaded || !processOk(commonjsGlobal.process)) {
|
|
499
|
-
return;
|
|
500
|
-
}
|
|
501
|
-
loaded = true;
|
|
502
|
-
// This is the number of onSignalExit's that are in play.
|
|
503
|
-
// It's important so that we can count the correct number of
|
|
504
|
-
// listeners on signals, and don't wait for the other one to
|
|
505
|
-
// handle it instead of us.
|
|
506
|
-
emitter.count += 1;
|
|
507
|
-
signals = signals.filter(function(sig) {
|
|
508
|
-
try {
|
|
509
|
-
process$1.on(sig, sigListeners[sig]);
|
|
510
|
-
return true;
|
|
511
|
-
} catch (er) {
|
|
512
|
-
return false;
|
|
513
|
-
}
|
|
514
|
-
});
|
|
515
|
-
process$1.emit = processEmit;
|
|
516
|
-
process$1.reallyExit = processReallyExit;
|
|
517
|
-
};
|
|
518
|
-
signalExit.exports.load = load;
|
|
519
|
-
var originalProcessReallyExit = process$1.reallyExit;
|
|
520
|
-
var processReallyExit = function processReallyExit(code) {
|
|
521
|
-
/* istanbul ignore if */ if (!processOk(commonjsGlobal.process)) {
|
|
522
|
-
return;
|
|
523
|
-
}
|
|
524
|
-
process$1.exitCode = code || /* istanbul ignore next */ 0;
|
|
525
|
-
emit('exit', process$1.exitCode, null);
|
|
526
|
-
/* istanbul ignore next */ emit('afterexit', process$1.exitCode, null);
|
|
527
|
-
/* istanbul ignore next */ originalProcessReallyExit.call(process$1, process$1.exitCode);
|
|
528
|
-
};
|
|
529
|
-
var originalProcessEmit = process$1.emit;
|
|
530
|
-
var processEmit = function processEmit(ev, arg) {
|
|
531
|
-
if (ev === 'exit' && processOk(commonjsGlobal.process)) {
|
|
532
|
-
/* istanbul ignore else */ if (arg !== undefined) {
|
|
533
|
-
process$1.exitCode = arg;
|
|
534
|
-
}
|
|
535
|
-
var ret = originalProcessEmit.apply(this, arguments);
|
|
536
|
-
/* istanbul ignore next */ emit('exit', process$1.exitCode, null);
|
|
537
|
-
/* istanbul ignore next */ emit('afterexit', process$1.exitCode, null);
|
|
538
|
-
/* istanbul ignore next */ return ret;
|
|
539
|
-
} else {
|
|
540
|
-
return originalProcessEmit.apply(this, arguments);
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
var signalExitExports = signalExit.exports;
|
|
545
|
-
|
|
546
|
-
var isTypedarray = isTypedArray$2;
|
|
547
|
-
isTypedArray$2.strict = isStrictTypedArray;
|
|
548
|
-
isTypedArray$2.loose = isLooseTypedArray;
|
|
549
|
-
var toString = Object.prototype.toString;
|
|
550
|
-
var names = {
|
|
551
|
-
'[object Int8Array]': true,
|
|
552
|
-
'[object Int16Array]': true,
|
|
553
|
-
'[object Int32Array]': true,
|
|
554
|
-
'[object Uint8Array]': true,
|
|
555
|
-
'[object Uint8ClampedArray]': true,
|
|
556
|
-
'[object Uint16Array]': true,
|
|
557
|
-
'[object Uint32Array]': true,
|
|
558
|
-
'[object Float32Array]': true,
|
|
559
|
-
'[object Float64Array]': true
|
|
560
|
-
};
|
|
561
|
-
function isTypedArray$2(arr) {
|
|
562
|
-
return isStrictTypedArray(arr) || isLooseTypedArray(arr);
|
|
563
|
-
}
|
|
564
|
-
function isStrictTypedArray(arr) {
|
|
565
|
-
return arr instanceof Int8Array || arr instanceof Int16Array || arr instanceof Int32Array || arr instanceof Uint8Array || arr instanceof Uint8ClampedArray || arr instanceof Uint16Array || arr instanceof Uint32Array || arr instanceof Float32Array || arr instanceof Float64Array;
|
|
566
|
-
}
|
|
567
|
-
function isLooseTypedArray(arr) {
|
|
568
|
-
return names[toString.call(arr)];
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
var isTypedArray$1 = isTypedarray.strict;
|
|
572
|
-
var typedarrayToBuffer = function typedarrayToBuffer(arr) {
|
|
573
|
-
if (isTypedArray$1(arr)) {
|
|
574
|
-
// To avoid a copy, use the typed array's underlying ArrayBuffer to back new Buffer
|
|
575
|
-
var buf = Buffer.from(arr.buffer);
|
|
576
|
-
if (arr.byteLength !== arr.buffer.byteLength) {
|
|
577
|
-
// Respect the "view", i.e. byteOffset and byteLength, without doing a copy
|
|
578
|
-
buf = buf.slice(arr.byteOffset, arr.byteOffset + arr.byteLength);
|
|
579
|
-
}
|
|
580
|
-
return buf;
|
|
581
|
-
} else {
|
|
582
|
-
// Pass through all other types to `Buffer.from`
|
|
583
|
-
return Buffer.from(arr);
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
writeFileAtomic.exports = writeFile;
|
|
588
|
-
writeFileAtomic.exports.sync = writeFileSync;
|
|
589
|
-
writeFileAtomic.exports._getTmpname = getTmpname // for testing
|
|
590
|
-
;
|
|
591
|
-
writeFileAtomic.exports._cleanupOnExit = cleanupOnExit;
|
|
592
|
-
const fs = fs__default;
|
|
593
|
-
const MurmurHash3 = imurmurhashExports;
|
|
594
|
-
const onExit = signalExitExports;
|
|
595
|
-
const path = path__default;
|
|
596
|
-
const isTypedArray = isTypedarray;
|
|
597
|
-
const typedArrayToBuffer = typedarrayToBuffer;
|
|
598
|
-
const { promisify } = require$$6;
|
|
599
|
-
const activeFiles = {};
|
|
600
|
-
// if we run inside of a worker_thread, `process.pid` is not unique
|
|
601
|
-
/* istanbul ignore next */ const threadId = function getId() {
|
|
602
|
-
try {
|
|
603
|
-
const workerThreads = require('worker_threads');
|
|
604
|
-
/// if we are in main thread, this is set to `0`
|
|
605
|
-
return workerThreads.threadId;
|
|
606
|
-
} catch (e) {
|
|
607
|
-
// worker_threads are not available, fallback to 0
|
|
608
|
-
return 0;
|
|
609
|
-
}
|
|
610
|
-
}();
|
|
611
|
-
let invocations = 0;
|
|
612
|
-
function getTmpname(filename) {
|
|
613
|
-
return filename + '.' + MurmurHash3(__filename).hash(String(process.pid)).hash(String(threadId)).hash(String(++invocations)).result();
|
|
614
|
-
}
|
|
615
|
-
function cleanupOnExit(tmpfile) {
|
|
616
|
-
return ()=>{
|
|
617
|
-
try {
|
|
618
|
-
fs.unlinkSync(typeof tmpfile === 'function' ? tmpfile() : tmpfile);
|
|
619
|
-
} catch (_) {}
|
|
620
|
-
};
|
|
621
|
-
}
|
|
622
|
-
function serializeActiveFile(absoluteName) {
|
|
623
|
-
return new Promise((resolve)=>{
|
|
624
|
-
// make a queue if it doesn't already exist
|
|
625
|
-
if (!activeFiles[absoluteName]) activeFiles[absoluteName] = [];
|
|
626
|
-
activeFiles[absoluteName].push(resolve); // add this job to the queue
|
|
627
|
-
if (activeFiles[absoluteName].length === 1) resolve(); // kick off the first one
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
// https://github.com/isaacs/node-graceful-fs/blob/master/polyfills.js#L315-L342
|
|
631
|
-
function isChownErrOk(err) {
|
|
632
|
-
if (err.code === 'ENOSYS') {
|
|
633
|
-
return true;
|
|
634
|
-
}
|
|
635
|
-
const nonroot = !process.getuid || process.getuid() !== 0;
|
|
636
|
-
if (nonroot) {
|
|
637
|
-
if (err.code === 'EINVAL' || err.code === 'EPERM') {
|
|
638
|
-
return true;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
return false;
|
|
642
|
-
}
|
|
643
|
-
async function writeFileAsync(filename, data, options = {}) {
|
|
644
|
-
if (typeof options === 'string') {
|
|
645
|
-
options = {
|
|
646
|
-
encoding: options
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
let fd;
|
|
650
|
-
let tmpfile;
|
|
651
|
-
/* istanbul ignore next -- The closure only gets called when onExit triggers */ const removeOnExitHandler = onExit(cleanupOnExit(()=>tmpfile));
|
|
652
|
-
const absoluteName = path.resolve(filename);
|
|
653
|
-
try {
|
|
654
|
-
await serializeActiveFile(absoluteName);
|
|
655
|
-
const truename = await promisify(fs.realpath)(filename).catch(()=>filename);
|
|
656
|
-
tmpfile = getTmpname(truename);
|
|
657
|
-
if (!options.mode || !options.chown) {
|
|
658
|
-
// Either mode or chown is not explicitly set
|
|
659
|
-
// Default behavior is to copy it from original file
|
|
660
|
-
const stats = await promisify(fs.stat)(truename).catch(()=>{});
|
|
661
|
-
if (stats) {
|
|
662
|
-
if (options.mode == null) {
|
|
663
|
-
options.mode = stats.mode;
|
|
664
|
-
}
|
|
665
|
-
if (options.chown == null && process.getuid) {
|
|
666
|
-
options.chown = {
|
|
667
|
-
uid: stats.uid,
|
|
668
|
-
gid: stats.gid
|
|
669
|
-
};
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
fd = await promisify(fs.open)(tmpfile, 'w', options.mode);
|
|
674
|
-
if (options.tmpfileCreated) {
|
|
675
|
-
await options.tmpfileCreated(tmpfile);
|
|
676
|
-
}
|
|
677
|
-
if (isTypedArray(data)) {
|
|
678
|
-
data = typedArrayToBuffer(data);
|
|
679
|
-
}
|
|
680
|
-
if (Buffer.isBuffer(data)) {
|
|
681
|
-
await promisify(fs.write)(fd, data, 0, data.length, 0);
|
|
682
|
-
} else if (data != null) {
|
|
683
|
-
await promisify(fs.write)(fd, String(data), 0, String(options.encoding || 'utf8'));
|
|
684
|
-
}
|
|
685
|
-
if (options.fsync !== false) {
|
|
686
|
-
await promisify(fs.fsync)(fd);
|
|
687
|
-
}
|
|
688
|
-
await promisify(fs.close)(fd);
|
|
689
|
-
fd = null;
|
|
690
|
-
if (options.chown) {
|
|
691
|
-
await promisify(fs.chown)(tmpfile, options.chown.uid, options.chown.gid).catch((err)=>{
|
|
692
|
-
if (!isChownErrOk(err)) {
|
|
693
|
-
throw err;
|
|
694
|
-
}
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
if (options.mode) {
|
|
698
|
-
await promisify(fs.chmod)(tmpfile, options.mode).catch((err)=>{
|
|
699
|
-
if (!isChownErrOk(err)) {
|
|
700
|
-
throw err;
|
|
701
|
-
}
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
await promisify(fs.rename)(tmpfile, truename);
|
|
705
|
-
} finally{
|
|
706
|
-
if (fd) {
|
|
707
|
-
await promisify(fs.close)(fd).catch(/* istanbul ignore next */ ()=>{});
|
|
708
|
-
}
|
|
709
|
-
removeOnExitHandler();
|
|
710
|
-
await promisify(fs.unlink)(tmpfile).catch(()=>{});
|
|
711
|
-
activeFiles[absoluteName].shift(); // remove the element added by serializeSameFile
|
|
712
|
-
if (activeFiles[absoluteName].length > 0) {
|
|
713
|
-
activeFiles[absoluteName][0](); // start next job if one is pending
|
|
714
|
-
} else delete activeFiles[absoluteName];
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
function writeFile(filename, data, options, callback) {
|
|
718
|
-
if (options instanceof Function) {
|
|
719
|
-
callback = options;
|
|
720
|
-
options = {};
|
|
721
|
-
}
|
|
722
|
-
const promise = writeFileAsync(filename, data, options);
|
|
723
|
-
if (callback) {
|
|
724
|
-
promise.then(callback, callback);
|
|
725
|
-
}
|
|
726
|
-
return promise;
|
|
727
|
-
}
|
|
728
|
-
function writeFileSync(filename, data, options) {
|
|
729
|
-
if (typeof options === 'string') options = {
|
|
730
|
-
encoding: options
|
|
731
|
-
};
|
|
732
|
-
else if (!options) options = {};
|
|
733
|
-
try {
|
|
734
|
-
filename = fs.realpathSync(filename);
|
|
735
|
-
} catch (ex) {
|
|
736
|
-
// it's ok, it'll happen on a not yet existing file
|
|
737
|
-
}
|
|
738
|
-
const tmpfile = getTmpname(filename);
|
|
739
|
-
if (!options.mode || !options.chown) {
|
|
740
|
-
// Either mode or chown is not explicitly set
|
|
741
|
-
// Default behavior is to copy it from original file
|
|
742
|
-
try {
|
|
743
|
-
const stats = fs.statSync(filename);
|
|
744
|
-
options = Object.assign({}, options);
|
|
745
|
-
if (!options.mode) {
|
|
746
|
-
options.mode = stats.mode;
|
|
747
|
-
}
|
|
748
|
-
if (!options.chown && process.getuid) {
|
|
749
|
-
options.chown = {
|
|
750
|
-
uid: stats.uid,
|
|
751
|
-
gid: stats.gid
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
} catch (ex) {
|
|
755
|
-
// ignore stat errors
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
let fd;
|
|
759
|
-
const cleanup = cleanupOnExit(tmpfile);
|
|
760
|
-
const removeOnExitHandler = onExit(cleanup);
|
|
761
|
-
let threw = true;
|
|
762
|
-
try {
|
|
763
|
-
fd = fs.openSync(tmpfile, 'w', options.mode || 438);
|
|
764
|
-
if (options.tmpfileCreated) {
|
|
765
|
-
options.tmpfileCreated(tmpfile);
|
|
766
|
-
}
|
|
767
|
-
if (isTypedArray(data)) {
|
|
768
|
-
data = typedArrayToBuffer(data);
|
|
769
|
-
}
|
|
770
|
-
if (Buffer.isBuffer(data)) {
|
|
771
|
-
fs.writeSync(fd, data, 0, data.length, 0);
|
|
772
|
-
} else if (data != null) {
|
|
773
|
-
fs.writeSync(fd, String(data), 0, String(options.encoding || 'utf8'));
|
|
774
|
-
}
|
|
775
|
-
if (options.fsync !== false) {
|
|
776
|
-
fs.fsyncSync(fd);
|
|
777
|
-
}
|
|
778
|
-
fs.closeSync(fd);
|
|
779
|
-
fd = null;
|
|
780
|
-
if (options.chown) {
|
|
781
|
-
try {
|
|
782
|
-
fs.chownSync(tmpfile, options.chown.uid, options.chown.gid);
|
|
783
|
-
} catch (err) {
|
|
784
|
-
if (!isChownErrOk(err)) {
|
|
785
|
-
throw err;
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
if (options.mode) {
|
|
790
|
-
try {
|
|
791
|
-
fs.chmodSync(tmpfile, options.mode);
|
|
792
|
-
} catch (err) {
|
|
793
|
-
if (!isChownErrOk(err)) {
|
|
794
|
-
throw err;
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
fs.renameSync(tmpfile, filename);
|
|
799
|
-
threw = false;
|
|
800
|
-
} finally{
|
|
801
|
-
if (fd) {
|
|
802
|
-
try {
|
|
803
|
-
fs.closeSync(fd);
|
|
804
|
-
} catch (ex) {
|
|
805
|
-
// ignore close errors at this stage, error may have closed fd already.
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
removeOnExitHandler();
|
|
809
|
-
if (threw) {
|
|
810
|
-
cleanup();
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
|
|
815
218
|
const PLUGIN_ID = "0feba3a0-b6d1-11e6-9598-0800200c9a66";
|
|
816
219
|
/**
|
|
817
220
|
* Starts an IG.Asset.Server session and returns the sessionId
|
|
@@ -942,9 +345,13 @@ const createDefaultPrompter = ()=>{
|
|
|
942
345
|
};
|
|
943
346
|
};
|
|
944
347
|
|
|
348
|
+
const docsHandler = async (location, declarationFile, outFolder, name)=>{
|
|
349
|
+
const { generateDocs } = await import('./docs-BlCIta3Y.mjs');
|
|
350
|
+
return await generateDocs(location, declarationFile, outFolder, name);
|
|
351
|
+
};
|
|
945
352
|
const __filename$1 = fileURLToPath(import.meta.url);
|
|
946
|
-
const __dirname$1 = path
|
|
947
|
-
const pjson = JSON.parse(fs
|
|
353
|
+
const __dirname$1 = path.dirname(__filename$1);
|
|
354
|
+
const pjson = JSON.parse(fs.readFileSync(path.join(__dirname$1, "..", "package.json"), "utf8"));
|
|
948
355
|
const captureError = (err)=>{
|
|
949
356
|
console.log("");
|
|
950
357
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -959,7 +366,7 @@ const buildOptions = {
|
|
|
959
366
|
description: "Output directory",
|
|
960
367
|
type: "string",
|
|
961
368
|
default: "bin",
|
|
962
|
-
coerce: (input)=>input === undefined || input === null ? undefined : path
|
|
369
|
+
coerce: (input)=>input === undefined || input === null ? undefined : path.resolve(process.cwd(), input)
|
|
963
370
|
},
|
|
964
371
|
minimize: {
|
|
965
372
|
description: "Minify output",
|
|
@@ -1051,19 +458,21 @@ yargsInstance.command("build [directories...]", "Builds the specified directorie
|
|
|
1051
458
|
if (folders.length === 0) {
|
|
1052
459
|
return console.log("No build targets found. Please check wether a folder with the provided name exists and wether it has _Package.json.");
|
|
1053
460
|
}
|
|
1054
|
-
const { buildFolders, buildFoldersWatch } = await import('./index-
|
|
461
|
+
const { buildFolders, buildFoldersWatch } = await import('./index-Sj6AX2Pu.mjs').then(function (n) { return n.i; });
|
|
1055
462
|
if (watch) {
|
|
1056
463
|
await buildFoldersWatch({
|
|
1057
464
|
...options,
|
|
1058
465
|
packages: folders,
|
|
1059
|
-
workspace
|
|
466
|
+
workspace,
|
|
467
|
+
docsHandler
|
|
1060
468
|
}).catch(captureError);
|
|
1061
469
|
return;
|
|
1062
470
|
}
|
|
1063
471
|
await buildFolders({
|
|
1064
472
|
...options,
|
|
1065
473
|
packages: folders,
|
|
1066
|
-
workspace
|
|
474
|
+
workspace,
|
|
475
|
+
docsHandler
|
|
1067
476
|
}).catch(captureError);
|
|
1068
477
|
});
|
|
1069
478
|
yargsInstance.command("publish [directory]", "Publishes the specified directory", (argv)=>argv.options({
|
|
@@ -1150,9 +559,9 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
|
|
|
1150
559
|
}
|
|
1151
560
|
let authentication;
|
|
1152
561
|
if (license) {
|
|
1153
|
-
const fullLicensePath = path
|
|
562
|
+
const fullLicensePath = path.resolve(process.cwd(), license);
|
|
1154
563
|
try {
|
|
1155
|
-
const content = fs
|
|
564
|
+
const content = fs.readFileSync(fullLicensePath);
|
|
1156
565
|
authentication = {
|
|
1157
566
|
type: "license",
|
|
1158
567
|
license: content.toString("base64")
|
|
@@ -1173,7 +582,7 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
|
|
|
1173
582
|
password
|
|
1174
583
|
};
|
|
1175
584
|
}
|
|
1176
|
-
const { releaseFolder } = await import('./index-
|
|
585
|
+
const { releaseFolder } = await import('./index-BIqEoSQH.mjs');
|
|
1177
586
|
const prompter = createDefaultPrompter();
|
|
1178
587
|
const fullOptions = {
|
|
1179
588
|
...options,
|
|
@@ -1183,7 +592,8 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
|
|
|
1183
592
|
banner: true,
|
|
1184
593
|
prompter,
|
|
1185
594
|
newVersion: options.newVersion,
|
|
1186
|
-
workspace
|
|
595
|
+
workspace,
|
|
596
|
+
docsHandler
|
|
1187
597
|
};
|
|
1188
598
|
await releaseFolder(fullOptions).catch(captureError);
|
|
1189
599
|
});
|
|
@@ -1239,9 +649,9 @@ yargsInstance.command("testConnection [directory]", "Tests connection to asset s
|
|
|
1239
649
|
}
|
|
1240
650
|
let authentication;
|
|
1241
651
|
if (license) {
|
|
1242
|
-
const fullLicensePath = path
|
|
652
|
+
const fullLicensePath = path.resolve(process.cwd(), license);
|
|
1243
653
|
try {
|
|
1244
|
-
const content = fs
|
|
654
|
+
const content = fs.readFileSync(fullLicensePath);
|
|
1245
655
|
authentication = {
|
|
1246
656
|
type: "license",
|
|
1247
657
|
license: content.toString("base64")
|
|
@@ -1304,7 +714,7 @@ yargsInstance.command({
|
|
|
1304
714
|
handler: async ({ directory, ignore, strictOptional })=>{
|
|
1305
715
|
const workspace = detectWorkspace(process.cwd());
|
|
1306
716
|
await preCommandCheck(workspace);
|
|
1307
|
-
const { generateIndex } = await import('./generateIndex-
|
|
717
|
+
const { generateIndex } = await import('./generateIndex-1_US73VT.mjs');
|
|
1308
718
|
const location = detectPackage(workspace, directory);
|
|
1309
719
|
generateIndex({
|
|
1310
720
|
location,
|
|
@@ -1319,7 +729,7 @@ yargsInstance.command({
|
|
|
1319
729
|
handler: async ({ directory, name })=>{
|
|
1320
730
|
const workspace = detectWorkspace(process.cwd());
|
|
1321
731
|
await preCommandCheck(workspace);
|
|
1322
|
-
const { generateParameterType } = await import('./generateParameterType-
|
|
732
|
+
const { generateParameterType } = await import('./generateParameterType-DSWCBqzV.mjs');
|
|
1323
733
|
const location = detectPackage(workspace, directory);
|
|
1324
734
|
generateParameterType({
|
|
1325
735
|
location,
|
|
@@ -1332,7 +742,7 @@ yargsInstance.command({
|
|
|
1332
742
|
command: "postinstall",
|
|
1333
743
|
builder: (argv)=>argv,
|
|
1334
744
|
handler: async ()=>{
|
|
1335
|
-
const { executePostInstall } = await import('./postinstall-
|
|
745
|
+
const { executePostInstall } = await import('./postinstall-DLxLg3tD.mjs');
|
|
1336
746
|
executePostInstall(detectWorkspace(process.cwd()));
|
|
1337
747
|
},
|
|
1338
748
|
describe: "Runs postinstall tasks"
|
|
@@ -1352,7 +762,7 @@ yargsInstance.command({
|
|
|
1352
762
|
}),
|
|
1353
763
|
handler: async ({ directory, newVersion, dryRun })=>{
|
|
1354
764
|
const workspace = detectWorkspace(process.cwd());
|
|
1355
|
-
const { publishToNpm } = await import('./publishNpm-
|
|
765
|
+
const { publishToNpm } = await import('./publishNpm-ByIPsGI3.mjs');
|
|
1356
766
|
await publishToNpm({
|
|
1357
767
|
workspace,
|
|
1358
768
|
location: detectPackage(workspace, directory),
|
|
@@ -1369,4 +779,4 @@ var cli = /*#__PURE__*/Object.freeze({
|
|
|
1369
779
|
});
|
|
1370
780
|
|
|
1371
781
|
export { INDEX_FILE as I, PACKAGE_FILE as P, readPackageCreatorIndex as a, readWorkspaceNpmManifest as b, closeSession as c, getWorkspaceOutputPath as d, readPackageAnimationList as e, isErrorEACCES as f, getExistingPackages as g, isErrorEPERM as h, isErrorENOENT as i, getPackageReleasesDirectory as j, writePackageCreatorIndex as k, getCreatorIndexParameterPrimaryJSType as l, getWorkspaceLibPath as m, readNpmManifest as n, stripUtf8Bom as o, parseCreatorPackageName as p, readPackageNpmManifest as q, readPackageCreatorManifest as r, startSession as s, writePackageNpmManifest as t, uploadPackageFromBuffer as u, iterateWorkspacePackages as v, writePackageCreatorManifest as w, cli as x };
|
|
1372
|
-
//# sourceMappingURL=cli-
|
|
782
|
+
//# sourceMappingURL=cli-CRt1pnL8.mjs.map
|