@powerlines/nx 0.11.90 → 0.11.92
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/CHANGELOG.md +17 -0
- package/dist/{chunk-D6KBHWGQ.mjs → chunk-2YJP4HRC.mjs} +4 -4
- package/dist/{chunk-ZLZUTWWG.js → chunk-3V5FCQ7R.js} +2 -2
- package/dist/{chunk-ATRCA5ZE.js → chunk-4G4MTA5T.js} +3 -3
- package/dist/{chunk-PM5REOZ2.mjs → chunk-6AZIZX5R.mjs} +40 -39
- package/dist/{chunk-Z7MQED3F.mjs → chunk-7WL2ECF7.mjs} +2 -2
- package/dist/{chunk-N3RVDZLI.mjs → chunk-AU44EO33.mjs} +1 -1
- package/dist/{chunk-LVEW4A44.js → chunk-BSS54RV4.js} +2 -2
- package/dist/{chunk-WSNBDDTY.js → chunk-CEQF7LCT.js} +2 -2
- package/dist/{chunk-HG5GBG4Q.js → chunk-HTNRV62F.js} +2 -2
- package/dist/{chunk-AL6L2GI6.js → chunk-IR6TAW72.js} +3 -3
- package/dist/{chunk-KPZS6OF5.mjs → chunk-IWSYHFCU.mjs} +1 -1
- package/dist/{chunk-AQA4P2MP.mjs → chunk-KDZ2DDYW.mjs} +1 -1
- package/dist/{chunk-LK4PXBKI.mjs → chunk-KXFIN2NL.mjs} +6 -6
- package/dist/{chunk-JMJ3MA4W.mjs → chunk-LYVHHV24.mjs} +1 -1
- package/dist/{chunk-5EKDYWMD.mjs → chunk-NKI5EXOI.mjs} +1 -1
- package/dist/{chunk-QSMJD4CD.js → chunk-NOSBV75N.js} +6 -6
- package/dist/{chunk-QSIJ72UX.js → chunk-VQHOU57U.js} +36 -35
- package/dist/{chunk-BWVCZGFR.js → chunk-VSMLSWBT.js} +5 -5
- package/dist/{chunk-TNFRQNSW.js → chunk-WA6S6OWI.js} +2 -2
- package/dist/{chunk-APCOW5YO.mjs → chunk-XXWF7X5C.mjs} +3 -3
- package/dist/{executor-CvXGN437.d.ts → executor-Bb8vGV8C.d.ts} +3 -3
- package/dist/{executor-DKXf5LeR.d.ts → executor-C2WSCUOW.d.ts} +3 -3
- package/dist/{executor-Zks_mL9A.d.ts → executor-C5rCem7d.d.ts} +3 -3
- package/dist/{executor-Cq17c8hB.d.ts → executor-C9MI57kJ.d.ts} +3 -3
- package/dist/{executor-CBfO0S0X.d.mts → executor-CQzw0-So.d.mts} +3 -3
- package/dist/{executor-BwoBnP5U.d.mts → executor-DXaEo8YG.d.mts} +3 -3
- package/dist/{executor-CYRhjgX1.d.ts → executor-DY7vA66P.d.ts} +3 -3
- package/dist/{executor-BeiE4hj2.d.mts → executor-DwTFXSVb.d.mts} +3 -3
- package/dist/{executor-CKKx8c3Y.d.mts → executor-fccJAIjg.d.mts} +3 -3
- package/dist/{executor-BR_IsTyX.d.mts → executor-u-vw0Uzf.d.mts} +3 -3
- package/dist/executors.d.mts +5 -5
- package/dist/executors.d.ts +5 -5
- package/dist/executors.js +11 -11
- package/dist/executors.mjs +6 -6
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +14 -14
- package/dist/index.mjs +8 -8
- package/dist/src/base/base-executor.js +2 -2
- package/dist/src/base/base-executor.mjs +1 -1
- package/dist/src/base/base-executor.schema.d.d.mts +3 -3
- package/dist/src/base/base-executor.schema.d.d.ts +3 -3
- package/dist/src/base/base-executor.schema.d.ts +3 -3
- package/dist/src/base/base-executor.schema.json +4 -4
- package/dist/src/base/base-executor.untyped.js +2 -2
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/executors/build/executor.d.mts +1 -1
- package/dist/src/executors/build/executor.d.ts +1 -1
- package/dist/src/executors/build/executor.js +4 -4
- package/dist/src/executors/build/executor.mjs +2 -2
- package/dist/src/executors/build/schema.d.ts +3 -3
- package/dist/src/executors/build/schema.json +4 -4
- package/dist/src/executors/build/untyped.js +3 -3
- package/dist/src/executors/build/untyped.mjs +2 -2
- package/dist/src/executors/clean/executor.d.mts +1 -1
- package/dist/src/executors/clean/executor.d.ts +1 -1
- package/dist/src/executors/clean/executor.js +4 -4
- package/dist/src/executors/clean/executor.mjs +2 -2
- package/dist/src/executors/clean/schema.d.ts +3 -3
- package/dist/src/executors/clean/schema.json +4 -4
- package/dist/src/executors/clean/untyped.js +2 -2
- package/dist/src/executors/clean/untyped.mjs +1 -1
- package/dist/src/executors/docs/executor.d.mts +1 -1
- package/dist/src/executors/docs/executor.d.ts +1 -1
- package/dist/src/executors/docs/executor.js +4 -4
- package/dist/src/executors/docs/executor.mjs +2 -2
- package/dist/src/executors/docs/schema.d.ts +3 -3
- package/dist/src/executors/docs/schema.json +4 -4
- package/dist/src/executors/docs/untyped.js +3 -3
- package/dist/src/executors/docs/untyped.mjs +2 -2
- package/dist/src/executors/lint/executor.d.mts +1 -1
- package/dist/src/executors/lint/executor.d.ts +1 -1
- package/dist/src/executors/lint/executor.js +4 -4
- package/dist/src/executors/lint/executor.mjs +2 -2
- package/dist/src/executors/lint/schema.d.ts +3 -3
- package/dist/src/executors/lint/schema.json +4 -4
- package/dist/src/executors/lint/untyped.js +3 -3
- package/dist/src/executors/lint/untyped.mjs +2 -2
- package/dist/src/executors/prepare/executor.d.mts +1 -1
- package/dist/src/executors/prepare/executor.d.ts +1 -1
- package/dist/src/executors/prepare/executor.js +4 -4
- package/dist/src/executors/prepare/executor.mjs +2 -2
- package/dist/src/executors/prepare/schema.d.ts +3 -3
- package/dist/src/executors/prepare/schema.json +4 -4
- package/dist/src/executors/prepare/untyped.js +3 -3
- package/dist/src/executors/prepare/untyped.mjs +2 -2
- package/dist/src/helpers/plugin-utilities.js +4 -4
- package/dist/src/helpers/plugin-utilities.mjs +1 -1
- package/dist/src/plugin/index.js +3 -3
- package/dist/src/plugin/index.mjs +2 -2
- package/docs/api/base-executor.schema.md +3 -3
- package/docs/api/build/schema.md +3 -3
- package/docs/api/clean/schema.md +3 -3
- package/docs/api/docs/schema.md +3 -3
- package/docs/api/lint/schema.md +3 -3
- package/docs/api/prepare/schema.md +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Powerlines - Nx
|
|
4
4
|
|
|
5
|
+
## [0.11.91](https://github.com/storm-software/powerlines/releases/tag/nx%400.11.91) (01/15/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **powerlines:** Renamed `skipInstalls` configuration to `autoInstall`
|
|
10
|
+
([c8e34b03](https://github.com/storm-software/powerlines/commit/c8e34b03))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated **powerlines** to **v0.37.35**
|
|
15
|
+
|
|
16
|
+
## [0.11.90](https://github.com/storm-software/powerlines/releases/tag/nx%400.11.90) (01/15/2026)
|
|
17
|
+
|
|
18
|
+
### Updated Dependencies
|
|
19
|
+
|
|
20
|
+
- Updated **powerlines** to **v0.37.34**
|
|
21
|
+
|
|
5
22
|
## [0.11.89](https://github.com/storm-software/powerlines/releases/tag/nx%400.11.89) (01/15/2026)
|
|
6
23
|
|
|
7
24
|
### Updated Dependencies
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { base_executor_untyped_default } from './chunk-
|
|
1
|
+
import { base_executor_untyped_default } from './chunk-XXWF7X5C.mjs';
|
|
2
2
|
import { defineUntypedSchema } from 'untyped';
|
|
3
3
|
|
|
4
4
|
var untyped_default = defineUntypedSchema({
|
|
@@ -16,11 +16,11 @@ var untyped_default = defineUntypedSchema({
|
|
|
16
16
|
description: "Skip the cache when building"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
autoInstall: {
|
|
20
20
|
$schema: {
|
|
21
|
-
title: "
|
|
21
|
+
title: "Auto Install",
|
|
22
22
|
type: "boolean",
|
|
23
|
-
description: "
|
|
23
|
+
description: "Automatically install dependencies before building"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVQHOU57U_js = require('./chunk-VQHOU57U.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
|
|
6
6
|
// src/executors/clean/executor.ts
|
|
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
14
|
-
var executor =
|
|
14
|
+
var executor = chunkVQHOU57U_js.withExecutor("clean", executorFn);
|
|
15
15
|
var executor_default = executor;
|
|
16
16
|
|
|
17
17
|
exports.executorFn = executorFn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVQHOU57U_js = require('./chunk-VQHOU57U.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
var defu = require('defu');
|
|
6
6
|
|
|
@@ -12,14 +12,14 @@ async function executorFn(context, api) {
|
|
|
12
12
|
await api.prepare(defu__default.default({
|
|
13
13
|
command: "prepare",
|
|
14
14
|
skipCache: context.options.skipCache,
|
|
15
|
-
|
|
15
|
+
autoInstall: context.options.autoInstall
|
|
16
16
|
}, context.inlineConfig));
|
|
17
17
|
return {
|
|
18
18
|
success: true
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
22
|
-
var executor =
|
|
22
|
+
var executor = chunkVQHOU57U_js.withExecutor("prepare", executorFn);
|
|
23
23
|
var executor_default = executor;
|
|
24
24
|
|
|
25
25
|
exports.executorFn = executorFn;
|
|
@@ -28,9 +28,9 @@ import chalk5 from 'chalk';
|
|
|
28
28
|
import Handlebars from 'handlebars';
|
|
29
29
|
import { declare } from '@babel/helper-plugin-utils';
|
|
30
30
|
import * as t from '@babel/types';
|
|
31
|
+
import { prettyBytes } from '@stryke/string-format/pretty-bytes';
|
|
32
|
+
import { InMemoryFileSystemHost, Project, DiagnosticCategory } from 'ts-morph';
|
|
31
33
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
32
|
-
import ts, { flattenDiagnosticMessageText } from 'typescript';
|
|
33
|
-
import { InMemoryFileSystemHost, Project } from 'ts-morph';
|
|
34
34
|
import { getPackageName, hasPackageVersion, getPackageVersion } from '@stryke/string-format/package';
|
|
35
35
|
import { getObjectDiff } from '@donedeal0/superdiff';
|
|
36
36
|
import { readJsonFile, readJsonFileSync } from '@stryke/fs/json';
|
|
@@ -38,6 +38,7 @@ import { StormJSON } from '@stryke/json/storm-json';
|
|
|
38
38
|
import { hasFileExtension, findFilePath, findFileName, findFileExtensionSafe, findFileDotExtensionSafe, relativePath } from '@stryke/path/file-path-fns';
|
|
39
39
|
import { titleCase } from '@stryke/string-format/title-case';
|
|
40
40
|
import { existsSync, exists } from '@stryke/fs/exists';
|
|
41
|
+
import ts from 'typescript';
|
|
41
42
|
import { getEnvPaths } from '@stryke/env/get-env-paths';
|
|
42
43
|
import { hashDirectory } from '@stryke/hash/hash-files';
|
|
43
44
|
import { murmurhash } from '@stryke/hash/murmurhash';
|
|
@@ -59,9 +60,8 @@ import { isDirectory, isFile } from '@stryke/fs/is-file';
|
|
|
59
60
|
import * as $ from '@stryke/capnp';
|
|
60
61
|
import { readFileBuffer, readFileBufferSync, writeFileBuffer } from '@stryke/fs/buffer';
|
|
61
62
|
import { isAbsolutePath } from '@stryke/path/is-type';
|
|
62
|
-
import { prettyBytes } from '@stryke/string-format/pretty-bytes';
|
|
63
63
|
import { isRegExp } from '@stryke/type-checks/is-regexp';
|
|
64
|
-
import { Blob } from 'node:buffer';
|
|
64
|
+
import { Blob as Blob$1 } from 'node:buffer';
|
|
65
65
|
import { fileURLToPath } from 'node:url';
|
|
66
66
|
import { getColor } from '@storm-software/config-tools/utilities/colors';
|
|
67
67
|
import { noop } from '@stryke/helpers/noop';
|
|
@@ -77,7 +77,7 @@ import { resolve } from 'node:path';
|
|
|
77
77
|
|
|
78
78
|
// ../powerlines/package.json
|
|
79
79
|
var package_default = {
|
|
80
|
-
version: "0.37.
|
|
80
|
+
version: "0.37.35"};
|
|
81
81
|
function resolveModulePath(nodePath, state) {
|
|
82
82
|
if (!t.isStringLiteral(nodePath.node)) {
|
|
83
83
|
return;
|
|
@@ -294,7 +294,7 @@ function formatTypes(code) {
|
|
|
294
294
|
}
|
|
295
295
|
__name(formatTypes, "formatTypes");
|
|
296
296
|
async function emitTypes(context, files) {
|
|
297
|
-
context.
|
|
297
|
+
context.debug(`Running the TypeScript compiler for ${files.length} generated runtime files.`);
|
|
298
298
|
const program = createProgram(context, {
|
|
299
299
|
skipAddingFilesFromTsConfig: true
|
|
300
300
|
});
|
|
@@ -302,34 +302,35 @@ async function emitTypes(context, files) {
|
|
|
302
302
|
const result = program.emitToMemory({
|
|
303
303
|
emitOnlyDtsFiles: true
|
|
304
304
|
});
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
if (
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
305
|
+
const diagnostics = result.getDiagnostics();
|
|
306
|
+
if (diagnostics && diagnostics.length > 0) {
|
|
307
|
+
if (diagnostics.some((d) => d.getCategory() === DiagnosticCategory.Error)) {
|
|
308
|
+
throw new Error(`The Typescript emit process failed while generating built-in types:
|
|
309
|
+
${diagnostics.filter((d) => d.getCategory() === DiagnosticCategory.Error).map((d) => `-${d.getSourceFile() ? `${d.getSourceFile()?.getFilePath()}:` : ""} ${String(d.getMessageText())} (at ${d.getStart()}:${d.getLength()})`).join("\n")}`);
|
|
310
|
+
} else if (diagnostics.some((d) => d.getCategory() === DiagnosticCategory.Warning)) {
|
|
311
|
+
context.warn(`The Typescript emit process completed with warnings while generating built-in types:
|
|
312
|
+
${diagnostics.filter((d) => d.getCategory() === DiagnosticCategory.Warning).map((d) => `-${d.getSourceFile() ? `${d.getSourceFile()?.getFilePath()}:` : ""} ${String(d.getMessageText())} (at ${d.getStart()}:${d.getLength()})`).join("\n")}`);
|
|
313
|
+
} else {
|
|
314
|
+
context.debug(`The Typescript emit process completed with diagnostic messages while generating built-in types:
|
|
315
|
+
${diagnostics.map((d) => `-${d.getSourceFile() ? `${d.getSourceFile()?.getFilePath()}:` : ""} ${String(d.getMessageText())} (at ${d.getStart()}:${d.getLength()})`).join("\n")}`);
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
const
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
318
|
+
const emittedFiles = result.getFiles();
|
|
319
|
+
context.debug(`The TypeScript compiler emitted ${emittedFiles.length} files for built-in types.`);
|
|
320
|
+
let builtinModules = "";
|
|
321
|
+
for (const emittedFile of emittedFiles) {
|
|
322
|
+
if (!emittedFile.filePath.endsWith(".map")) {
|
|
323
|
+
context.trace(`Processing emitted built-in types file: ${emittedFile.filePath}`);
|
|
324
|
+
builtinModules += `
|
|
325
|
+
declare module "${replaceExtension(replacePath(emittedFile.filePath, context.builtinsPath))}" {
|
|
326
|
+
${emittedFile.text.trim().replace(/^\s*export\s*declare\s*/gm, "export ").replace(/^\s*declare\s*/gm, "")}
|
|
327
|
+
}
|
|
328
|
+
`;
|
|
324
329
|
}
|
|
325
|
-
});
|
|
326
|
-
const diagnosticMessage = diagnosticMessages.join("\n");
|
|
327
|
-
if (diagnosticMessage) {
|
|
328
|
-
throw new Error(`TypeScript compilation failed:
|
|
329
|
-
|
|
330
|
-
${diagnosticMessage.length > 5e3 ? `${diagnosticMessage.slice(0, 5e3)}...` : diagnosticMessage}`);
|
|
331
330
|
}
|
|
332
|
-
|
|
331
|
+
builtinModules = formatTypes(builtinModules);
|
|
332
|
+
context.debug(`A TypeScript declaration file (size: ${prettyBytes(new Blob(toArray(builtinModules)).size)}) emitted for the built-in modules types.`);
|
|
333
|
+
return builtinModules;
|
|
333
334
|
}
|
|
334
335
|
__name(emitTypes, "emitTypes");
|
|
335
336
|
var mergeResults = createDefu((obj, key, value) => {
|
|
@@ -414,7 +415,7 @@ async function installPackage(context, packageName, dev = false) {
|
|
|
414
415
|
if (!await isPackageListed(getPackageName(packageName), {
|
|
415
416
|
cwd: context.config.projectRoot
|
|
416
417
|
})) {
|
|
417
|
-
if (context.config.
|
|
418
|
+
if (context.config.autoInstall) {
|
|
418
419
|
context.log(LogLevelLabel.WARN, `The package "${packageName}" is not installed. It will be installed automatically.`);
|
|
419
420
|
const result = await install(packageName, {
|
|
420
421
|
cwd: context.config.projectRoot,
|
|
@@ -425,7 +426,7 @@ async function installPackage(context, packageName, dev = false) {
|
|
|
425
426
|
throw new Error(`An error occurred while installing the package "${packageName}"`);
|
|
426
427
|
}
|
|
427
428
|
} else {
|
|
428
|
-
context.log(LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "
|
|
429
|
+
context.log(LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "autoInstall" option is set to false, it will not be installed automatically.`);
|
|
429
430
|
}
|
|
430
431
|
} else if (hasPackageVersion(packageName) && !process.env.POWERLINES_SKIP_VERSION_CHECK) {
|
|
431
432
|
const isMatching = await doesPackageMatch(getPackageName(packageName), getPackageVersion(packageName), context.config.projectRoot);
|
|
@@ -938,7 +939,7 @@ function resolveEntriesSync(context, typeDefinitions) {
|
|
|
938
939
|
name: typeDefinition.name
|
|
939
940
|
});
|
|
940
941
|
}
|
|
941
|
-
return
|
|
942
|
+
return context.fs.listSync(filePath).map((file) => resolveEntry(context, {
|
|
942
943
|
file,
|
|
943
944
|
name: typeDefinition.name
|
|
944
945
|
}));
|
|
@@ -2434,7 +2435,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2434
2435
|
async write(path, data = "", options = {}) {
|
|
2435
2436
|
const meta = options.meta ?? {};
|
|
2436
2437
|
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2437
|
-
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(data)).size)})`);
|
|
2438
|
+
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob$1(toArray(data)).size)})`);
|
|
2438
2439
|
let code = data;
|
|
2439
2440
|
try {
|
|
2440
2441
|
if (!options.skipFormat) {
|
|
@@ -2444,7 +2445,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2444
2445
|
this.#log(LogLevelLabel.WARN, `Failed to format file ${this.#normalizePath(path)} before writing: ${err.message}`);
|
|
2445
2446
|
code = data;
|
|
2446
2447
|
}
|
|
2447
|
-
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(code)).size)})`);
|
|
2448
|
+
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob$1(toArray(code)).size)})`);
|
|
2448
2449
|
const id = this.#normalizeId(meta.id || relativeKey);
|
|
2449
2450
|
this.metadata[id] = {
|
|
2450
2451
|
type: "normal",
|
|
@@ -2466,7 +2467,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2466
2467
|
writeSync(path, data = "", options = {}) {
|
|
2467
2468
|
const meta = options.meta ?? {};
|
|
2468
2469
|
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2469
|
-
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(data)).size)})`);
|
|
2470
|
+
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob$1(toArray(data)).size)})`);
|
|
2470
2471
|
const id = this.#normalizeId(meta.id || relativeKey);
|
|
2471
2472
|
this.metadata[id] = {
|
|
2472
2473
|
type: "normal",
|
|
@@ -2813,7 +2814,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2813
2814
|
tsconfig: config.tsconfig,
|
|
2814
2815
|
tsconfigRaw: config.tsconfigRaw,
|
|
2815
2816
|
skipCache: config.skipCache,
|
|
2816
|
-
|
|
2817
|
+
autoInstall: config.autoInstall,
|
|
2817
2818
|
entry: config.entry,
|
|
2818
2819
|
output: config.output,
|
|
2819
2820
|
plugins: config.plugins,
|
|
@@ -4411,7 +4412,7 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4411
4412
|
order: "normal"
|
|
4412
4413
|
});
|
|
4413
4414
|
context.debug(`The configuration provided ${toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
|
|
4414
|
-
${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}
|
|
4415
|
+
${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}`);
|
|
4415
4416
|
await resolveTsconfig(context);
|
|
4416
4417
|
await installDependencies(context);
|
|
4417
4418
|
await this.callHook("configResolved", {
|
|
@@ -4970,7 +4971,7 @@ Please ensure the value is one of the following:
|
|
|
4970
4971
|
this.context.config.projectRoot
|
|
4971
4972
|
]
|
|
4972
4973
|
});
|
|
4973
|
-
if (!isInstalled && this.context.config.
|
|
4974
|
+
if (!isInstalled && this.context.config.autoInstall) {
|
|
4974
4975
|
this.#context.warn(`The plugin package "${pluginPath}" is not installed. It will be installed automatically.`);
|
|
4975
4976
|
const result = await install(pluginPath, {
|
|
4976
4977
|
cwd: this.context.config.projectRoot
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { withExecutor } from './chunk-
|
|
1
|
+
import { withExecutor } from './chunk-6AZIZX5R.mjs';
|
|
2
2
|
import { __name } from './chunk-O6YSETKJ.mjs';
|
|
3
3
|
import defu from 'defu';
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ async function executorFn(context, api) {
|
|
|
6
6
|
await api.prepare(defu({
|
|
7
7
|
command: "prepare",
|
|
8
8
|
skipCache: context.options.skipCache,
|
|
9
|
-
|
|
9
|
+
autoInstall: context.options.autoInstall
|
|
10
10
|
}, context.inlineConfig));
|
|
11
11
|
return {
|
|
12
12
|
success: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVQHOU57U_js = require('./chunk-VQHOU57U.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
var defu = require('defu');
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ async function executorFn(context, api) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
22
|
-
var executor =
|
|
22
|
+
var executor = chunkVQHOU57U_js.withExecutor("build", executorFn);
|
|
23
23
|
var executor_default = executor;
|
|
24
24
|
|
|
25
25
|
exports.executorFn = executorFn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVQHOU57U_js = require('./chunk-VQHOU57U.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
|
|
6
6
|
// src/executors/docs/executor.ts
|
|
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
14
|
-
var executor =
|
|
14
|
+
var executor = chunkVQHOU57U_js.withExecutor("docs", executorFn);
|
|
15
15
|
var executor_default = executor;
|
|
16
16
|
|
|
17
17
|
exports.executorFn = executorFn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVQHOU57U_js = require('./chunk-VQHOU57U.js');
|
|
4
4
|
var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
|
|
5
5
|
|
|
6
6
|
// src/executors/lint/executor.ts
|
|
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
chunkSHUYVCID_js.__name(executorFn, "executorFn");
|
|
14
|
-
var executor =
|
|
14
|
+
var executor = chunkVQHOU57U_js.withExecutor("lint", executorFn);
|
|
15
15
|
var executor_default = executor;
|
|
16
16
|
|
|
17
17
|
exports.executorFn = executorFn;
|
|
@@ -45,11 +45,11 @@ var base_executor_untyped_default = untyped.defineUntypedSchema({
|
|
|
45
45
|
]
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
|
|
48
|
+
autoInstall: {
|
|
49
49
|
$schema: {
|
|
50
|
-
title: "
|
|
50
|
+
title: "Auto Install",
|
|
51
51
|
type: "boolean",
|
|
52
|
-
description: "
|
|
52
|
+
description: "Automatically install dependencies during prepare stage"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
skipCache: {
|
|
@@ -112,7 +112,7 @@ function createNxPlugin(opts) {
|
|
|
112
112
|
options: {
|
|
113
113
|
outputPath: userConfig.output?.outputPath || "dist/{projectRoot}",
|
|
114
114
|
projectType: projectConfig.projectType || userConfig.type,
|
|
115
|
-
|
|
115
|
+
autoInstall: userConfig.autoInstall
|
|
116
116
|
},
|
|
117
117
|
configurations: {
|
|
118
118
|
production: {
|
|
@@ -146,7 +146,7 @@ function createNxPlugin(opts) {
|
|
|
146
146
|
options: {
|
|
147
147
|
entry: userConfig.entry,
|
|
148
148
|
projectType: projectConfig.projectType || userConfig.type,
|
|
149
|
-
|
|
149
|
+
autoInstall: userConfig.autoInstall,
|
|
150
150
|
skipCache: userConfig.skipCache
|
|
151
151
|
},
|
|
152
152
|
configurations: {
|
|
@@ -181,7 +181,7 @@ function createNxPlugin(opts) {
|
|
|
181
181
|
entry: userConfig.entry,
|
|
182
182
|
outputPath: userConfig.output?.outputPath || "dist/{projectRoot}",
|
|
183
183
|
projectType: projectConfig.projectType || userConfig.type,
|
|
184
|
-
|
|
184
|
+
autoInstall: userConfig.autoInstall,
|
|
185
185
|
skipCache: userConfig.skipCache
|
|
186
186
|
},
|
|
187
187
|
configurations: {
|
|
@@ -221,7 +221,7 @@ function createNxPlugin(opts) {
|
|
|
221
221
|
options: {
|
|
222
222
|
entry: userConfig.entry,
|
|
223
223
|
projectType: projectConfig.projectType || userConfig.type,
|
|
224
|
-
|
|
224
|
+
autoInstall: userConfig.autoInstall,
|
|
225
225
|
skipCache: userConfig.skipCache
|
|
226
226
|
},
|
|
227
227
|
configurations: {
|
|
@@ -261,7 +261,7 @@ function createNxPlugin(opts) {
|
|
|
261
261
|
options: {
|
|
262
262
|
entry: userConfig.entry,
|
|
263
263
|
projectType: projectConfig.projectType || userConfig.type,
|
|
264
|
-
|
|
264
|
+
autoInstall: userConfig.autoInstall,
|
|
265
265
|
skipCache: userConfig.skipCache
|
|
266
266
|
},
|
|
267
267
|
configurations: {
|
|
@@ -301,7 +301,7 @@ function createNxPlugin(opts) {
|
|
|
301
301
|
options: {
|
|
302
302
|
entry: userConfig.entry,
|
|
303
303
|
projectType: projectConfig.projectType || userConfig.type,
|
|
304
|
-
|
|
304
|
+
autoInstall: userConfig.autoInstall,
|
|
305
305
|
skipCache: userConfig.skipCache
|
|
306
306
|
},
|
|
307
307
|
configurations: {
|
|
@@ -118,7 +118,7 @@ function createNxPlugin(opts) {
|
|
|
118
118
|
options: {
|
|
119
119
|
outputPath: userConfig.output?.outputPath || "dist/{projectRoot}",
|
|
120
120
|
projectType: projectConfig.projectType || userConfig.type,
|
|
121
|
-
|
|
121
|
+
autoInstall: userConfig.autoInstall
|
|
122
122
|
},
|
|
123
123
|
configurations: {
|
|
124
124
|
production: {
|
|
@@ -152,7 +152,7 @@ function createNxPlugin(opts) {
|
|
|
152
152
|
options: {
|
|
153
153
|
entry: userConfig.entry,
|
|
154
154
|
projectType: projectConfig.projectType || userConfig.type,
|
|
155
|
-
|
|
155
|
+
autoInstall: userConfig.autoInstall,
|
|
156
156
|
skipCache: userConfig.skipCache
|
|
157
157
|
},
|
|
158
158
|
configurations: {
|
|
@@ -187,7 +187,7 @@ function createNxPlugin(opts) {
|
|
|
187
187
|
entry: userConfig.entry,
|
|
188
188
|
outputPath: userConfig.output?.outputPath || "dist/{projectRoot}",
|
|
189
189
|
projectType: projectConfig.projectType || userConfig.type,
|
|
190
|
-
|
|
190
|
+
autoInstall: userConfig.autoInstall,
|
|
191
191
|
skipCache: userConfig.skipCache
|
|
192
192
|
},
|
|
193
193
|
configurations: {
|
|
@@ -227,7 +227,7 @@ function createNxPlugin(opts) {
|
|
|
227
227
|
options: {
|
|
228
228
|
entry: userConfig.entry,
|
|
229
229
|
projectType: projectConfig.projectType || userConfig.type,
|
|
230
|
-
|
|
230
|
+
autoInstall: userConfig.autoInstall,
|
|
231
231
|
skipCache: userConfig.skipCache
|
|
232
232
|
},
|
|
233
233
|
configurations: {
|
|
@@ -267,7 +267,7 @@ function createNxPlugin(opts) {
|
|
|
267
267
|
options: {
|
|
268
268
|
entry: userConfig.entry,
|
|
269
269
|
projectType: projectConfig.projectType || userConfig.type,
|
|
270
|
-
|
|
270
|
+
autoInstall: userConfig.autoInstall,
|
|
271
271
|
skipCache: userConfig.skipCache
|
|
272
272
|
},
|
|
273
273
|
configurations: {
|
|
@@ -307,7 +307,7 @@ function createNxPlugin(opts) {
|
|
|
307
307
|
options: {
|
|
308
308
|
entry: userConfig.entry,
|
|
309
309
|
projectType: projectConfig.projectType || userConfig.type,
|
|
310
|
-
|
|
310
|
+
autoInstall: userConfig.autoInstall,
|
|
311
311
|
skipCache: userConfig.skipCache
|
|
312
312
|
},
|
|
313
313
|
configurations: {
|