@powerlines/nx 0.11.242 → 0.11.243
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/base/base-executor.js +1 -1
- package/dist/src/base/base-executor.mjs +1 -1
- package/dist/src/base/base-executor.untyped.d.mts +1 -1
- package/dist/src/base/index.d.mts +1 -1
- package/dist/src/base/index.js +1 -1
- package/dist/src/base/index.mjs +1 -1
- package/dist/src/{base-executor-DR21ys32.js → base-executor-C-w1Cj4-.js} +37 -1
- package/dist/src/{base-executor-BoGtGSyI.mjs → base-executor-DeuSmP_i.mjs} +39 -3
- package/dist/src/{base-executor-D3qCz-UO.mjs.map → base-executor-DeuSmP_i.mjs.map} +1 -1
- package/dist/src/{base-executor-D3qCz-UO.mjs → base-executor-OR5IVpTY.mjs} +38 -2
- package/dist/src/{base-executor-BoGtGSyI.mjs.map → base-executor-OR5IVpTY.mjs.map} +1 -1
- package/dist/src/{base-executor-gEMcEAww.js → base-executor-eVgSDE74.js} +38 -2
- package/dist/src/base-executor.untyped-BxNh-StD.d.mts +7 -0
- package/dist/src/base-executor.untyped-BxNh-StD.d.mts.map +1 -0
- package/dist/src/executors/build/executor.js +1 -1
- package/dist/src/executors/build/executor.mjs +1 -1
- package/dist/src/executors/build/untyped.d.ts +2 -2
- package/dist/src/executors/clean/executor.js +1 -1
- package/dist/src/executors/clean/executor.mjs +1 -1
- package/dist/src/executors/clean/untyped.d.mts +2 -2
- package/dist/src/executors/clean/untyped.d.ts +2 -2
- package/dist/src/executors/docs/executor.js +1 -1
- package/dist/src/executors/docs/executor.mjs +1 -1
- package/dist/src/executors/docs/untyped.d.mts +2 -2
- package/dist/src/executors/docs/untyped.d.ts +2 -2
- package/dist/src/executors/lint/executor.js +1 -1
- package/dist/src/executors/lint/executor.mjs +1 -1
- package/dist/src/executors/lint/untyped.d.ts +2 -2
- package/dist/src/executors/prepare/executor.js +1 -1
- package/dist/src/executors/prepare/executor.mjs +1 -1
- package/dist/src/executors/prepare/untyped.d.mts +2 -2
- package/dist/src/generators/sync/untyped.d.ts +2 -2
- package/dist/src/index.d.mts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.mjs +1 -1
- package/package.json +16 -16
- package/dist/src/base-executor.untyped-BgwzwrUY.d.mts +0 -7
- package/dist/src/base-executor.untyped-BgwzwrUY.d.mts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "../base-executor.untyped-
|
|
1
|
+
import { t as _default } from "../base-executor.untyped-BxNh-StD.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as withExecutor, t as PowerlinesExecutorContext } from "../base-executor-kPTbnW7K.mjs";
|
|
2
|
-
import "../base-executor.untyped-
|
|
2
|
+
import "../base-executor.untyped-BxNh-StD.mjs";
|
|
3
3
|
import "../index-LhFpnU-f.mjs";
|
|
4
4
|
export { PowerlinesExecutorContext, withExecutor };
|
package/dist/src/base/index.js
CHANGED
package/dist/src/base/index.mjs
CHANGED
|
@@ -2952,6 +2952,12 @@ var PowerlinesContext = class PowerlinesContext {
|
|
|
2952
2952
|
return (0, __stryke_path_join.joinPaths)(this.artifactsPath, "entry");
|
|
2953
2953
|
}
|
|
2954
2954
|
/**
|
|
2955
|
+
* Get the path to the infrastructure modules used by the project
|
|
2956
|
+
*/
|
|
2957
|
+
get infrastructurePath() {
|
|
2958
|
+
return (0, __stryke_path_join.joinPaths)(this.artifactsPath, "infrastructure");
|
|
2959
|
+
}
|
|
2960
|
+
/**
|
|
2955
2961
|
* Get the path to the data directory for the project
|
|
2956
2962
|
*/
|
|
2957
2963
|
get dataPath() {
|
|
@@ -3158,7 +3164,7 @@ var PowerlinesContext = class PowerlinesContext {
|
|
|
3158
3164
|
if (alias) moduleId = alias.replacement;
|
|
3159
3165
|
} else if ((0, __stryke_type_checks_is_set_object.isSetObject)(this.config.resolve.alias) && this.config.resolve.alias[id]) moduleId = this.config.resolve.alias[id];
|
|
3160
3166
|
}
|
|
3161
|
-
if (this.fs.isVirtual(moduleId)) {
|
|
3167
|
+
if (this.fs.isVirtual(moduleId) || importer && this.fs.isVirtual(importer)) {
|
|
3162
3168
|
const result = await this.fs.resolve(moduleId, importer, {
|
|
3163
3169
|
conditions: this.config.resolve.conditions,
|
|
3164
3170
|
extensions: this.config.resolve.extensions,
|
|
@@ -3331,6 +3337,36 @@ var PowerlinesContext = class PowerlinesContext {
|
|
|
3331
3337
|
} }));
|
|
3332
3338
|
}
|
|
3333
3339
|
/**
|
|
3340
|
+
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
3341
|
+
*
|
|
3342
|
+
* @param code - The source code of the builtin file
|
|
3343
|
+
* @param id - The unique identifier of the builtin file
|
|
3344
|
+
* @param options - Optional write file options
|
|
3345
|
+
*/
|
|
3346
|
+
async emitInfrastructure(code, id, options = {}) {
|
|
3347
|
+
if (!this.infrastructurePath) throw new Error(`The infrastructure path is not set. Cannot emit infrastructure file with id "${id}".`);
|
|
3348
|
+
if (!(0, __stryke_type_checks_is_set_string.isSetString)(id)) throw new Error(`The infrastructure id must be a non-empty string. Received: ${String(id)}`);
|
|
3349
|
+
return this.emit(code, (0, __stryke_path_append.appendPath)(id, this.infrastructurePath), (0, defu.default)(options, { meta: {
|
|
3350
|
+
type: "infrastructure",
|
|
3351
|
+
id
|
|
3352
|
+
} }));
|
|
3353
|
+
}
|
|
3354
|
+
/**
|
|
3355
|
+
* Synchronously resolves an infrastructure virtual file and writes it to the VFS if it does not already exist
|
|
3356
|
+
*
|
|
3357
|
+
* @param code - The source code of the infrastructure file
|
|
3358
|
+
* @param id - The unique identifier of the infrastructure file
|
|
3359
|
+
* @param options - Optional write file options
|
|
3360
|
+
*/
|
|
3361
|
+
emitInfrastructureSync(code, id, options = {}) {
|
|
3362
|
+
if (!this.infrastructurePath) throw new Error(`The infrastructure path is not set. Cannot emit infrastructure file with id "${id}".`);
|
|
3363
|
+
if (!(0, __stryke_type_checks_is_set_string.isSetString)(id)) throw new Error(`The infrastructure id must be a non-empty string. Received: ${String(id)}`);
|
|
3364
|
+
return this.emitSync(code, (0, __stryke_path_append.appendPath)(id, this.infrastructurePath), (0, defu.default)(options, { meta: {
|
|
3365
|
+
type: "infrastructure",
|
|
3366
|
+
id
|
|
3367
|
+
} }));
|
|
3368
|
+
}
|
|
3369
|
+
/**
|
|
3334
3370
|
* Update the context using a new user configuration options
|
|
3335
3371
|
*
|
|
3336
3372
|
* @param userConfig - The new user configuration options.
|
|
@@ -78,7 +78,7 @@ import Diff from "diff-match-patch";
|
|
|
78
78
|
import "unplugin";
|
|
79
79
|
|
|
80
80
|
//#region ../powerlines/package.json
|
|
81
|
-
var version = "0.40.
|
|
81
|
+
var version = "0.40.2";
|
|
82
82
|
|
|
83
83
|
//#endregion
|
|
84
84
|
//#region ../powerlines/src/typescript/ts-morph.ts
|
|
@@ -2946,6 +2946,12 @@ var PowerlinesContext = class PowerlinesContext {
|
|
|
2946
2946
|
return joinPaths$1(this.artifactsPath, "entry");
|
|
2947
2947
|
}
|
|
2948
2948
|
/**
|
|
2949
|
+
* Get the path to the infrastructure modules used by the project
|
|
2950
|
+
*/
|
|
2951
|
+
get infrastructurePath() {
|
|
2952
|
+
return joinPaths$1(this.artifactsPath, "infrastructure");
|
|
2953
|
+
}
|
|
2954
|
+
/**
|
|
2949
2955
|
* Get the path to the data directory for the project
|
|
2950
2956
|
*/
|
|
2951
2957
|
get dataPath() {
|
|
@@ -3152,7 +3158,7 @@ var PowerlinesContext = class PowerlinesContext {
|
|
|
3152
3158
|
if (alias) moduleId = alias.replacement;
|
|
3153
3159
|
} else if (isSetObject(this.config.resolve.alias) && this.config.resolve.alias[id]) moduleId = this.config.resolve.alias[id];
|
|
3154
3160
|
}
|
|
3155
|
-
if (this.fs.isVirtual(moduleId)) {
|
|
3161
|
+
if (this.fs.isVirtual(moduleId) || importer && this.fs.isVirtual(importer)) {
|
|
3156
3162
|
const result = await this.fs.resolve(moduleId, importer, {
|
|
3157
3163
|
conditions: this.config.resolve.conditions,
|
|
3158
3164
|
extensions: this.config.resolve.extensions,
|
|
@@ -3325,6 +3331,36 @@ var PowerlinesContext = class PowerlinesContext {
|
|
|
3325
3331
|
} }));
|
|
3326
3332
|
}
|
|
3327
3333
|
/**
|
|
3334
|
+
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
3335
|
+
*
|
|
3336
|
+
* @param code - The source code of the builtin file
|
|
3337
|
+
* @param id - The unique identifier of the builtin file
|
|
3338
|
+
* @param options - Optional write file options
|
|
3339
|
+
*/
|
|
3340
|
+
async emitInfrastructure(code, id, options = {}) {
|
|
3341
|
+
if (!this.infrastructurePath) throw new Error(`The infrastructure path is not set. Cannot emit infrastructure file with id "${id}".`);
|
|
3342
|
+
if (!isSetString(id)) throw new Error(`The infrastructure id must be a non-empty string. Received: ${String(id)}`);
|
|
3343
|
+
return this.emit(code, appendPath(id, this.infrastructurePath), defu$1(options, { meta: {
|
|
3344
|
+
type: "infrastructure",
|
|
3345
|
+
id
|
|
3346
|
+
} }));
|
|
3347
|
+
}
|
|
3348
|
+
/**
|
|
3349
|
+
* Synchronously resolves an infrastructure virtual file and writes it to the VFS if it does not already exist
|
|
3350
|
+
*
|
|
3351
|
+
* @param code - The source code of the infrastructure file
|
|
3352
|
+
* @param id - The unique identifier of the infrastructure file
|
|
3353
|
+
* @param options - Optional write file options
|
|
3354
|
+
*/
|
|
3355
|
+
emitInfrastructureSync(code, id, options = {}) {
|
|
3356
|
+
if (!this.infrastructurePath) throw new Error(`The infrastructure path is not set. Cannot emit infrastructure file with id "${id}".`);
|
|
3357
|
+
if (!isSetString(id)) throw new Error(`The infrastructure id must be a non-empty string. Received: ${String(id)}`);
|
|
3358
|
+
return this.emitSync(code, appendPath(id, this.infrastructurePath), defu$1(options, { meta: {
|
|
3359
|
+
type: "infrastructure",
|
|
3360
|
+
id
|
|
3361
|
+
} }));
|
|
3362
|
+
}
|
|
3363
|
+
/**
|
|
3328
3364
|
* Update the context using a new user configuration options
|
|
3329
3365
|
*
|
|
3330
3366
|
* @param userConfig - The new user configuration options.
|
|
@@ -4655,4 +4691,4 @@ ${error.stack}` : "Unknown error"}`);
|
|
|
4655
4691
|
|
|
4656
4692
|
//#endregion
|
|
4657
4693
|
export { withExecutor as t };
|
|
4658
|
-
//# sourceMappingURL=base-executor-
|
|
4694
|
+
//# sourceMappingURL=base-executor-DeuSmP_i.mjs.map
|