@powerlines/nx 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/{chunk-UCUWY6L5.mjs → chunk-5BGY6YWV.mjs} +1 -1
- package/dist/{chunk-RPEQNXJK.mjs → chunk-5XZZZSXP.mjs} +1 -1
- package/dist/{chunk-2AGETYT2.js → chunk-6ZIN2CAX.js} +2 -2
- package/dist/{chunk-MSXJ4P4D.mjs → chunk-DBX2Y6G3.mjs} +1 -1
- package/dist/{chunk-MYYYMGTY.js → chunk-DGAY3PM7.js} +2 -2
- package/dist/{chunk-NUD6HB43.js → chunk-LB2WKEBP.js} +2 -2
- package/dist/{chunk-EXZLZJLV.js → chunk-OYUWBYK7.js} +68 -4
- package/dist/{chunk-3EMVNND4.js → chunk-RDBAXMH3.js} +2 -2
- package/dist/{chunk-QC2ZXH4S.mjs → chunk-SEKRZM2M.mjs} +1 -1
- package/dist/{chunk-MSGZLLRZ.js → chunk-SMAXXYNQ.js} +2 -2
- package/dist/{chunk-QOHL2XOT.mjs → chunk-VDJPCGIO.mjs} +69 -5
- package/dist/{chunk-KM6K6GLK.mjs → chunk-ZN4SPOFK.mjs} +1 -1
- package/dist/executors.js +11 -11
- package/dist/executors.mjs +6 -6
- package/dist/index.js +11 -11
- package/dist/index.mjs +6 -6
- package/dist/src/base/base-executor.js +2 -2
- package/dist/src/base/base-executor.mjs +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 +85 -0
- package/dist/src/executors/build/schema.json +96 -0
- 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 +75 -0
- package/dist/src/executors/clean/schema.json +77 -0
- 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 +75 -0
- package/dist/src/executors/docs/schema.json +77 -0
- 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 +75 -0
- package/dist/src/executors/lint/schema.json +77 -0
- 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 +75 -0
- package/dist/src/executors/prepare/schema.json +77 -0
- package/dist/src/generators/sync/schema.d.ts +15 -0
- package/dist/src/generators/sync/schema.json +19 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Powerlines - Nx
|
|
4
4
|
|
|
5
|
+
## [0.8.0](https://github.com/storm-software/powerlines/releases/tag/nx%400.8.0) (2025-10-24)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- **powerlines:** Added `parse` function to `context` objects
|
|
10
|
+
([5a56c5c](https://github.com/storm-software/powerlines/commit/5a56c5c))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated powerlines to 0.9.0
|
|
15
|
+
|
|
16
|
+
## [0.7.0](https://github.com/storm-software/powerlines/releases/tag/nx%400.7.0) (2025-10-24)
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- **deepkit:** Initial check-in of the `deepkit` package
|
|
21
|
+
([d3372b8](https://github.com/storm-software/powerlines/commit/d3372b8))
|
|
22
|
+
|
|
23
|
+
### Updated Dependencies
|
|
24
|
+
|
|
25
|
+
- Updated powerlines to 0.8.0
|
|
26
|
+
|
|
5
27
|
## [0.6.1](https://github.com/storm-software/powerlines/releases/tag/nx%400.6.1) (2025-10-23)
|
|
6
28
|
|
|
7
29
|
### Miscellaneous
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOYUWBYK7_js = require('./chunk-OYUWBYK7.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 = chunkOYUWBYK7_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 chunkOYUWBYK7_js = require('./chunk-OYUWBYK7.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 = chunkOYUWBYK7_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 chunkOYUWBYK7_js = require('./chunk-OYUWBYK7.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 = chunkOYUWBYK7_js.withExecutor("docs", executorFn);
|
|
15
15
|
var executor_default = executor;
|
|
16
16
|
|
|
17
17
|
exports.executorFn = executorFn;
|
|
@@ -44,6 +44,7 @@ var join = require('@stryke/path/join');
|
|
|
44
44
|
var isNull = require('@stryke/type-checks/is-null');
|
|
45
45
|
var isString = require('@stryke/type-checks/is-string');
|
|
46
46
|
var uuid = require('@stryke/unique-id/uuid');
|
|
47
|
+
var oxcParser = require('oxc-parser');
|
|
47
48
|
var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
|
|
48
49
|
var colors = require('@storm-software/config-tools/utilities/colors');
|
|
49
50
|
var noop = require('@stryke/helpers/noop');
|
|
@@ -1533,7 +1534,8 @@ function createVfs(context) {
|
|
|
1533
1534
|
chunkSHUYVCID_js.__name(createVfs, "createVfs");
|
|
1534
1535
|
|
|
1535
1536
|
// ../powerlines/src/internal/contexts/context.ts
|
|
1536
|
-
var
|
|
1537
|
+
var configCache = /* @__PURE__ */ new WeakMap();
|
|
1538
|
+
var parseCache = /* @__PURE__ */ new WeakMap();
|
|
1537
1539
|
var PowerlinesContext = class _PowerlinesContext {
|
|
1538
1540
|
static {
|
|
1539
1541
|
chunkSHUYVCID_js.__name(this, "PowerlinesContext");
|
|
@@ -1598,11 +1600,29 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1598
1600
|
* An object containing the development dependencies that should be installed for the project
|
|
1599
1601
|
*/
|
|
1600
1602
|
devDependencies = {};
|
|
1603
|
+
/**
|
|
1604
|
+
* The persisted meta information about the current build
|
|
1605
|
+
*/
|
|
1601
1606
|
persistedMeta = void 0;
|
|
1607
|
+
/**
|
|
1608
|
+
* The path to the Powerlines package
|
|
1609
|
+
*/
|
|
1602
1610
|
powerlinesPath;
|
|
1611
|
+
/**
|
|
1612
|
+
* The parsed `package.json` file for the project
|
|
1613
|
+
*/
|
|
1603
1614
|
packageJson;
|
|
1615
|
+
/**
|
|
1616
|
+
* The parsed `project.json` file for the project
|
|
1617
|
+
*/
|
|
1604
1618
|
projectJson = void 0;
|
|
1619
|
+
/**
|
|
1620
|
+
* The module resolver for the project
|
|
1621
|
+
*/
|
|
1605
1622
|
resolver;
|
|
1623
|
+
/**
|
|
1624
|
+
* The resolved entry type definitions for the project
|
|
1625
|
+
*/
|
|
1606
1626
|
get entry() {
|
|
1607
1627
|
return resolveEntriesSync(this, toArray.toArray(this.config.entry));
|
|
1608
1628
|
}
|
|
@@ -1617,9 +1637,15 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1617
1637
|
}
|
|
1618
1638
|
return this.#tsconfig;
|
|
1619
1639
|
}
|
|
1640
|
+
/**
|
|
1641
|
+
* Sets the TypeScript configuration parsed from the tsconfig file
|
|
1642
|
+
*/
|
|
1620
1643
|
set tsconfig(value) {
|
|
1621
1644
|
this.#tsconfig = value;
|
|
1622
1645
|
}
|
|
1646
|
+
/**
|
|
1647
|
+
* The virtual file system interface for the project
|
|
1648
|
+
*/
|
|
1623
1649
|
get fs() {
|
|
1624
1650
|
if (!this.#fs) {
|
|
1625
1651
|
this.#fs = createVfs(this);
|
|
@@ -1675,6 +1701,9 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1675
1701
|
get workspaceConfig() {
|
|
1676
1702
|
return this.#workspaceConfig;
|
|
1677
1703
|
}
|
|
1704
|
+
/**
|
|
1705
|
+
* The environment paths for the project
|
|
1706
|
+
*/
|
|
1678
1707
|
get envPaths() {
|
|
1679
1708
|
if (!this.#envPaths) {
|
|
1680
1709
|
this.#envPaths = getEnvPaths.getEnvPaths({
|
|
@@ -1733,6 +1762,41 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1733
1762
|
return getWorkspaceRoot.relativeToWorkspaceRoot(this.config.projectRoot);
|
|
1734
1763
|
}
|
|
1735
1764
|
/**
|
|
1765
|
+
* Parses the source code and returns a {@link ParseResult} object.
|
|
1766
|
+
*
|
|
1767
|
+
* @param code - The source code to parse.
|
|
1768
|
+
* @param id - The unique identifier for the source file.
|
|
1769
|
+
* @param options - Optional parser options.
|
|
1770
|
+
* @returns The parsed {@link ParseResult} object.
|
|
1771
|
+
*/
|
|
1772
|
+
async parse(code, id, options = {}) {
|
|
1773
|
+
if (parseCache.has({
|
|
1774
|
+
code,
|
|
1775
|
+
options
|
|
1776
|
+
})) {
|
|
1777
|
+
return parseCache.get({
|
|
1778
|
+
code,
|
|
1779
|
+
options
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
const result = await oxcParser.parseAsync(id, code, defu4__default.default(options ?? {}, {
|
|
1783
|
+
lang: filePathFns.hasFileExtension(id) ? void 0 : "ts",
|
|
1784
|
+
astType: filePathFns.hasFileExtension(id) ? void 0 : "ts",
|
|
1785
|
+
sourceType: "module",
|
|
1786
|
+
showSemanticErrors: false
|
|
1787
|
+
}));
|
|
1788
|
+
if (result.errors && result.errors.length > 0) {
|
|
1789
|
+
throw new Error(`Powerlines parsing errors in file: ${id}
|
|
1790
|
+
${result.errors.map((error) => ` [${error.severity}] ${error.message}${error.codeframe ? ` (${error.codeframe})` : ""}${error.helpMessage ? `
|
|
1791
|
+
Help: ${error.helpMessage}` : ""}`).join("\n")}`);
|
|
1792
|
+
}
|
|
1793
|
+
parseCache.set({
|
|
1794
|
+
code,
|
|
1795
|
+
options
|
|
1796
|
+
}, result);
|
|
1797
|
+
return result;
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1736
1800
|
* Update the context using a new user configuration options
|
|
1737
1801
|
*
|
|
1738
1802
|
* @param userConfig - The new user configuration options.
|
|
@@ -1819,8 +1883,8 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1819
1883
|
configFile: config.configFile ?? this.config.configFile,
|
|
1820
1884
|
command: this.config.inlineConfig?.command
|
|
1821
1885
|
};
|
|
1822
|
-
if (
|
|
1823
|
-
const result =
|
|
1886
|
+
if (configCache.has(cacheKey)) {
|
|
1887
|
+
const result = configCache.get(cacheKey);
|
|
1824
1888
|
this.projectJson = result.projectJson;
|
|
1825
1889
|
this.packageJson = result.packageJson;
|
|
1826
1890
|
this.#checksum = result.checksum;
|
|
@@ -1845,7 +1909,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1845
1909
|
});
|
|
1846
1910
|
const userConfig = await chunkHHPODCTP_js.loadUserConfigFile(cacheKey.projectRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile);
|
|
1847
1911
|
this.mergeUserConfig(userConfig.config);
|
|
1848
|
-
|
|
1912
|
+
configCache.set(cacheKey, {
|
|
1849
1913
|
projectJson: this.projectJson,
|
|
1850
1914
|
packageJson: this.packageJson,
|
|
1851
1915
|
checksum: this.#checksum,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOYUWBYK7_js = require('./chunk-OYUWBYK7.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 = chunkOYUWBYK7_js.withExecutor("lint", 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 chunkOYUWBYK7_js = require('./chunk-OYUWBYK7.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 = chunkOYUWBYK7_js.withExecutor("prepare", executorFn);
|
|
23
23
|
var executor_default = executor;
|
|
24
24
|
|
|
25
25
|
exports.executorFn = executorFn;
|
|
@@ -13,7 +13,7 @@ import { createDirectory } from '@stryke/fs/helpers';
|
|
|
13
13
|
import { install } from '@stryke/fs/install';
|
|
14
14
|
import { listFiles, listFilesSync } from '@stryke/fs/list-files';
|
|
15
15
|
import { isPackageExists, isPackageListed, doesPackageMatch, getPackageListing } from '@stryke/fs/package-fns';
|
|
16
|
-
import { findFilePath, findFileExtensionSafe, relativePath, findFileName } from '@stryke/path/file-path-fns';
|
|
16
|
+
import { findFilePath, hasFileExtension, findFileExtensionSafe, relativePath, findFileName } from '@stryke/path/file-path-fns';
|
|
17
17
|
import { isParentPath } from '@stryke/path/is-parent-path';
|
|
18
18
|
import { joinPaths } from '@stryke/path/join-paths';
|
|
19
19
|
import { replacePath } from '@stryke/path/replace';
|
|
@@ -42,6 +42,7 @@ import { joinPaths as joinPaths$1 } from '@stryke/path/join';
|
|
|
42
42
|
import { isNull } from '@stryke/type-checks/is-null';
|
|
43
43
|
import { isString } from '@stryke/type-checks/is-string';
|
|
44
44
|
import { uuid } from '@stryke/unique-id/uuid';
|
|
45
|
+
import { parseAsync } from 'oxc-parser';
|
|
45
46
|
import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
|
|
46
47
|
import { getColor } from '@storm-software/config-tools/utilities/colors';
|
|
47
48
|
import { noop } from '@stryke/helpers/noop';
|
|
@@ -1503,7 +1504,8 @@ function createVfs(context) {
|
|
|
1503
1504
|
__name(createVfs, "createVfs");
|
|
1504
1505
|
|
|
1505
1506
|
// ../powerlines/src/internal/contexts/context.ts
|
|
1506
|
-
var
|
|
1507
|
+
var configCache = /* @__PURE__ */ new WeakMap();
|
|
1508
|
+
var parseCache = /* @__PURE__ */ new WeakMap();
|
|
1507
1509
|
var PowerlinesContext = class _PowerlinesContext {
|
|
1508
1510
|
static {
|
|
1509
1511
|
__name(this, "PowerlinesContext");
|
|
@@ -1568,11 +1570,29 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1568
1570
|
* An object containing the development dependencies that should be installed for the project
|
|
1569
1571
|
*/
|
|
1570
1572
|
devDependencies = {};
|
|
1573
|
+
/**
|
|
1574
|
+
* The persisted meta information about the current build
|
|
1575
|
+
*/
|
|
1571
1576
|
persistedMeta = void 0;
|
|
1577
|
+
/**
|
|
1578
|
+
* The path to the Powerlines package
|
|
1579
|
+
*/
|
|
1572
1580
|
powerlinesPath;
|
|
1581
|
+
/**
|
|
1582
|
+
* The parsed `package.json` file for the project
|
|
1583
|
+
*/
|
|
1573
1584
|
packageJson;
|
|
1585
|
+
/**
|
|
1586
|
+
* The parsed `project.json` file for the project
|
|
1587
|
+
*/
|
|
1574
1588
|
projectJson = void 0;
|
|
1589
|
+
/**
|
|
1590
|
+
* The module resolver for the project
|
|
1591
|
+
*/
|
|
1575
1592
|
resolver;
|
|
1593
|
+
/**
|
|
1594
|
+
* The resolved entry type definitions for the project
|
|
1595
|
+
*/
|
|
1576
1596
|
get entry() {
|
|
1577
1597
|
return resolveEntriesSync(this, toArray(this.config.entry));
|
|
1578
1598
|
}
|
|
@@ -1587,9 +1607,15 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1587
1607
|
}
|
|
1588
1608
|
return this.#tsconfig;
|
|
1589
1609
|
}
|
|
1610
|
+
/**
|
|
1611
|
+
* Sets the TypeScript configuration parsed from the tsconfig file
|
|
1612
|
+
*/
|
|
1590
1613
|
set tsconfig(value) {
|
|
1591
1614
|
this.#tsconfig = value;
|
|
1592
1615
|
}
|
|
1616
|
+
/**
|
|
1617
|
+
* The virtual file system interface for the project
|
|
1618
|
+
*/
|
|
1593
1619
|
get fs() {
|
|
1594
1620
|
if (!this.#fs) {
|
|
1595
1621
|
this.#fs = createVfs(this);
|
|
@@ -1645,6 +1671,9 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1645
1671
|
get workspaceConfig() {
|
|
1646
1672
|
return this.#workspaceConfig;
|
|
1647
1673
|
}
|
|
1674
|
+
/**
|
|
1675
|
+
* The environment paths for the project
|
|
1676
|
+
*/
|
|
1648
1677
|
get envPaths() {
|
|
1649
1678
|
if (!this.#envPaths) {
|
|
1650
1679
|
this.#envPaths = getEnvPaths({
|
|
@@ -1703,6 +1732,41 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1703
1732
|
return relativeToWorkspaceRoot(this.config.projectRoot);
|
|
1704
1733
|
}
|
|
1705
1734
|
/**
|
|
1735
|
+
* Parses the source code and returns a {@link ParseResult} object.
|
|
1736
|
+
*
|
|
1737
|
+
* @param code - The source code to parse.
|
|
1738
|
+
* @param id - The unique identifier for the source file.
|
|
1739
|
+
* @param options - Optional parser options.
|
|
1740
|
+
* @returns The parsed {@link ParseResult} object.
|
|
1741
|
+
*/
|
|
1742
|
+
async parse(code, id, options = {}) {
|
|
1743
|
+
if (parseCache.has({
|
|
1744
|
+
code,
|
|
1745
|
+
options
|
|
1746
|
+
})) {
|
|
1747
|
+
return parseCache.get({
|
|
1748
|
+
code,
|
|
1749
|
+
options
|
|
1750
|
+
});
|
|
1751
|
+
}
|
|
1752
|
+
const result = await parseAsync(id, code, defu4(options ?? {}, {
|
|
1753
|
+
lang: hasFileExtension(id) ? void 0 : "ts",
|
|
1754
|
+
astType: hasFileExtension(id) ? void 0 : "ts",
|
|
1755
|
+
sourceType: "module",
|
|
1756
|
+
showSemanticErrors: false
|
|
1757
|
+
}));
|
|
1758
|
+
if (result.errors && result.errors.length > 0) {
|
|
1759
|
+
throw new Error(`Powerlines parsing errors in file: ${id}
|
|
1760
|
+
${result.errors.map((error) => ` [${error.severity}] ${error.message}${error.codeframe ? ` (${error.codeframe})` : ""}${error.helpMessage ? `
|
|
1761
|
+
Help: ${error.helpMessage}` : ""}`).join("\n")}`);
|
|
1762
|
+
}
|
|
1763
|
+
parseCache.set({
|
|
1764
|
+
code,
|
|
1765
|
+
options
|
|
1766
|
+
}, result);
|
|
1767
|
+
return result;
|
|
1768
|
+
}
|
|
1769
|
+
/**
|
|
1706
1770
|
* Update the context using a new user configuration options
|
|
1707
1771
|
*
|
|
1708
1772
|
* @param userConfig - The new user configuration options.
|
|
@@ -1789,8 +1853,8 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1789
1853
|
configFile: config.configFile ?? this.config.configFile,
|
|
1790
1854
|
command: this.config.inlineConfig?.command
|
|
1791
1855
|
};
|
|
1792
|
-
if (
|
|
1793
|
-
const result =
|
|
1856
|
+
if (configCache.has(cacheKey)) {
|
|
1857
|
+
const result = configCache.get(cacheKey);
|
|
1794
1858
|
this.projectJson = result.projectJson;
|
|
1795
1859
|
this.packageJson = result.packageJson;
|
|
1796
1860
|
this.#checksum = result.checksum;
|
|
@@ -1815,7 +1879,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1815
1879
|
});
|
|
1816
1880
|
const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile);
|
|
1817
1881
|
this.mergeUserConfig(userConfig.config);
|
|
1818
|
-
|
|
1882
|
+
configCache.set(cacheKey, {
|
|
1819
1883
|
projectJson: this.projectJson,
|
|
1820
1884
|
packageJson: this.packageJson,
|
|
1821
1885
|
checksum: this.#checksum,
|
package/dist/executors.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-XO62WWX4.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
4
|
+
var chunk6ZIN2CAX_js = require('./chunk-6ZIN2CAX.js');
|
|
5
|
+
var chunkLB2WKEBP_js = require('./chunk-LB2WKEBP.js');
|
|
6
|
+
var chunkRDBAXMH3_js = require('./chunk-RDBAXMH3.js');
|
|
7
|
+
var chunkSMAXXYNQ_js = require('./chunk-SMAXXYNQ.js');
|
|
8
|
+
var chunkDGAY3PM7_js = require('./chunk-DGAY3PM7.js');
|
|
9
|
+
require('./chunk-OYUWBYK7.js');
|
|
10
10
|
require('./chunk-HHPODCTP.js');
|
|
11
11
|
require('./chunk-SHUYVCID.js');
|
|
12
12
|
|
|
@@ -14,21 +14,21 @@ require('./chunk-SHUYVCID.js');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "clean", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6ZIN2CAX_js.executor_default; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "docs", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkLB2WKEBP_js.executor_default; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "lint", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkRDBAXMH3_js.executor_default; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "prepare", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkSMAXXYNQ_js.executor_default; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "build", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkDGAY3PM7_js.executor_default; }
|
|
34
34
|
});
|
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './chunk-UV4HQO3Y.mjs';
|
|
2
|
-
export { executor_default as clean } from './chunk-
|
|
3
|
-
export { executor_default as docs } from './chunk-
|
|
4
|
-
export { executor_default as lint } from './chunk-
|
|
5
|
-
export { executor_default as prepare } from './chunk-
|
|
6
|
-
export { executor_default as build } from './chunk-
|
|
7
|
-
import './chunk-
|
|
2
|
+
export { executor_default as clean } from './chunk-ZN4SPOFK.mjs';
|
|
3
|
+
export { executor_default as docs } from './chunk-5BGY6YWV.mjs';
|
|
4
|
+
export { executor_default as lint } from './chunk-SEKRZM2M.mjs';
|
|
5
|
+
export { executor_default as prepare } from './chunk-DBX2Y6G3.mjs';
|
|
6
|
+
export { executor_default as build } from './chunk-5XZZZSXP.mjs';
|
|
7
|
+
import './chunk-VDJPCGIO.mjs';
|
|
8
8
|
import './chunk-CYWOTYVX.mjs';
|
|
9
9
|
import './chunk-O6YSETKJ.mjs';
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-XO62WWX4.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
4
|
+
var chunk6ZIN2CAX_js = require('./chunk-6ZIN2CAX.js');
|
|
5
|
+
var chunkLB2WKEBP_js = require('./chunk-LB2WKEBP.js');
|
|
6
|
+
var chunkRDBAXMH3_js = require('./chunk-RDBAXMH3.js');
|
|
7
|
+
var chunkSMAXXYNQ_js = require('./chunk-SMAXXYNQ.js');
|
|
8
8
|
require('./chunk-N2YKXZ5R.js');
|
|
9
9
|
var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
|
|
10
10
|
var chunkZ4BJ37JY_js = require('./chunk-Z4BJ37JY.js');
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
11
|
+
var chunkDGAY3PM7_js = require('./chunk-DGAY3PM7.js');
|
|
12
|
+
require('./chunk-OYUWBYK7.js');
|
|
13
13
|
require('./chunk-HHPODCTP.js');
|
|
14
14
|
require('./chunk-SHUYVCID.js');
|
|
15
15
|
|
|
@@ -17,19 +17,19 @@ require('./chunk-SHUYVCID.js');
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "clean", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk6ZIN2CAX_js.executor_default; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "docs", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkLB2WKEBP_js.executor_default; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "lint", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkRDBAXMH3_js.executor_default; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "prepare", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkSMAXXYNQ_js.executor_default; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "sync", {
|
|
35
35
|
enumerable: true,
|
|
@@ -49,5 +49,5 @@ Object.defineProperty(exports, "name", {
|
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "build", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkDGAY3PM7_js.executor_default; }
|
|
53
53
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './chunk-UV4HQO3Y.mjs';
|
|
2
|
-
export { executor_default as clean } from './chunk-
|
|
3
|
-
export { executor_default as docs } from './chunk-
|
|
4
|
-
export { executor_default as lint } from './chunk-
|
|
5
|
-
export { executor_default as prepare } from './chunk-
|
|
2
|
+
export { executor_default as clean } from './chunk-ZN4SPOFK.mjs';
|
|
3
|
+
export { executor_default as docs } from './chunk-5BGY6YWV.mjs';
|
|
4
|
+
export { executor_default as lint } from './chunk-SEKRZM2M.mjs';
|
|
5
|
+
export { executor_default as prepare } from './chunk-DBX2Y6G3.mjs';
|
|
6
6
|
import './chunk-23KFTIT2.mjs';
|
|
7
7
|
export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
|
|
8
8
|
export { createNodesV2, name } from './chunk-22QO45EK.mjs';
|
|
9
|
-
export { executor_default as build } from './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
export { executor_default as build } from './chunk-5XZZZSXP.mjs';
|
|
10
|
+
import './chunk-VDJPCGIO.mjs';
|
|
11
11
|
import './chunk-CYWOTYVX.mjs';
|
|
12
12
|
import './chunk-O6YSETKJ.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOYUWBYK7_js = require('../../chunk-OYUWBYK7.js');
|
|
4
4
|
require('../../chunk-HHPODCTP.js');
|
|
5
5
|
require('../../chunk-SHUYVCID.js');
|
|
6
6
|
|
|
@@ -8,5 +8,5 @@ require('../../chunk-SHUYVCID.js');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "withExecutor", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkOYUWBYK7_js.withExecutor; }
|
|
12
12
|
});
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-
|
|
5
|
+
var chunkDGAY3PM7_js = require('../../../chunk-DGAY3PM7.js');
|
|
6
|
+
require('../../../chunk-OYUWBYK7.js');
|
|
7
7
|
require('../../../chunk-HHPODCTP.js');
|
|
8
8
|
require('../../../chunk-SHUYVCID.js');
|
|
9
9
|
|
|
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "default", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkDGAY3PM7_js.executor_default; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "executorFn", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkDGAY3PM7_js.executorFn; }
|
|
19
19
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executor_default as default, executorFn } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
export { executor_default as default, executorFn } from '../../../chunk-5XZZZSXP.mjs';
|
|
2
|
+
import '../../../chunk-VDJPCGIO.mjs';
|
|
3
3
|
import '../../../chunk-CYWOTYVX.mjs';
|
|
4
4
|
import '../../../chunk-O6YSETKJ.mjs';
|