@arcgis/components-build-utils 5.0.0-next.99 → 5.0.0
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/LICENSE.md +9 -5
- package/README.md +2 -3
- package/dist/file.d.cts +3 -1
- package/dist/file.d.ts +3 -1
- package/dist/index.cjs +46 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +46 -4
- package/dist/packageJson.d.cts +15 -11
- package/dist/packageJson.d.ts +15 -11
- package/package.json +3 -16
- package/dist/commands/affected-packages.d.cts +0 -2
- package/dist/commands/affected-packages.d.ts +0 -2
- package/dist/commands/assign-zenhub-release.d.cts +0 -2
- package/dist/commands/assign-zenhub-release.d.ts +0 -2
- package/dist/commands/compare-rss.d.cts +0 -10
- package/dist/commands/compare-rss.d.ts +0 -10
- package/dist/commands/copy-folder.d.cts +0 -2
- package/dist/commands/copy-folder.d.ts +0 -2
- package/dist/commands/deprecate.d.cts +0 -2
- package/dist/commands/deprecate.d.ts +0 -2
- package/dist/commands/detect-broken-links.d.cts +0 -2
- package/dist/commands/detect-broken-links.d.ts +0 -2
- package/dist/commands/detect-large-files.d.cts +0 -3
- package/dist/commands/detect-large-files.d.ts +0 -3
- package/dist/commands/ensure-working-tree-clean.d.cts +0 -6
- package/dist/commands/ensure-working-tree-clean.d.ts +0 -6
- package/dist/commands/generate-builddate.d.cts +0 -12
- package/dist/commands/generate-builddate.d.ts +0 -12
- package/dist/commands/generate-info-html.d.cts +0 -2
- package/dist/commands/generate-info-html.d.ts +0 -2
- package/dist/commands/generate-t9n-manifest.d.cts +0 -2
- package/dist/commands/generate-t9n-manifest.d.ts +0 -2
- package/dist/commands/git-copy/dumpSizes.d.cts +0 -1
- package/dist/commands/git-copy/dumpSizes.d.ts +0 -1
- package/dist/commands/git-copy/getFileNames.d.cts +0 -4
- package/dist/commands/git-copy/getFileNames.d.ts +0 -4
- package/dist/commands/git-copy/helpers.d.cts +0 -4
- package/dist/commands/git-copy/helpers.d.ts +0 -4
- package/dist/commands/git-copy/index.d.cts +0 -16
- package/dist/commands/git-copy/index.d.ts +0 -16
- package/dist/commands/git-copy/updateReferences.d.cts +0 -4
- package/dist/commands/git-copy/updateReferences.d.ts +0 -4
- package/dist/commands/git-copy/utils.d.cts +0 -8
- package/dist/commands/git-copy/utils.d.ts +0 -8
- package/dist/commands/git-copy.d.cts +0 -2
- package/dist/commands/git-copy.d.ts +0 -2
- package/dist/commands/github-actions-utils.d.cts +0 -8
- package/dist/commands/github-actions-utils.d.ts +0 -8
- package/dist/commands/migrate-repo-issues/devtopia.d.cts +0 -44
- package/dist/commands/migrate-repo-issues/devtopia.d.ts +0 -44
- package/dist/commands/migrate-repo-issues/zentopia.d.cts +0 -102
- package/dist/commands/migrate-repo-issues/zentopia.d.ts +0 -102
- package/dist/commands/migrate-repo-issues.d.cts +0 -2
- package/dist/commands/migrate-repo-issues.d.ts +0 -2
- package/dist/commands/npm-utils.d.cts +0 -29
- package/dist/commands/npm-utils.d.ts +0 -29
- package/dist/commands/run-lint-test.d.cts +0 -2
- package/dist/commands/run-lint-test.d.ts +0 -2
- package/dist/commands/run.d.cts +0 -1
- package/dist/commands/run.d.ts +0 -1
- package/dist/commands/scan-dist.d.cts +0 -7
- package/dist/commands/scan-dist.d.ts +0 -7
- package/dist/commands/update-core-dep.d.cts +0 -2
- package/dist/commands/update-core-dep.d.ts +0 -2
- package/dist/commands/update-version.d.cts +0 -2
- package/dist/commands/update-version.d.ts +0 -2
- package/dist/commands/utils.d.cts +0 -71
- package/dist/commands/utils.d.ts +0 -71
- package/src/commands/run-wrapper.js +0 -6
package/LICENSE.md
CHANGED
|
@@ -4,10 +4,14 @@ COPYRIGHT © Esri
|
|
|
4
4
|
|
|
5
5
|
All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
|
|
6
6
|
|
|
7
|
-
This material is licensed for use under the Esri Master License Agreement (MLA), and is bound by the terms of that agreement.
|
|
7
|
+
This material is licensed for use under the [Esri Master License Agreement (MLA)](https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf), and is bound by the terms of that agreement.
|
|
8
|
+
You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
For additional information, contact:
|
|
11
|
+
Environmental Systems Research Institute, Inc.
|
|
12
|
+
Attn: Contracts and Legal Services Department
|
|
13
|
+
380 New York Street
|
|
14
|
+
Redlands, California, USA 92373
|
|
15
|
+
USA
|
|
10
16
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
email: contracts@esri.com
|
|
17
|
+
email: legal@esri.com
|
package/README.md
CHANGED
|
@@ -8,6 +8,5 @@ It is not intended to be used directly, but rather used as a dependency by other
|
|
|
8
8
|
|
|
9
9
|
## License
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package.
|
|
11
|
+
This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package, and at https://js.arcgis.com/5.0/LICENSE.txt.
|
|
12
|
+
For third party notices, see https://js.arcgis.com/5.0/third-party-notices.txt.
|
package/dist/file.d.cts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ExecSyncOptionsWithStringEncoding } from 'node:child_process';
|
|
1
2
|
export declare const existsAsync: (file: string) => Promise<boolean>;
|
|
2
3
|
/** Wrapper for execSync to execute shell commands */
|
|
3
|
-
export declare
|
|
4
|
+
export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): string;
|
|
5
|
+
export declare function asyncSh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): Promise<string>;
|
|
4
6
|
export declare function createFileIfNotExists(filePath: string, content: string): Promise<void>;
|
|
5
7
|
/**
|
|
6
8
|
* Climb the directory tree upward, until found a directory that contains the
|
package/dist/file.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { ExecSyncOptionsWithStringEncoding } from 'node:child_process';
|
|
1
2
|
export declare const existsAsync: (file: string) => Promise<boolean>;
|
|
2
3
|
/** Wrapper for execSync to execute shell commands */
|
|
3
|
-
export declare
|
|
4
|
+
export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): string;
|
|
5
|
+
export declare function asyncSh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): Promise<string>;
|
|
4
6
|
export declare function createFileIfNotExists(filePath: string, content: string): Promise<void>;
|
|
5
7
|
/**
|
|
6
8
|
* Climb the directory tree upward, until found a directory that contains the
|
package/dist/index.cjs
CHANGED
|
@@ -24,16 +24,59 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
25
25
|
const node_fs = require("node:fs");
|
|
26
26
|
const promises = require("node:fs/promises");
|
|
27
|
-
const node_child_process = require("node:child_process");
|
|
28
27
|
const path$1 = require("path");
|
|
29
28
|
const node_url = require("node:url");
|
|
29
|
+
const node_child_process = require("node:child_process");
|
|
30
|
+
const node_util = require("node:util");
|
|
30
31
|
const node_module = require("node:module");
|
|
31
32
|
const existsAsync = async (file) => (
|
|
32
33
|
// Using un-promisified version because promises version creates exceptions
|
|
33
34
|
// which interferes with debugging when "Pause on caught exceptions" is enabled
|
|
34
35
|
await new Promise((resolve2) => node_fs.access(file, promises.constants.F_OK, (error) => resolve2(!error)))
|
|
35
36
|
);
|
|
36
|
-
|
|
37
|
+
function sh(command, options = {}) {
|
|
38
|
+
try {
|
|
39
|
+
const normalizedOptions = { encoding: "utf8", ...options };
|
|
40
|
+
return node_child_process.execSync(command.trim(), normalizedOptions).trim();
|
|
41
|
+
} catch (error) {
|
|
42
|
+
makeExecErrorReadable(error);
|
|
43
|
+
throw error;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
async function asyncSh(command, options = {}) {
|
|
47
|
+
const normalizedOptions = { encoding: "utf8", ...options };
|
|
48
|
+
return await new Promise((resolve2, reject) => {
|
|
49
|
+
node_child_process.exec(command.trim(), normalizedOptions, (error, stdout, stderr) => {
|
|
50
|
+
if (error) {
|
|
51
|
+
makeExecErrorReadable(error);
|
|
52
|
+
reject(error);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
resolve2(stdout.trim() || stderr.trim());
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function makeExecErrorReadable(error) {
|
|
60
|
+
if (error instanceof Error && error.stack && "output" in error && Array.isArray(error.output) && "status" in error) {
|
|
61
|
+
const stackIndex = error.stack.indexOf("\n at ");
|
|
62
|
+
if (stackIndex !== -1) {
|
|
63
|
+
const output = error.output.filter(Boolean).join("\n").trim();
|
|
64
|
+
const newHeader = `${node_util.styleText("red", error.message)} (exit code: ${String(error.status)})
|
|
65
|
+
${output}`;
|
|
66
|
+
const oldStackFrames = error.stack.substring(stackIndex);
|
|
67
|
+
error.stack = `Error: ${newHeader}${oldStackFrames}`;
|
|
68
|
+
}
|
|
69
|
+
Object.defineProperties(error, {
|
|
70
|
+
output: { enumerable: false },
|
|
71
|
+
stdout: { enumerable: false },
|
|
72
|
+
stderr: { enumerable: false },
|
|
73
|
+
signal: { enumerable: false },
|
|
74
|
+
status: { enumerable: false },
|
|
75
|
+
pid: { enumerable: false },
|
|
76
|
+
stdio: { enumerable: false }
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
37
80
|
async function createFileIfNotExists(filePath, content) {
|
|
38
81
|
await promises.mkdir(path$1.dirname(filePath), { recursive: true });
|
|
39
82
|
if (!await existsAsync(filePath)) {
|
|
@@ -253,8 +296,6 @@ function vitePresetPlugin({
|
|
|
253
296
|
},
|
|
254
297
|
...dtsOptions,
|
|
255
298
|
compilerOptions: {
|
|
256
|
-
// For details, see comment above excludeOutsideFiles in
|
|
257
|
-
// https://devtopia.esri.com/WebGIS/arcgis-web-components/blob/main/packages/support-packages/lit-compiler/src/types/textTransformers.ts
|
|
258
299
|
rootDir: ".",
|
|
259
300
|
...dtsOptions.compilerOptions
|
|
260
301
|
},
|
|
@@ -331,6 +372,7 @@ function externalizeDependencies(options) {
|
|
|
331
372
|
const stringToStartsWithGlob = (option) => typeof option === "string" ? new RegExp(`^${option.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&")}(?:/.+)?$`, "u") : option;
|
|
332
373
|
exports.asyncFindPath = asyncFindPath;
|
|
333
374
|
exports.asyncRetrievePackageJson = asyncRetrievePackageJson;
|
|
375
|
+
exports.asyncSh = asyncSh;
|
|
334
376
|
exports.createFileIfNotExists = createFileIfNotExists;
|
|
335
377
|
exports.detectPackageManager = detectPackageManager;
|
|
336
378
|
exports.existsAsync = existsAsync;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { existsAsync, sh, createFileIfNotExists, findPath, asyncFindPath } from './file.ts';
|
|
1
|
+
export { existsAsync, sh, asyncSh, createFileIfNotExists, findPath, asyncFindPath } from './file.ts';
|
|
2
2
|
export { gitIgnoreFileToGlobs, gitIgnoreToGlob } from './glob.ts';
|
|
3
3
|
export { isPosix, toPosixPathSeparators, normalizePath, toSystemPathSeparators, getCwd, path } from './path.ts';
|
|
4
|
-
export { type
|
|
4
|
+
export { type PackageJson, retrievePackageJson, asyncRetrievePackageJson, fetchPackageLocation, detectPackageManager, } from './packageJson.ts';
|
|
5
5
|
export { vitePresetPlugin, type DependencyManagementOptions, externalizeDependencies } from './vite.ts';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { existsAsync, sh, createFileIfNotExists, findPath, asyncFindPath } from './file.ts';
|
|
1
|
+
export { existsAsync, sh, asyncSh, createFileIfNotExists, findPath, asyncFindPath } from './file.ts';
|
|
2
2
|
export { gitIgnoreFileToGlobs, gitIgnoreToGlob } from './glob.ts';
|
|
3
3
|
export { isPosix, toPosixPathSeparators, normalizePath, toSystemPathSeparators, getCwd, path } from './path.ts';
|
|
4
|
-
export { type
|
|
4
|
+
export { type PackageJson, retrievePackageJson, asyncRetrievePackageJson, fetchPackageLocation, detectPackageManager, } from './packageJson.ts';
|
|
5
5
|
export { vitePresetPlugin, type DependencyManagementOptions, externalizeDependencies } from './vite.ts';
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,58 @@
|
|
|
1
1
|
import { access, existsSync, readFileSync } from "node:fs";
|
|
2
2
|
import { constants, mkdir, writeFile, readFile } from "node:fs/promises";
|
|
3
|
-
import { execSync } from "node:child_process";
|
|
4
3
|
import { dirname, resolve, sep, join, posix, win32 } from "path";
|
|
5
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { execSync, exec } from "node:child_process";
|
|
6
|
+
import { styleText } from "node:util";
|
|
6
7
|
import { builtinModules } from "node:module";
|
|
7
8
|
const existsAsync = async (file) => (
|
|
8
9
|
// Using un-promisified version because promises version creates exceptions
|
|
9
10
|
// which interferes with debugging when "Pause on caught exceptions" is enabled
|
|
10
11
|
await new Promise((resolve2) => access(file, constants.F_OK, (error) => resolve2(!error)))
|
|
11
12
|
);
|
|
12
|
-
|
|
13
|
+
function sh(command, options = {}) {
|
|
14
|
+
try {
|
|
15
|
+
const normalizedOptions = { encoding: "utf8", ...options };
|
|
16
|
+
return execSync(command.trim(), normalizedOptions).trim();
|
|
17
|
+
} catch (error) {
|
|
18
|
+
makeExecErrorReadable(error);
|
|
19
|
+
throw error;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
async function asyncSh(command, options = {}) {
|
|
23
|
+
const normalizedOptions = { encoding: "utf8", ...options };
|
|
24
|
+
return await new Promise((resolve2, reject) => {
|
|
25
|
+
exec(command.trim(), normalizedOptions, (error, stdout, stderr) => {
|
|
26
|
+
if (error) {
|
|
27
|
+
makeExecErrorReadable(error);
|
|
28
|
+
reject(error);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
resolve2(stdout.trim() || stderr.trim());
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function makeExecErrorReadable(error) {
|
|
36
|
+
if (error instanceof Error && error.stack && "output" in error && Array.isArray(error.output) && "status" in error) {
|
|
37
|
+
const stackIndex = error.stack.indexOf("\n at ");
|
|
38
|
+
if (stackIndex !== -1) {
|
|
39
|
+
const output = error.output.filter(Boolean).join("\n").trim();
|
|
40
|
+
const newHeader = `${styleText("red", error.message)} (exit code: ${String(error.status)})
|
|
41
|
+
${output}`;
|
|
42
|
+
const oldStackFrames = error.stack.substring(stackIndex);
|
|
43
|
+
error.stack = `Error: ${newHeader}${oldStackFrames}`;
|
|
44
|
+
}
|
|
45
|
+
Object.defineProperties(error, {
|
|
46
|
+
output: { enumerable: false },
|
|
47
|
+
stdout: { enumerable: false },
|
|
48
|
+
stderr: { enumerable: false },
|
|
49
|
+
signal: { enumerable: false },
|
|
50
|
+
status: { enumerable: false },
|
|
51
|
+
pid: { enumerable: false },
|
|
52
|
+
stdio: { enumerable: false }
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
13
56
|
async function createFileIfNotExists(filePath, content) {
|
|
14
57
|
await mkdir(dirname(filePath), { recursive: true });
|
|
15
58
|
if (!await existsAsync(filePath)) {
|
|
@@ -229,8 +272,6 @@ function vitePresetPlugin({
|
|
|
229
272
|
},
|
|
230
273
|
...dtsOptions,
|
|
231
274
|
compilerOptions: {
|
|
232
|
-
// For details, see comment above excludeOutsideFiles in
|
|
233
|
-
// https://devtopia.esri.com/WebGIS/arcgis-web-components/blob/main/packages/support-packages/lit-compiler/src/types/textTransformers.ts
|
|
234
275
|
rootDir: ".",
|
|
235
276
|
...dtsOptions.compilerOptions
|
|
236
277
|
},
|
|
@@ -308,6 +349,7 @@ const stringToStartsWithGlob = (option) => typeof option === "string" ? new RegE
|
|
|
308
349
|
export {
|
|
309
350
|
asyncFindPath,
|
|
310
351
|
asyncRetrievePackageJson,
|
|
352
|
+
asyncSh,
|
|
311
353
|
createFileIfNotExists,
|
|
312
354
|
detectPackageManager,
|
|
313
355
|
existsAsync,
|
package/dist/packageJson.d.cts
CHANGED
|
@@ -4,43 +4,47 @@
|
|
|
4
4
|
* The full package.json type is insanely large (20k lines):
|
|
5
5
|
* https://github.com/ffflorian/schemastore-updater/blob/main/schemas/package/index.d.ts#L20067
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type PackageJson = {
|
|
8
8
|
"name": string;
|
|
9
9
|
"version": string;
|
|
10
10
|
"private"?: boolean;
|
|
11
11
|
"type"?: "commonjs" | "module";
|
|
12
|
-
"
|
|
12
|
+
"main"?: string;
|
|
13
|
+
"module"?: string;
|
|
14
|
+
"types"?: string;
|
|
13
15
|
"publishConfig"?: {
|
|
14
16
|
access?: string;
|
|
15
17
|
registry?: string;
|
|
18
|
+
provenance?: boolean;
|
|
16
19
|
};
|
|
17
20
|
"files"?: string[];
|
|
18
|
-
"dependencies"?: Record<string, string
|
|
19
|
-
"devDependencies"?: Record<string, string
|
|
20
|
-
"peerDependencies"?: Record<string, string
|
|
21
|
+
"dependencies"?: Record<string, string>;
|
|
22
|
+
"devDependencies"?: Record<string, string>;
|
|
23
|
+
"peerDependencies"?: Record<string, string>;
|
|
21
24
|
"peerDependenciesMeta"?: Record<string, {
|
|
22
25
|
optional?: boolean;
|
|
23
26
|
}>;
|
|
24
|
-
"optionalDependencies"?: Record<string, string
|
|
27
|
+
"optionalDependencies"?: Record<string, string>;
|
|
25
28
|
"css.customData"?: string[];
|
|
26
29
|
"customElements"?: string;
|
|
27
30
|
"html.customData"?: string[];
|
|
28
31
|
"web-types"?: string;
|
|
29
32
|
"exports"?: Record<string, Record<string, string> | string>;
|
|
30
33
|
"scripts"?: Record<string, string>;
|
|
34
|
+
"packageManager"?: string;
|
|
31
35
|
"webGISComponents"?: {
|
|
32
|
-
deployBuilds?: Record<string,
|
|
36
|
+
deployBuilds?: Record<string, string>;
|
|
37
|
+
artifactsDeployPath?: string;
|
|
33
38
|
};
|
|
34
39
|
};
|
|
35
|
-
export declare function retrievePackageJson(location?: string, cache?: boolean):
|
|
36
|
-
export declare function asyncRetrievePackageJson(location?: string): Promise<
|
|
37
|
-
export declare function asyncWritePackageJson(location: string, content: MiniPackageJson): Promise<string>;
|
|
40
|
+
export declare function retrievePackageJson(location?: string, cache?: boolean): PackageJson;
|
|
41
|
+
export declare function asyncRetrievePackageJson(location?: string): Promise<PackageJson>;
|
|
38
42
|
/**
|
|
39
43
|
* Returns an absolute path to the root of a package in node_modules, without
|
|
40
44
|
* trailing slash.
|
|
41
45
|
*/
|
|
42
46
|
export declare function fetchPackageLocation(packageName: string, cwd?: string): Promise<string>;
|
|
43
47
|
/**
|
|
44
|
-
* Detect if current repository/monorepo uses npm,
|
|
48
|
+
* Detect if current repository/monorepo uses npm, pnpm, or yarn
|
|
45
49
|
*/
|
|
46
50
|
export declare function detectPackageManager(cwd?: string): string;
|
package/dist/packageJson.d.ts
CHANGED
|
@@ -4,43 +4,47 @@
|
|
|
4
4
|
* The full package.json type is insanely large (20k lines):
|
|
5
5
|
* https://github.com/ffflorian/schemastore-updater/blob/main/schemas/package/index.d.ts#L20067
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type PackageJson = {
|
|
8
8
|
"name": string;
|
|
9
9
|
"version": string;
|
|
10
10
|
"private"?: boolean;
|
|
11
11
|
"type"?: "commonjs" | "module";
|
|
12
|
-
"
|
|
12
|
+
"main"?: string;
|
|
13
|
+
"module"?: string;
|
|
14
|
+
"types"?: string;
|
|
13
15
|
"publishConfig"?: {
|
|
14
16
|
access?: string;
|
|
15
17
|
registry?: string;
|
|
18
|
+
provenance?: boolean;
|
|
16
19
|
};
|
|
17
20
|
"files"?: string[];
|
|
18
|
-
"dependencies"?: Record<string, string
|
|
19
|
-
"devDependencies"?: Record<string, string
|
|
20
|
-
"peerDependencies"?: Record<string, string
|
|
21
|
+
"dependencies"?: Record<string, string>;
|
|
22
|
+
"devDependencies"?: Record<string, string>;
|
|
23
|
+
"peerDependencies"?: Record<string, string>;
|
|
21
24
|
"peerDependenciesMeta"?: Record<string, {
|
|
22
25
|
optional?: boolean;
|
|
23
26
|
}>;
|
|
24
|
-
"optionalDependencies"?: Record<string, string
|
|
27
|
+
"optionalDependencies"?: Record<string, string>;
|
|
25
28
|
"css.customData"?: string[];
|
|
26
29
|
"customElements"?: string;
|
|
27
30
|
"html.customData"?: string[];
|
|
28
31
|
"web-types"?: string;
|
|
29
32
|
"exports"?: Record<string, Record<string, string> | string>;
|
|
30
33
|
"scripts"?: Record<string, string>;
|
|
34
|
+
"packageManager"?: string;
|
|
31
35
|
"webGISComponents"?: {
|
|
32
|
-
deployBuilds?: Record<string,
|
|
36
|
+
deployBuilds?: Record<string, string>;
|
|
37
|
+
artifactsDeployPath?: string;
|
|
33
38
|
};
|
|
34
39
|
};
|
|
35
|
-
export declare function retrievePackageJson(location?: string, cache?: boolean):
|
|
36
|
-
export declare function asyncRetrievePackageJson(location?: string): Promise<
|
|
37
|
-
export declare function asyncWritePackageJson(location: string, content: MiniPackageJson): Promise<string>;
|
|
40
|
+
export declare function retrievePackageJson(location?: string, cache?: boolean): PackageJson;
|
|
41
|
+
export declare function asyncRetrievePackageJson(location?: string): Promise<PackageJson>;
|
|
38
42
|
/**
|
|
39
43
|
* Returns an absolute path to the root of a package in node_modules, without
|
|
40
44
|
* trailing slash.
|
|
41
45
|
*/
|
|
42
46
|
export declare function fetchPackageLocation(packageName: string, cwd?: string): Promise<string>;
|
|
43
47
|
/**
|
|
44
|
-
* Detect if current repository/monorepo uses npm,
|
|
48
|
+
* Detect if current repository/monorepo uses npm, pnpm, or yarn
|
|
45
49
|
*/
|
|
46
50
|
export declare function detectPackageManager(cwd?: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/components-build-utils",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Collection of common internal build-time patterns and utilities for ArcGIS Maps SDK for JavaScript components.",
|
|
5
5
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
6
6
|
"type": "module",
|
|
@@ -12,27 +12,14 @@
|
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"import": "./dist/index.js",
|
|
14
14
|
"require": "./dist/index.cjs"
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"./ts": "./src/index.ts"
|
|
16
17
|
},
|
|
17
18
|
"files": [
|
|
18
19
|
"dist/"
|
|
19
20
|
],
|
|
20
|
-
"bin": {
|
|
21
|
-
"awc": "src/commands/run-wrapper.js"
|
|
22
|
-
},
|
|
23
21
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
22
|
"dependencies": {
|
|
25
|
-
"@actions/core": "^1.11.0",
|
|
26
|
-
"@commander-js/extra-typings": "^14.0.0",
|
|
27
|
-
"chalk": "^5.4.1",
|
|
28
|
-
"commander": "^14.0.0",
|
|
29
|
-
"fast-glob": "^3.3.3",
|
|
30
|
-
"fast-xml-parser": "^5.2.5",
|
|
31
|
-
"glob": "^11.0.3",
|
|
32
|
-
"ora": "^8.2.0",
|
|
33
|
-
"p-limit": "^7.1.1",
|
|
34
|
-
"semver": "^7.7.2",
|
|
35
|
-
"split2": "^4.2.0",
|
|
36
23
|
"tslib": "^2.8.1",
|
|
37
24
|
"vite": "^7.2.2",
|
|
38
25
|
"vite-plugin-dts": "^4.5.4"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
/**
|
|
3
|
-
* !important
|
|
4
|
-
* The class makes a TLS request to webgis
|
|
5
|
-
* You need to make sure node trusts the certificate authority that signed the certificate used by webgis.esri.com
|
|
6
|
-
*
|
|
7
|
-
* Include your certificate authority in the NODE_EXTRA_CA_CERTS environment variable
|
|
8
|
-
* Reference: https://webgis.esri.com/webgis/components/devops/troubleshoot/troubleshoot#certificate-verification-failure
|
|
9
|
-
*/
|
|
10
|
-
export declare const registerCommand: (command: Command) => undefined;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Command } from 'commander';
|
|
2
|
-
/**
|
|
3
|
-
* !important
|
|
4
|
-
* The class makes a TLS request to webgis
|
|
5
|
-
* You need to make sure node trusts the certificate authority that signed the certificate used by webgis.esri.com
|
|
6
|
-
*
|
|
7
|
-
* Include your certificate authority in the NODE_EXTRA_CA_CERTS environment variable
|
|
8
|
-
* Reference: https://webgis.esri.com/webgis/components/devops/troubleshoot/troubleshoot#certificate-verification-failure
|
|
9
|
-
*/
|
|
10
|
-
export declare const registerCommand: (command: Command) => undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Command } from '@commander-js/extra-typings';
|
|
2
|
-
export declare const registerCommand: (command: Command) => undefined;
|
|
3
|
-
export declare function ensureWorkingTreeClean({ cwd }?: {
|
|
4
|
-
cwd?: string;
|
|
5
|
-
}): void;
|
|
6
|
-
export declare const readWorkingTree: (cwd?: string) => string | undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Command } from '@commander-js/extra-typings';
|
|
2
|
-
export declare const registerCommand: (command: Command) => undefined;
|
|
3
|
-
export declare function ensureWorkingTreeClean({ cwd }?: {
|
|
4
|
-
cwd?: string;
|
|
5
|
-
}): void;
|
|
6
|
-
export declare const readWorkingTree: (cwd?: string) => string | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Command } from '@commander-js/extra-typings';
|
|
2
|
-
export declare const registerCommand: (command: Command) => undefined;
|
|
3
|
-
export type Builddate = {
|
|
4
|
-
"builddate": string;
|
|
5
|
-
"commit": string;
|
|
6
|
-
"branch": string;
|
|
7
|
-
"version": string;
|
|
8
|
-
"@arcgis/core": string;
|
|
9
|
-
"@esri/calcite-components": string;
|
|
10
|
-
"@esri/arcgis-html-sanitizer": string;
|
|
11
|
-
};
|
|
12
|
-
export declare function generateBuilddate(): Promise<Builddate>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Command } from '@commander-js/extra-typings';
|
|
2
|
-
export declare const registerCommand: (command: Command) => undefined;
|
|
3
|
-
export type Builddate = {
|
|
4
|
-
"builddate": string;
|
|
5
|
-
"commit": string;
|
|
6
|
-
"branch": string;
|
|
7
|
-
"version": string;
|
|
8
|
-
"@arcgis/core": string;
|
|
9
|
-
"@esri/calcite-components": string;
|
|
10
|
-
"@esri/arcgis-html-sanitizer": string;
|
|
11
|
-
};
|
|
12
|
-
export declare function generateBuilddate(): Promise<Builddate>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function dumpHistorySizes(filteredFiles: string[] | undefined, sourceRoot: string, destinationRoot: string, dumpSizes: boolean, dumpFileSizes: boolean): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function dumpHistorySizes(filteredFiles: string[] | undefined, sourceRoot: string, destinationRoot: string, dumpSizes: boolean, dumpFileSizes: boolean): void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function validateGitCopyEnvironment(destinationRoot: string): void;
|
|
2
|
-
export declare function getFilePathUpdater(rawRenames: string[] | undefined, normalizedSourceRelative: string, normalizedDestinationRelative: string, rootFiles: Set<string>): (filePath: string) => string;
|
|
3
|
-
export declare function checkFileCollisions(filteredFiles: string[], destinationRoot: string, updatePath: (filePath: string) => string): void;
|
|
4
|
-
export declare function checkSupportsDefaultPrefix(): boolean;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function validateGitCopyEnvironment(destinationRoot: string): void;
|
|
2
|
-
export declare function getFilePathUpdater(rawRenames: string[] | undefined, normalizedSourceRelative: string, normalizedDestinationRelative: string, rootFiles: Set<string>): (filePath: string) => string;
|
|
3
|
-
export declare function checkFileCollisions(filteredFiles: string[], destinationRoot: string, updatePath: (filePath: string) => string): void;
|
|
4
|
-
export declare function checkSupportsDefaultPrefix(): boolean;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare function copyFolderWithHistory(rawSource: string, rawDestination: string, { yes, emitPatchFiles, dryRun, dirtyCheck, addBackLinks, ignoreAlreadyExists, remote, ignore, endsWithIgnore, containsIgnore, rename: rawRenames, dumpSizes, dumpFileSizes, updateMergeCommitTitlesFrom, }: {
|
|
2
|
-
readonly yes: boolean;
|
|
3
|
-
readonly emitPatchFiles: boolean;
|
|
4
|
-
readonly dryRun: boolean;
|
|
5
|
-
readonly dirtyCheck: boolean;
|
|
6
|
-
readonly ignoreAlreadyExists: boolean;
|
|
7
|
-
readonly addBackLinks: boolean;
|
|
8
|
-
readonly remote: string;
|
|
9
|
-
readonly ignore?: string[];
|
|
10
|
-
readonly endsWithIgnore?: string[];
|
|
11
|
-
readonly containsIgnore?: string[];
|
|
12
|
-
readonly rename?: string[];
|
|
13
|
-
readonly dumpSizes: boolean;
|
|
14
|
-
readonly dumpFileSizes: boolean;
|
|
15
|
-
readonly updateMergeCommitTitlesFrom?: string;
|
|
16
|
-
}): Promise<void>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare function copyFolderWithHistory(rawSource: string, rawDestination: string, { yes, emitPatchFiles, dryRun, dirtyCheck, addBackLinks, ignoreAlreadyExists, remote, ignore, endsWithIgnore, containsIgnore, rename: rawRenames, dumpSizes, dumpFileSizes, updateMergeCommitTitlesFrom, }: {
|
|
2
|
-
readonly yes: boolean;
|
|
3
|
-
readonly emitPatchFiles: boolean;
|
|
4
|
-
readonly dryRun: boolean;
|
|
5
|
-
readonly dirtyCheck: boolean;
|
|
6
|
-
readonly ignoreAlreadyExists: boolean;
|
|
7
|
-
readonly addBackLinks: boolean;
|
|
8
|
-
readonly remote: string;
|
|
9
|
-
readonly ignore?: string[];
|
|
10
|
-
readonly endsWithIgnore?: string[];
|
|
11
|
-
readonly containsIgnore?: string[];
|
|
12
|
-
readonly rename?: string[];
|
|
13
|
-
readonly dumpSizes: boolean;
|
|
14
|
-
readonly dumpFileSizes: boolean;
|
|
15
|
-
readonly updateMergeCommitTitlesFrom?: string;
|
|
16
|
-
}): Promise<void>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const commitMessagePrefix = "Subject: [PATCH] ";
|
|
2
|
-
export declare function updateIssueReferences(baseUrl: string, mergeCommitMappings: Record<string, string>, line: string): string;
|
|
3
|
-
/** Resolve a base URL for viewing the commit in the browser */
|
|
4
|
-
export declare function resolveBaseUrl(sourceRoot: string, remote: string): string;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const commitMessagePrefix = "Subject: [PATCH] ";
|
|
2
|
-
export declare function updateIssueReferences(baseUrl: string, mergeCommitMappings: Record<string, string>, line: string): string;
|
|
3
|
-
/** Resolve a base URL for viewing the commit in the browser */
|
|
4
|
-
export declare function resolveBaseUrl(sourceRoot: string, remote: string): string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const kb = 1024;
|
|
2
|
-
export declare const mb: number;
|
|
3
|
-
export declare const gb: number;
|
|
4
|
-
/**
|
|
5
|
-
* Setting this decreased total run time from 1m40s to 1m05s
|
|
6
|
-
*/
|
|
7
|
-
export declare const highWaterMark: number;
|
|
8
|
-
export declare const reOriginalSha: RegExp;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const kb = 1024;
|
|
2
|
-
export declare const mb: number;
|
|
3
|
-
export declare const gb: number;
|
|
4
|
-
/**
|
|
5
|
-
* Setting this decreased total run time from 1m40s to 1m05s
|
|
6
|
-
*/
|
|
7
|
-
export declare const highWaterMark: number;
|
|
8
|
-
export declare const reOriginalSha: RegExp;
|