@powerlines/core 0.4.2 → 0.5.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/dist/lib/utilities/format.cjs +3 -3
- package/dist/lib/utilities/format.mjs +3 -3
- package/dist/lib/utilities/format.mjs.map +1 -1
- package/dist/plugin-base.cjs +1 -1
- package/dist/plugin-base.mjs +1 -1
- package/dist/plugin-base.mjs.map +1 -1
- package/dist/plugin-utils/paths.cjs +4 -2
- package/dist/plugin-utils/paths.d.cts +3 -1
- package/dist/plugin-utils/paths.d.cts.map +1 -1
- package/dist/plugin-utils/paths.d.mts +3 -1
- package/dist/plugin-utils/paths.d.mts.map +1 -1
- package/dist/plugin-utils/paths.mjs +4 -2
- package/dist/plugin-utils/paths.mjs.map +1 -1
- package/dist/types/config.d.cts +13 -15
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +13 -15
- package/dist/types/config.d.mts.map +1 -1
- package/package.json +17 -17
|
@@ -16,7 +16,7 @@ let prettier = require("prettier");
|
|
|
16
16
|
* @returns A promise that resolves to the formatted code string.
|
|
17
17
|
*/
|
|
18
18
|
async function format(context, path, data, force = false) {
|
|
19
|
-
if (!force && ((0, _stryke_path_is_parent_path.isParentPath)(path, (0, _stryke_path_append.appendPath)(context.config.output.
|
|
19
|
+
if (!force && ((0, _stryke_path_is_parent_path.isParentPath)(path, (0, _stryke_path_append.appendPath)(context.config.output.publishPath, context.workspaceConfig.workspaceRoot)) || (0, _stryke_path_is_parent_path.isParentPath)(path, (0, _stryke_path_append.appendPath)(context.config.output.path, context.workspaceConfig.workspaceRoot)))) return data;
|
|
20
20
|
let code = data;
|
|
21
21
|
const resolvedConfig = await (0, prettier.resolveConfig)(path);
|
|
22
22
|
if (resolvedConfig) code = await (0, prettier.format)(data, {
|
|
@@ -33,8 +33,8 @@ async function format(context, path, data, force = false) {
|
|
|
33
33
|
* @returns A promise that resolves when all files have been formatted.
|
|
34
34
|
*/
|
|
35
35
|
async function formatFolder(context, path) {
|
|
36
|
-
if (!(0, _stryke_path_is_parent_path.isParentPath)(path, (0, _stryke_path_append.appendPath)(context.config.output.
|
|
37
|
-
if (!(0, _stryke_path_is_parent_path.isParentPath)(file, (0, _stryke_path_append.appendPath)(context.config.output.
|
|
36
|
+
if (!(0, _stryke_path_is_parent_path.isParentPath)(path, (0, _stryke_path_append.appendPath)(context.config.output.publishPath, context.workspaceConfig.workspaceRoot)) && !(0, _stryke_path_is_parent_path.isParentPath)(path, (0, _stryke_path_append.appendPath)(context.config.output.path, context.workspaceConfig.workspaceRoot))) await Promise.allSettled((await (0, _stryke_fs_list_files.listFiles)(path)).map(async (file) => {
|
|
37
|
+
if (!(0, _stryke_path_is_parent_path.isParentPath)(file, (0, _stryke_path_append.appendPath)(context.config.output.publishPath, context.workspaceConfig.workspaceRoot)) && !(0, _stryke_path_is_parent_path.isParentPath)(file, (0, _stryke_path_append.appendPath)(context.config.output.path, context.workspaceConfig.workspaceRoot))) {
|
|
38
38
|
const data = await context.fs.read(file);
|
|
39
39
|
if (data) {
|
|
40
40
|
const formatted = await format(context, file, data);
|
|
@@ -14,7 +14,7 @@ import { format as format$1, resolveConfig } from "prettier";
|
|
|
14
14
|
* @returns A promise that resolves to the formatted code string.
|
|
15
15
|
*/
|
|
16
16
|
async function format(context, path, data, force = false) {
|
|
17
|
-
if (!force && (isParentPath(path, appendPath(context.config.output.
|
|
17
|
+
if (!force && (isParentPath(path, appendPath(context.config.output.publishPath, context.workspaceConfig.workspaceRoot)) || isParentPath(path, appendPath(context.config.output.path, context.workspaceConfig.workspaceRoot)))) return data;
|
|
18
18
|
let code = data;
|
|
19
19
|
const resolvedConfig = await resolveConfig(path);
|
|
20
20
|
if (resolvedConfig) code = await format$1(data, {
|
|
@@ -31,8 +31,8 @@ async function format(context, path, data, force = false) {
|
|
|
31
31
|
* @returns A promise that resolves when all files have been formatted.
|
|
32
32
|
*/
|
|
33
33
|
async function formatFolder(context, path) {
|
|
34
|
-
if (!isParentPath(path, appendPath(context.config.output.
|
|
35
|
-
if (!isParentPath(file, appendPath(context.config.output.
|
|
34
|
+
if (!isParentPath(path, appendPath(context.config.output.publishPath, context.workspaceConfig.workspaceRoot)) && !isParentPath(path, appendPath(context.config.output.path, context.workspaceConfig.workspaceRoot))) await Promise.allSettled((await listFiles(path)).map(async (file) => {
|
|
35
|
+
if (!isParentPath(file, appendPath(context.config.output.publishPath, context.workspaceConfig.workspaceRoot)) && !isParentPath(file, appendPath(context.config.output.path, context.workspaceConfig.workspaceRoot))) {
|
|
36
36
|
const data = await context.fs.read(file);
|
|
37
37
|
if (data) {
|
|
38
38
|
const formatted = await format(context, file, data);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.mjs","names":["prettier"],"sources":["../../../src/lib/utilities/format.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { listFiles } from \"@stryke/fs/list-files\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { isParentPath } from \"@stryke/path/is-parent-path\";\nimport { format as prettier, resolveConfig } from \"prettier\";\nimport { Context } from \"../../types/context\";\n\n/**\n * Formats code using Prettier based on the file path.\n *\n * @param context - The Powerlines context.\n * @param path - The file path to use for resolving Prettier configuration.\n * @param data - The code string to format.\n * @param force - Whether to force formatting even for output/build paths.\n * @returns A promise that resolves to the formatted code string.\n */\nexport async function format(\n context: Context,\n path: string,\n data: string,\n force = false\n): Promise<string> {\n if (\n !force &&\n (isParentPath(\n path,\n appendPath(\n context.config.output.
|
|
1
|
+
{"version":3,"file":"format.mjs","names":["prettier"],"sources":["../../../src/lib/utilities/format.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { listFiles } from \"@stryke/fs/list-files\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { isParentPath } from \"@stryke/path/is-parent-path\";\nimport { format as prettier, resolveConfig } from \"prettier\";\nimport { Context } from \"../../types/context\";\n\n/**\n * Formats code using Prettier based on the file path.\n *\n * @param context - The Powerlines context.\n * @param path - The file path to use for resolving Prettier configuration.\n * @param data - The code string to format.\n * @param force - Whether to force formatting even for output/build paths.\n * @returns A promise that resolves to the formatted code string.\n */\nexport async function format(\n context: Context,\n path: string,\n data: string,\n force = false\n): Promise<string> {\n if (\n !force &&\n (isParentPath(\n path,\n appendPath(\n context.config.output.publishPath,\n context.workspaceConfig.workspaceRoot\n )\n ) ||\n isParentPath(\n path,\n appendPath(\n context.config.output.path,\n context.workspaceConfig.workspaceRoot\n )\n ))\n ) {\n return data;\n }\n\n let code = data;\n const resolvedConfig = await resolveConfig(path);\n if (resolvedConfig) {\n code = await prettier(data, {\n absolutePath: path,\n ...resolvedConfig\n });\n }\n\n return code;\n}\n\n/**\n * Formats all files in a folder using Prettier based on their file paths.\n *\n * @param context - The Powerlines context.\n * @param path - The folder path containing files to format.\n * @returns A promise that resolves when all files have been formatted.\n */\nexport async function formatFolder(context: Context, path: string) {\n if (\n !isParentPath(\n path,\n appendPath(\n context.config.output.publishPath,\n context.workspaceConfig.workspaceRoot\n )\n ) &&\n !isParentPath(\n path,\n appendPath(\n context.config.output.path,\n context.workspaceConfig.workspaceRoot\n )\n )\n ) {\n await Promise.allSettled(\n (await listFiles(path)).map(async file => {\n if (\n !isParentPath(\n file,\n appendPath(\n context.config.output.publishPath,\n context.workspaceConfig.workspaceRoot\n )\n ) &&\n !isParentPath(\n file,\n appendPath(\n context.config.output.path,\n context.workspaceConfig.workspaceRoot\n )\n )\n ) {\n const data = await context.fs.read(file);\n if (data) {\n const formatted = await format(context, file, data);\n\n return context.fs.write(file, formatted);\n }\n }\n })\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAiCA,eAAsB,OACpB,SACA,MACA,MACA,QAAQ,OACS;AACjB,KACE,CAAC,UACA,aACC,MACA,WACE,QAAQ,OAAO,OAAO,aACtB,QAAQ,gBAAgB,cACzB,CACF,IACC,aACE,MACA,WACE,QAAQ,OAAO,OAAO,MACtB,QAAQ,gBAAgB,cACzB,CACF,EAEH,QAAO;CAGT,IAAI,OAAO;CACX,MAAM,iBAAiB,MAAM,cAAc,KAAK;AAChD,KAAI,eACF,QAAO,MAAMA,SAAS,MAAM;EAC1B,cAAc;EACd,GAAG;EACJ,CAAC;AAGJ,QAAO;;;;;;;;;AAUT,eAAsB,aAAa,SAAkB,MAAc;AACjE,KACE,CAAC,aACC,MACA,WACE,QAAQ,OAAO,OAAO,aACtB,QAAQ,gBAAgB,cACzB,CACF,IACD,CAAC,aACC,MACA,WACE,QAAQ,OAAO,OAAO,MACtB,QAAQ,gBAAgB,cACzB,CACF,CAED,OAAM,QAAQ,YACX,MAAM,UAAU,KAAK,EAAE,IAAI,OAAM,SAAQ;AACxC,MACE,CAAC,aACC,MACA,WACE,QAAQ,OAAO,OAAO,aACtB,QAAQ,gBAAgB,cACzB,CACF,IACD,CAAC,aACC,MACA,WACE,QAAQ,OAAO,OAAO,MACtB,QAAQ,gBAAgB,cACzB,CACF,EACD;GACA,MAAM,OAAO,MAAM,QAAQ,GAAG,KAAK,KAAK;AACxC,OAAI,MAAM;IACR,MAAM,YAAY,MAAM,OAAO,SAAS,MAAM,KAAK;AAEnD,WAAO,QAAQ,GAAG,MAAM,MAAM,UAAU;;;GAG5C,CACH"}
|
package/dist/plugin-base.cjs
CHANGED
|
@@ -60,7 +60,7 @@ const plugin = (options = {}) => {
|
|
|
60
60
|
entry: this.entry.filter((entry) => entry?.file).length > 0 ? Object.fromEntries(this.entry.filter((entry) => entry?.file).map((entry) => [entry.output || (0, _stryke_path_replace.replaceExtension)((0, _stryke_path_replace.replacePath)((0, _stryke_path_replace.replacePath)(entry.file, (0, _stryke_path_join.joinPaths)(this.config.root, "src")), this.entryPath)), entry.file])) : [(0, _stryke_path_join.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.root, "src", "**/*.ts"), (0, _stryke_path_join.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.root, "src", "**/*.tsx")],
|
|
61
61
|
platform: this.config.platform,
|
|
62
62
|
tsconfig: this.tsconfig.tsconfigFilePath,
|
|
63
|
-
outDir: this.config.output.
|
|
63
|
+
outDir: this.config.output.path,
|
|
64
64
|
...this.config.tsdown
|
|
65
65
|
});
|
|
66
66
|
await require_plugin_utils_format_package_json.formatPackageJson(this);
|
package/dist/plugin-base.mjs
CHANGED
|
@@ -58,7 +58,7 @@ const plugin = (options = {}) => {
|
|
|
58
58
|
entry: this.entry.filter((entry) => entry?.file).length > 0 ? Object.fromEntries(this.entry.filter((entry) => entry?.file).map((entry) => [entry.output || replaceExtension(replacePath(replacePath(entry.file, joinPaths(this.config.root, "src")), this.entryPath)), entry.file])) : [joinPaths(this.workspaceConfig.workspaceRoot, this.config.root, "src", "**/*.ts"), joinPaths(this.workspaceConfig.workspaceRoot, this.config.root, "src", "**/*.tsx")],
|
|
59
59
|
platform: this.config.platform,
|
|
60
60
|
tsconfig: this.tsconfig.tsconfigFilePath,
|
|
61
|
-
outDir: this.config.output.
|
|
61
|
+
outDir: this.config.output.path,
|
|
62
62
|
...this.config.tsdown
|
|
63
63
|
});
|
|
64
64
|
await formatPackageJson(this);
|
package/dist/plugin-base.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-base.mjs","names":[],"sources":["../src/plugin-base.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { build, UserConfig as BuildOptions } from \"tsdown\";\nimport { formatPackageJson } from \"./plugin-utils/format-package-json\";\nimport { ResolvedConfig, UserConfig } from \"./types/config\";\nimport { PluginContext } from \"./types/context\";\nimport { Plugin } from \"./types/plugin\";\n\nexport interface BasePluginOptions {\n tsdown?: Partial<BuildOptions>;\n}\n\nexport type BasePluginUserConfig = UserConfig & {\n tsdown: BasePluginOptions;\n};\n\nexport type BasePluginResolvedConfig = ResolvedConfig & {\n tsdown: Required<BasePluginOptions>;\n};\n\nexport type BasePluginContext<\n TResolvedConfig extends BasePluginResolvedConfig = BasePluginResolvedConfig\n> = PluginContext<TResolvedConfig>;\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <TContext extends BasePluginContext = BasePluginContext>(\n options: BasePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"base\",\n config() {\n return {\n projectType: \"library\",\n input: [\"src/index.ts\", \"src/types/*.ts\", \"src/helpers/*.ts\"],\n output: {\n format: [\"cjs\", \"esm\"],\n dts: false\n },\n platform: \"node\",\n tsdown: {\n format: [\"cjs\", \"esm\"],\n logLevel: \"silent\",\n target: \"node22\",\n cjsDefault: true,\n treeshake: true,\n exports: true,\n fixedExtension: true,\n nodeProtocol: true,\n minify: false,\n dts: true,\n shims: true,\n outDir: \"dist\",\n clean: true,\n deps: {\n neverBundle: [\"powerlines\", /^powerlines\\/.*$/, /^@powerlines\\//],\n skipNodeModulesBundle: true\n },\n unbundle: true,\n ...options.tsdown\n }\n };\n },\n async build() {\n await build({\n name: this.config.name,\n cwd: appendPath(this.config.root, this.workspaceConfig.workspaceRoot),\n entry:\n this.entry.filter(entry => entry?.file).length > 0\n ? Object.fromEntries(\n this.entry\n .filter(entry => entry?.file)\n .map(entry => [\n entry.output ||\n replaceExtension(\n replacePath(\n replacePath(\n entry.file,\n joinPaths(this.config.root, \"src\")\n ),\n this.entryPath\n )\n ),\n entry.file\n ])\n )\n : [\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.root,\n \"src\",\n \"**/*.ts\"\n ),\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.root,\n \"src\",\n \"**/*.tsx\"\n )\n ],\n platform: this.config.platform,\n tsconfig: this.tsconfig.tsconfigFilePath,\n outDir: this.config.output.
|
|
1
|
+
{"version":3,"file":"plugin-base.mjs","names":[],"sources":["../src/plugin-base.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { build, UserConfig as BuildOptions } from \"tsdown\";\nimport { formatPackageJson } from \"./plugin-utils/format-package-json\";\nimport { ResolvedConfig, UserConfig } from \"./types/config\";\nimport { PluginContext } from \"./types/context\";\nimport { Plugin } from \"./types/plugin\";\n\nexport interface BasePluginOptions {\n tsdown?: Partial<BuildOptions>;\n}\n\nexport type BasePluginUserConfig = UserConfig & {\n tsdown: BasePluginOptions;\n};\n\nexport type BasePluginResolvedConfig = ResolvedConfig & {\n tsdown: Required<BasePluginOptions>;\n};\n\nexport type BasePluginContext<\n TResolvedConfig extends BasePluginResolvedConfig = BasePluginResolvedConfig\n> = PluginContext<TResolvedConfig>;\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <TContext extends BasePluginContext = BasePluginContext>(\n options: BasePluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"base\",\n config() {\n return {\n projectType: \"library\",\n input: [\"src/index.ts\", \"src/types/*.ts\", \"src/helpers/*.ts\"],\n output: {\n format: [\"cjs\", \"esm\"],\n dts: false\n },\n platform: \"node\",\n tsdown: {\n format: [\"cjs\", \"esm\"],\n logLevel: \"silent\",\n target: \"node22\",\n cjsDefault: true,\n treeshake: true,\n exports: true,\n fixedExtension: true,\n nodeProtocol: true,\n minify: false,\n dts: true,\n shims: true,\n outDir: \"dist\",\n clean: true,\n deps: {\n neverBundle: [\"powerlines\", /^powerlines\\/.*$/, /^@powerlines\\//],\n skipNodeModulesBundle: true\n },\n unbundle: true,\n ...options.tsdown\n }\n };\n },\n async build() {\n await build({\n name: this.config.name,\n cwd: appendPath(this.config.root, this.workspaceConfig.workspaceRoot),\n entry:\n this.entry.filter(entry => entry?.file).length > 0\n ? Object.fromEntries(\n this.entry\n .filter(entry => entry?.file)\n .map(entry => [\n entry.output ||\n replaceExtension(\n replacePath(\n replacePath(\n entry.file,\n joinPaths(this.config.root, \"src\")\n ),\n this.entryPath\n )\n ),\n entry.file\n ])\n )\n : [\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.root,\n \"src\",\n \"**/*.ts\"\n ),\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.root,\n \"src\",\n \"**/*.tsx\"\n )\n ],\n platform: this.config.platform,\n tsconfig: this.tsconfig.tsconfigFilePath,\n outDir: this.config.output.path,\n ...this.config.tsdown\n });\n\n await formatPackageJson(this);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;AA8CA,MAAa,UACX,UAA6B,EAAE,KACV;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,aAAa;IACb,OAAO;KAAC;KAAgB;KAAkB;KAAmB;IAC7D,QAAQ;KACN,QAAQ,CAAC,OAAO,MAAM;KACtB,KAAK;KACN;IACD,UAAU;IACV,QAAQ;KACN,QAAQ,CAAC,OAAO,MAAM;KACtB,UAAU;KACV,QAAQ;KACR,YAAY;KACZ,WAAW;KACX,SAAS;KACT,gBAAgB;KAChB,cAAc;KACd,QAAQ;KACR,KAAK;KACL,OAAO;KACP,QAAQ;KACR,OAAO;KACP,MAAM;MACJ,aAAa;OAAC;OAAc;OAAoB;OAAiB;MACjE,uBAAuB;MACxB;KACD,UAAU;KACV,GAAG,QAAQ;KACZ;IACF;;EAEH,MAAM,QAAQ;AACZ,SAAM,MAAM;IACV,MAAM,KAAK,OAAO;IAClB,KAAK,WAAW,KAAK,OAAO,MAAM,KAAK,gBAAgB,cAAc;IACrE,OACE,KAAK,MAAM,QAAO,UAAS,OAAO,KAAK,CAAC,SAAS,IAC7C,OAAO,YACL,KAAK,MACF,QAAO,UAAS,OAAO,KAAK,CAC5B,KAAI,UAAS,CACZ,MAAM,UACJ,iBACE,YACE,YACE,MAAM,MACN,UAAU,KAAK,OAAO,MAAM,MAAM,CACnC,EACD,KAAK,UACN,CACF,EACH,MAAM,KACP,CAAC,CACL,GACD,CACE,UACE,KAAK,gBAAgB,eACrB,KAAK,OAAO,MACZ,OACA,UACD,EACD,UACE,KAAK,gBAAgB,eACrB,KAAK,OAAO,MACZ,OACA,WACD,CACF;IACP,UAAU,KAAK,OAAO;IACtB,UAAU,KAAK,SAAS;IACxB,QAAQ,KAAK,OAAO,OAAO;IAC3B,GAAG,KAAK,OAAO;IAChB,CAAC;AAEF,SAAM,kBAAkB,KAAK;;EAEhC"}
|
|
@@ -19,8 +19,10 @@ let _stryke_path_join = require("@stryke/path/join");
|
|
|
19
19
|
* - `{logPath}` - The environment's directory for log files.
|
|
20
20
|
* - `{tempPath}` - The environment's directory for temporary files.
|
|
21
21
|
* - `{configPath}` - The environment's directory for configuration files.
|
|
22
|
+
* - `{output}` - The configured output directory for the project.
|
|
22
23
|
* - `{outputPath}` - The configured output directory for the project.
|
|
23
|
-
* - `{
|
|
24
|
+
* - `{publish}` - The configured final/copied distribution directory for the project.
|
|
25
|
+
* - `{publishPath}` - The configured final/copied distribution directory for the project.
|
|
24
26
|
* - `{artifactsPath}` - The configured directory for build artifacts.
|
|
25
27
|
* - `{builtinPath}` - The configured directory for generated built-in plugins.
|
|
26
28
|
* - `{entryPath}` - The configured directory for generated entry files.
|
|
@@ -31,7 +33,7 @@ let _stryke_path_join = require("@stryke/path/join");
|
|
|
31
33
|
*/
|
|
32
34
|
function replacePathTokens(context, path) {
|
|
33
35
|
if (!path) return path;
|
|
34
|
-
return path.replaceAll("{workspaceRoot}", context.workspaceConfig.workspaceRoot).replaceAll("{root}", context.config.root).replaceAll("{projectRoot}", context.config.root).replaceAll("{sourceRoot}", (0, _stryke_path_join.joinPaths)(context.config.root, "src")).replaceAll("{powerlinesPath}", context.powerlinesPath).replaceAll("{cachePath}", context.cachePath).replaceAll("{dataPath}", context.dataPath).replaceAll("{logPath}", context.envPaths.log).replaceAll("{tempPath}", context.envPaths.temp).replaceAll("{configPath}", context.envPaths.config).replaceAll("{outputPath}", context.config.output.
|
|
36
|
+
return path.replaceAll("{workspaceRoot}", context.workspaceConfig.workspaceRoot).replaceAll("{root}", context.config.root).replaceAll("{projectRoot}", context.config.root).replaceAll("{sourceRoot}", (0, _stryke_path_join.joinPaths)(context.config.root, "src")).replaceAll("{powerlinesPath}", context.powerlinesPath).replaceAll("{cachePath}", context.cachePath).replaceAll("{dataPath}", context.dataPath).replaceAll("{logPath}", context.envPaths.log).replaceAll("{tempPath}", context.envPaths.temp).replaceAll("{configPath}", context.envPaths.config).replaceAll("{outputPath}", context.config.output.path).replaceAll("{output}", context.config.output.path).replaceAll("{publishPath}", context.config.output.publishPath).replaceAll("{publish}", context.config.output.publishPath).replaceAll("{artifactsPath}", (0, _stryke_path_replace.replacePath)(context.artifactsPath, context.workspaceConfig.workspaceRoot)).replaceAll("{builtinPath}", (0, _stryke_path_replace.replacePath)(context.builtinsPath, context.workspaceConfig.workspaceRoot)).replaceAll("{entryPath}", (0, _stryke_path_replace.replacePath)(context.entryPath, context.workspaceConfig.workspaceRoot));
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
//#endregion
|
|
@@ -17,8 +17,10 @@ import { IsUndefined } from "@stryke/types/base";
|
|
|
17
17
|
* - `{logPath}` - The environment's directory for log files.
|
|
18
18
|
* - `{tempPath}` - The environment's directory for temporary files.
|
|
19
19
|
* - `{configPath}` - The environment's directory for configuration files.
|
|
20
|
+
* - `{output}` - The configured output directory for the project.
|
|
20
21
|
* - `{outputPath}` - The configured output directory for the project.
|
|
21
|
-
* - `{
|
|
22
|
+
* - `{publish}` - The configured final/copied distribution directory for the project.
|
|
23
|
+
* - `{publishPath}` - The configured final/copied distribution directory for the project.
|
|
22
24
|
* - `{artifactsPath}` - The configured directory for build artifacts.
|
|
23
25
|
* - `{builtinPath}` - The configured directory for generated built-in plugins.
|
|
24
26
|
* - `{entryPath}` - The configured directory for generated entry files.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.cts","names":[],"sources":["../../src/plugin-utils/paths.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"paths.d.cts","names":[],"sources":["../../src/plugin-utils/paths.ts"],"mappings":";;;;;;AAkDA;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,iBAAA,CACd,OAAA,EAAS,iBAAA,EACT,IAAA,YACC,WAAA,QAAmB,IAAA"}
|
|
@@ -17,8 +17,10 @@ import { IsUndefined } from "@stryke/types/base";
|
|
|
17
17
|
* - `{logPath}` - The environment's directory for log files.
|
|
18
18
|
* - `{tempPath}` - The environment's directory for temporary files.
|
|
19
19
|
* - `{configPath}` - The environment's directory for configuration files.
|
|
20
|
+
* - `{output}` - The configured output directory for the project.
|
|
20
21
|
* - `{outputPath}` - The configured output directory for the project.
|
|
21
|
-
* - `{
|
|
22
|
+
* - `{publish}` - The configured final/copied distribution directory for the project.
|
|
23
|
+
* - `{publishPath}` - The configured final/copied distribution directory for the project.
|
|
22
24
|
* - `{artifactsPath}` - The configured directory for build artifacts.
|
|
23
25
|
* - `{builtinPath}` - The configured directory for generated built-in plugins.
|
|
24
26
|
* - `{entryPath}` - The configured directory for generated entry files.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.mts","names":[],"sources":["../../src/plugin-utils/paths.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"paths.d.mts","names":[],"sources":["../../src/plugin-utils/paths.ts"],"mappings":";;;;;;AAkDA;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,iBAAA,CACd,OAAA,EAAS,iBAAA,EACT,IAAA,YACC,WAAA,QAAmB,IAAA"}
|
|
@@ -17,8 +17,10 @@ import { joinPaths } from "@stryke/path/join";
|
|
|
17
17
|
* - `{logPath}` - The environment's directory for log files.
|
|
18
18
|
* - `{tempPath}` - The environment's directory for temporary files.
|
|
19
19
|
* - `{configPath}` - The environment's directory for configuration files.
|
|
20
|
+
* - `{output}` - The configured output directory for the project.
|
|
20
21
|
* - `{outputPath}` - The configured output directory for the project.
|
|
21
|
-
* - `{
|
|
22
|
+
* - `{publish}` - The configured final/copied distribution directory for the project.
|
|
23
|
+
* - `{publishPath}` - The configured final/copied distribution directory for the project.
|
|
22
24
|
* - `{artifactsPath}` - The configured directory for build artifacts.
|
|
23
25
|
* - `{builtinPath}` - The configured directory for generated built-in plugins.
|
|
24
26
|
* - `{entryPath}` - The configured directory for generated entry files.
|
|
@@ -29,7 +31,7 @@ import { joinPaths } from "@stryke/path/join";
|
|
|
29
31
|
*/
|
|
30
32
|
function replacePathTokens(context, path) {
|
|
31
33
|
if (!path) return path;
|
|
32
|
-
return path.replaceAll("{workspaceRoot}", context.workspaceConfig.workspaceRoot).replaceAll("{root}", context.config.root).replaceAll("{projectRoot}", context.config.root).replaceAll("{sourceRoot}", joinPaths(context.config.root, "src")).replaceAll("{powerlinesPath}", context.powerlinesPath).replaceAll("{cachePath}", context.cachePath).replaceAll("{dataPath}", context.dataPath).replaceAll("{logPath}", context.envPaths.log).replaceAll("{tempPath}", context.envPaths.temp).replaceAll("{configPath}", context.envPaths.config).replaceAll("{outputPath}", context.config.output.
|
|
34
|
+
return path.replaceAll("{workspaceRoot}", context.workspaceConfig.workspaceRoot).replaceAll("{root}", context.config.root).replaceAll("{projectRoot}", context.config.root).replaceAll("{sourceRoot}", joinPaths(context.config.root, "src")).replaceAll("{powerlinesPath}", context.powerlinesPath).replaceAll("{cachePath}", context.cachePath).replaceAll("{dataPath}", context.dataPath).replaceAll("{logPath}", context.envPaths.log).replaceAll("{tempPath}", context.envPaths.temp).replaceAll("{configPath}", context.envPaths.config).replaceAll("{outputPath}", context.config.output.path).replaceAll("{output}", context.config.output.path).replaceAll("{publishPath}", context.config.output.publishPath).replaceAll("{publish}", context.config.output.publishPath).replaceAll("{artifactsPath}", replacePath(context.artifactsPath, context.workspaceConfig.workspaceRoot)).replaceAll("{builtinPath}", replacePath(context.builtinsPath, context.workspaceConfig.workspaceRoot)).replaceAll("{entryPath}", replacePath(context.entryPath, context.workspaceConfig.workspaceRoot));
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.mjs","names":[],"sources":["../../src/plugin-utils/paths.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { IsUndefined } from \"@stryke/types/base\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Replaces tokens in the given path string with their corresponding values from the context.\n *\n * @remarks\n * The following tokens are supported:\n * - `{workspaceRoot}` - The root directory of the workspace.\n * - `{root}` - The root directory of the project (same as `{projectRoot}`).\n * - `{projectRoot}` - The root directory of the project (same as `{root}`).\n * - `{sourceRoot}` - The source root directory of the project (usually `./src`).\n * - `{powerlinesPath}` - The directory where Powerlines is installed.\n * - `{cachePath}` - The environment's directory for cached files.\n * - `{dataPath}` - The environment's directory for data files.\n * - `{logPath}` - The environment's directory for log files.\n * - `{tempPath}` - The environment's directory for temporary files.\n * - `{configPath}` - The environment's directory for configuration files.\n * - `{outputPath}` - The configured output directory for the project.\n * - `{
|
|
1
|
+
{"version":3,"file":"paths.mjs","names":[],"sources":["../../src/plugin-utils/paths.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { IsUndefined } from \"@stryke/types/base\";\nimport { UnresolvedContext } from \"../types/context\";\n\n/**\n * Replaces tokens in the given path string with their corresponding values from the context.\n *\n * @remarks\n * The following tokens are supported:\n * - `{workspaceRoot}` - The root directory of the workspace.\n * - `{root}` - The root directory of the project (same as `{projectRoot}`).\n * - `{projectRoot}` - The root directory of the project (same as `{root}`).\n * - `{sourceRoot}` - The source root directory of the project (usually `./src`).\n * - `{powerlinesPath}` - The directory where Powerlines is installed.\n * - `{cachePath}` - The environment's directory for cached files.\n * - `{dataPath}` - The environment's directory for data files.\n * - `{logPath}` - The environment's directory for log files.\n * - `{tempPath}` - The environment's directory for temporary files.\n * - `{configPath}` - The environment's directory for configuration files.\n * - `{output}` - The configured output directory for the project.\n * - `{outputPath}` - The configured output directory for the project.\n * - `{publish}` - The configured final/copied distribution directory for the project.\n * - `{publishPath}` - The configured final/copied distribution directory for the project.\n * - `{artifactsPath}` - The configured directory for build artifacts.\n * - `{builtinPath}` - The configured directory for generated built-in plugins.\n * - `{entryPath}` - The configured directory for generated entry files.\n *\n * @param context - The context containing the values for the path tokens.\n * @param path - The path string with tokens to replace.\n * @returns The path string with tokens replaced by their corresponding values from the context.\n */\nexport function replacePathTokens(\n context: UnresolvedContext,\n path?: string\n): IsUndefined<typeof path> extends true ? undefined : string {\n if (!path) {\n return path as IsUndefined<typeof path> extends true ? undefined : string;\n }\n\n return path\n .replaceAll(\"{workspaceRoot}\", context.workspaceConfig.workspaceRoot)\n .replaceAll(\"{root}\", context.config.root)\n .replaceAll(\"{projectRoot}\", context.config.root)\n .replaceAll(\"{sourceRoot}\", joinPaths(context.config.root, \"src\"))\n .replaceAll(\"{powerlinesPath}\", context.powerlinesPath)\n .replaceAll(\"{cachePath}\", context.cachePath)\n .replaceAll(\"{dataPath}\", context.dataPath)\n .replaceAll(\"{logPath}\", context.envPaths.log)\n .replaceAll(\"{tempPath}\", context.envPaths.temp)\n .replaceAll(\"{configPath}\", context.envPaths.config)\n .replaceAll(\"{outputPath}\", context.config.output.path)\n .replaceAll(\"{output}\", context.config.output.path)\n .replaceAll(\"{publishPath}\", context.config.output.publishPath)\n .replaceAll(\"{publish}\", context.config.output.publishPath)\n .replaceAll(\n \"{artifactsPath}\",\n replacePath(context.artifactsPath, context.workspaceConfig.workspaceRoot)\n )\n .replaceAll(\n \"{builtinPath}\",\n replacePath(context.builtinsPath, context.workspaceConfig.workspaceRoot)\n )\n .replaceAll(\n \"{entryPath}\",\n replacePath(context.entryPath, context.workspaceConfig.workspaceRoot)\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,SAAgB,kBACd,SACA,MAC4D;AAC5D,KAAI,CAAC,KACH,QAAO;AAGT,QAAO,KACJ,WAAW,mBAAmB,QAAQ,gBAAgB,cAAc,CACpE,WAAW,UAAU,QAAQ,OAAO,KAAK,CACzC,WAAW,iBAAiB,QAAQ,OAAO,KAAK,CAChD,WAAW,gBAAgB,UAAU,QAAQ,OAAO,MAAM,MAAM,CAAC,CACjE,WAAW,oBAAoB,QAAQ,eAAe,CACtD,WAAW,eAAe,QAAQ,UAAU,CAC5C,WAAW,cAAc,QAAQ,SAAS,CAC1C,WAAW,aAAa,QAAQ,SAAS,IAAI,CAC7C,WAAW,cAAc,QAAQ,SAAS,KAAK,CAC/C,WAAW,gBAAgB,QAAQ,SAAS,OAAO,CACnD,WAAW,gBAAgB,QAAQ,OAAO,OAAO,KAAK,CACtD,WAAW,YAAY,QAAQ,OAAO,OAAO,KAAK,CAClD,WAAW,iBAAiB,QAAQ,OAAO,OAAO,YAAY,CAC9D,WAAW,aAAa,QAAQ,OAAO,OAAO,YAAY,CAC1D,WACC,mBACA,YAAY,QAAQ,eAAe,QAAQ,gBAAgB,cAAc,CAC1E,CACA,WACC,iBACA,YAAY,QAAQ,cAAc,QAAQ,gBAAgB,cAAc,CACzE,CACA,WACC,eACA,YAAY,QAAQ,WAAW,QAAQ,gBAAgB,cAAc,CACtE"}
|
package/dist/types/config.d.cts
CHANGED
|
@@ -131,32 +131,30 @@ interface ResolveConfig {
|
|
|
131
131
|
}
|
|
132
132
|
interface OutputConfig {
|
|
133
133
|
/**
|
|
134
|
-
* The path
|
|
134
|
+
* The output directory path for the project build.
|
|
135
135
|
*
|
|
136
136
|
* @remarks
|
|
137
137
|
* If a value is not provided, Powerlines will attempt to:
|
|
138
138
|
* 1. Use the `outDir` value in the `tsconfig.json` file.
|
|
139
139
|
* 2. Use the `dist` directory in the project root directory.
|
|
140
140
|
*
|
|
141
|
-
* @defaultValue "
|
|
141
|
+
* @defaultValue "\{root\}/dist"
|
|
142
142
|
*/
|
|
143
|
-
|
|
143
|
+
path?: string;
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
145
|
+
* An optional path to a secondary/copied output directory for collecting distributable files prior to publishing/deployment.
|
|
146
146
|
*
|
|
147
147
|
* @remarks
|
|
148
|
-
* This
|
|
149
|
-
*
|
|
150
|
-
* @defaultValue "\{projectRoot\}/dist"
|
|
148
|
+
* This option is useful when a separate directory is needed for collecting distributable files that are copied from the project, such as static assets or other non-code files. When using [Nx monorepo tools](https://nx.dev/), it is common for the {@link OutputConfig.path | project's output} to be copied to the `{workspaceRoot}/dist/{root}` directory, so that all of the monorepo's output is consolidated in a single location.
|
|
151
149
|
*/
|
|
152
|
-
|
|
150
|
+
publishPath?: string;
|
|
153
151
|
/**
|
|
154
152
|
* The folder where the generated runtime artifacts will be located
|
|
155
153
|
*
|
|
156
154
|
* @remarks
|
|
157
155
|
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
158
156
|
*
|
|
159
|
-
* @defaultValue "\{
|
|
157
|
+
* @defaultValue "\{root\}/.powerlines"
|
|
160
158
|
*/
|
|
161
159
|
artifactsPath?: string;
|
|
162
160
|
/**
|
|
@@ -164,12 +162,12 @@ interface OutputConfig {
|
|
|
164
162
|
*/
|
|
165
163
|
dts?: boolean;
|
|
166
164
|
/**
|
|
167
|
-
* The path of the generated runtime declaration file relative to the workspace root.
|
|
165
|
+
* The path of the generated runtime types declaration file relative to the workspace root.
|
|
168
166
|
*
|
|
169
167
|
* @remarks
|
|
170
|
-
* This value will be set to true automatically when {@link OutputConfig.dts | dts} is set to true
|
|
168
|
+
* This value will be set to `true` automatically when {@link OutputConfig.dts | dts} is set to `true`.
|
|
171
169
|
*
|
|
172
|
-
* @defaultValue "\{
|
|
170
|
+
* @defaultValue "\{root\}/powerlines.d.ts"
|
|
173
171
|
*/
|
|
174
172
|
typegen?: string | false;
|
|
175
173
|
/**
|
|
@@ -376,7 +374,7 @@ interface UserConfig extends Config {
|
|
|
376
374
|
*/
|
|
377
375
|
projectType?: ProjectType;
|
|
378
376
|
/**
|
|
379
|
-
* A path to a custom configuration file to be used instead of the default `
|
|
377
|
+
* A path to a custom configuration file to be used instead of the default `powerlines.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
|
|
380
378
|
*
|
|
381
379
|
* @remarks
|
|
382
380
|
* This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
|
|
@@ -549,9 +547,9 @@ type ResolveResolvedConfig = Required<Omit<ResolveConfig, "external" | "noExtern
|
|
|
549
547
|
noExternal?: string[];
|
|
550
548
|
};
|
|
551
549
|
type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
|
|
552
|
-
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
|
|
550
|
+
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage">> & Pick<OutputConfig, "storage"> & {
|
|
553
551
|
assets: ResolvedAssetGlob[];
|
|
554
|
-
}
|
|
552
|
+
};
|
|
555
553
|
/**
|
|
556
554
|
* The resolved options for the Powerlines project configuration.
|
|
557
555
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.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1D,OAAA,GAAU,sBAAA;AAAA;;AAxDd;;KA8DY,qBAAA,GAAwB,QAAA,CAClC,IAAA,CAAK,aAAA;EA/D4C;;;;;;EAuEjD,QAAA;EAvEiD;;;EA4EjD,UAAA;AAAA;AAAA,KAGU,iBAAA,GAAoB,SAAA,GAAY,QAAA,CAAS,IAAA,CAAK,SAAA;AAAA,KAE9C,oBAAA,GAAuB,QAAA,CACjC,IAAA,CAAK,YAAA,2BAEL,IAAA,CAAK,YAAA;EACH,MAAA,EAAQ,iBAAA;AAAA;;;;KAMA,gBAAA,qBAAmC,UAAA,GAAa,UAAA,IAAc,IAAA,CACxE,WAAA,kNAkBA,QAAA,CACE,IAAA,CACE,WAAA;EA7FmB;;;EAgHrB,MAAA,EAAQ,oBAAA;EAhHgB;;;EAqHxB,OAAA,EAAS,qBAAA;EA5GD;;;;;;;;;;EAwHR,iBAAA,EAAmB,kBAAA;EAxHX;;;EA6HR,YAAA,EAAc,YAAA,CAAa,WAAA;EA5HrB;AAEV;;EA+HI,UAAA,EAAY,WAAA;EA/HmD;;;EAoI/D,OAAA,EAAS,YAAA,CAAa,YAAA,CAAa,WAAA;EA3HrC;;;AAGF;;EA+HI,QAAA,EAAU,QAAA;AAAA;AAAA"}
|
package/dist/types/config.d.mts
CHANGED
|
@@ -131,32 +131,30 @@ interface ResolveConfig {
|
|
|
131
131
|
}
|
|
132
132
|
interface OutputConfig {
|
|
133
133
|
/**
|
|
134
|
-
* The path
|
|
134
|
+
* The output directory path for the project build.
|
|
135
135
|
*
|
|
136
136
|
* @remarks
|
|
137
137
|
* If a value is not provided, Powerlines will attempt to:
|
|
138
138
|
* 1. Use the `outDir` value in the `tsconfig.json` file.
|
|
139
139
|
* 2. Use the `dist` directory in the project root directory.
|
|
140
140
|
*
|
|
141
|
-
* @defaultValue "
|
|
141
|
+
* @defaultValue "\{root\}/dist"
|
|
142
142
|
*/
|
|
143
|
-
|
|
143
|
+
path?: string;
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
145
|
+
* An optional path to a secondary/copied output directory for collecting distributable files prior to publishing/deployment.
|
|
146
146
|
*
|
|
147
147
|
* @remarks
|
|
148
|
-
* This
|
|
149
|
-
*
|
|
150
|
-
* @defaultValue "\{projectRoot\}/dist"
|
|
148
|
+
* This option is useful when a separate directory is needed for collecting distributable files that are copied from the project, such as static assets or other non-code files. When using [Nx monorepo tools](https://nx.dev/), it is common for the {@link OutputConfig.path | project's output} to be copied to the `{workspaceRoot}/dist/{root}` directory, so that all of the monorepo's output is consolidated in a single location.
|
|
151
149
|
*/
|
|
152
|
-
|
|
150
|
+
publishPath?: string;
|
|
153
151
|
/**
|
|
154
152
|
* The folder where the generated runtime artifacts will be located
|
|
155
153
|
*
|
|
156
154
|
* @remarks
|
|
157
155
|
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
158
156
|
*
|
|
159
|
-
* @defaultValue "\{
|
|
157
|
+
* @defaultValue "\{root\}/.powerlines"
|
|
160
158
|
*/
|
|
161
159
|
artifactsPath?: string;
|
|
162
160
|
/**
|
|
@@ -164,12 +162,12 @@ interface OutputConfig {
|
|
|
164
162
|
*/
|
|
165
163
|
dts?: boolean;
|
|
166
164
|
/**
|
|
167
|
-
* The path of the generated runtime declaration file relative to the workspace root.
|
|
165
|
+
* The path of the generated runtime types declaration file relative to the workspace root.
|
|
168
166
|
*
|
|
169
167
|
* @remarks
|
|
170
|
-
* This value will be set to true automatically when {@link OutputConfig.dts | dts} is set to true
|
|
168
|
+
* This value will be set to `true` automatically when {@link OutputConfig.dts | dts} is set to `true`.
|
|
171
169
|
*
|
|
172
|
-
* @defaultValue "\{
|
|
170
|
+
* @defaultValue "\{root\}/powerlines.d.ts"
|
|
173
171
|
*/
|
|
174
172
|
typegen?: string | false;
|
|
175
173
|
/**
|
|
@@ -376,7 +374,7 @@ interface UserConfig extends Config {
|
|
|
376
374
|
*/
|
|
377
375
|
projectType?: ProjectType;
|
|
378
376
|
/**
|
|
379
|
-
* A path to a custom configuration file to be used instead of the default `
|
|
377
|
+
* A path to a custom configuration file to be used instead of the default `powerlines.json`, `powerlines.config.js`, or `powerlines.config.ts` files.
|
|
380
378
|
*
|
|
381
379
|
* @remarks
|
|
382
380
|
* This option is useful for running Powerlines commands with different configuration files, such as in CI/CD environments or when testing different configurations.
|
|
@@ -549,9 +547,9 @@ type ResolveResolvedConfig = Required<Omit<ResolveConfig, "external" | "noExtern
|
|
|
549
547
|
noExternal?: string[];
|
|
550
548
|
};
|
|
551
549
|
type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
|
|
552
|
-
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
|
|
550
|
+
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage">> & Pick<OutputConfig, "storage"> & {
|
|
553
551
|
assets: ResolvedAssetGlob[];
|
|
554
|
-
}
|
|
552
|
+
};
|
|
555
553
|
/**
|
|
556
554
|
* The resolved options for the Powerlines project configuration.
|
|
557
555
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","names":[],"sources":["../../src/types/config.ts"],"mappings":";;;;;;;;;;;;;;;KA4CY,QAAA;AAAA,KAEA,KAAA,IAAS,IAAA,EAAM,aAAA,KAAkB,IAAA;AAF7C;;;AAAA,KAOY,eAAA,GAAkB,OAAA,CAAQ,oBAAA,IACpC,QAAA,CAAS,IAAA,CAAK,oBAAA;AAAA,KAEJ,aAAA,yBACc,aAAA,GAAgB,aAAA,qBAErC,OAAA,EAAS,QAAA,KAAa,YAAA,CAAa,MAAA,CAAO,QAAA,IAAY,MAAA,CAAO,QAAA;AAXlE;;;AAAA,KAgBY,iBAAA,kBACO,aAAA,GAAgB,aAAA,8BAErB,aAAA,CAAc,QAAA,EAAU,QAAA,GAAW,QAAA,KAAa,MAAA,CAAO,QAAA;;;;KAKzD,kBAAA,kBACO,aAAA,GAAgB,aAAA;EAI7B,MAAA,WAAiB,aAAA,CAAc,QAAA,EAAU,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;EAxHX;;;EA6HR,YAAA,EAAc,YAAA,CAAa,WAAA;EA5HrB;AAEV;;EA+HI,UAAA,EAAY,WAAA;EA/HmD;;;EAoI/D,OAAA,EAAS,YAAA,CAAa,YAAA,CAAa,WAAA;EA3HrC;;;AAGF;;EA+HI,QAAA,EAAU,QAAA;AAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "An internal core package for Powerlines - please use the `powerlines` package for public usage.",
|
|
6
6
|
"homepage": "https://stormsoftware.com",
|
|
@@ -493,18 +493,18 @@
|
|
|
493
493
|
"types": "./dist/index.d.cts",
|
|
494
494
|
"files": ["dist/**/*", "files/**/*", "schemas/**/*"],
|
|
495
495
|
"dependencies": {
|
|
496
|
-
"@storm-software/config": "^1.135.
|
|
497
|
-
"@storm-software/config-tools": "^1.189.
|
|
498
|
-
"@stryke/convert": "^0.6.
|
|
499
|
-
"@stryke/env": "^0.20.
|
|
500
|
-
"@stryke/fs": "^0.33.
|
|
501
|
-
"@stryke/hash": "^0.13.
|
|
502
|
-
"@stryke/helpers": "^0.10.
|
|
503
|
-
"@stryke/json": "^0.14.
|
|
504
|
-
"@stryke/path": "^0.27.
|
|
505
|
-
"@stryke/string-format": "^0.17.
|
|
506
|
-
"@stryke/type-checks": "^0.5.
|
|
507
|
-
"@stryke/unique-id": "^0.3.
|
|
496
|
+
"@storm-software/config": "^1.135.40",
|
|
497
|
+
"@storm-software/config-tools": "^1.189.39",
|
|
498
|
+
"@stryke/convert": "^0.6.56",
|
|
499
|
+
"@stryke/env": "^0.20.80",
|
|
500
|
+
"@stryke/fs": "^0.33.63",
|
|
501
|
+
"@stryke/hash": "^0.13.16",
|
|
502
|
+
"@stryke/helpers": "^0.10.6",
|
|
503
|
+
"@stryke/json": "^0.14.10",
|
|
504
|
+
"@stryke/path": "^0.27.2",
|
|
505
|
+
"@stryke/string-format": "^0.17.6",
|
|
506
|
+
"@stryke/type-checks": "^0.5.41",
|
|
507
|
+
"@stryke/unique-id": "^0.3.74",
|
|
508
508
|
"c12": "^3.3.3",
|
|
509
509
|
"chalk": "5.6.2",
|
|
510
510
|
"compatx": "^0.2.0",
|
|
@@ -517,14 +517,14 @@
|
|
|
517
517
|
"unplugin-combine": "^2.3.0"
|
|
518
518
|
},
|
|
519
519
|
"devDependencies": {
|
|
520
|
-
"@storm-software/testing-tools": "^1.119.
|
|
521
|
-
"@stryke/types": "^0.
|
|
520
|
+
"@storm-software/testing-tools": "^1.119.114",
|
|
521
|
+
"@stryke/types": "^0.11.1",
|
|
522
522
|
"@types/diff-match-patch": "^1.0.36",
|
|
523
523
|
"@types/node": "^25.5.0",
|
|
524
524
|
"@types/semver": "^7.7.1",
|
|
525
|
-
"tsdown": "^0.21.
|
|
525
|
+
"tsdown": "^0.21.4",
|
|
526
526
|
"typescript": "^5.9.3"
|
|
527
527
|
},
|
|
528
528
|
"publishConfig": { "access": "public" },
|
|
529
|
-
"gitHead": "
|
|
529
|
+
"gitHead": "dfc43b8609bc22086298817d0647f666fc016c48"
|
|
530
530
|
}
|