powerlines 0.37.13 → 0.37.14

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.
Files changed (89) hide show
  1. package/dist/api.cjs +2 -2
  2. package/dist/api.js +1 -1
  3. package/dist/astro.cjs +4 -4
  4. package/dist/astro.js +3 -3
  5. package/dist/{chunk-ZCVI5RRG.js → chunk-2VINZPPP.js} +3 -3
  6. package/dist/{chunk-23J4TJTI.js → chunk-3ANAMPU2.js} +3 -3
  7. package/dist/{chunk-UCJ37IDB.js → chunk-46QS65Q4.js} +12 -12
  8. package/dist/{chunk-D6XVYVVO.cjs → chunk-4TV72QIT.cjs} +12 -12
  9. package/dist/chunk-F3D4A7WH.cjs +12 -0
  10. package/dist/{chunk-WASMPFN3.js → chunk-FBRRUPFH.js} +3 -3
  11. package/dist/{chunk-NOTHQ5X5.cjs → chunk-NHI2UWZW.cjs} +4 -4
  12. package/dist/{chunk-HZYBJOR2.js → chunk-PYNNJQ6N.js} +3 -3
  13. package/dist/{chunk-S25UNJ67.cjs → chunk-QZDJME55.cjs} +5 -5
  14. package/dist/{chunk-YO2XGTFI.cjs → chunk-TVTICHDZ.cjs} +4 -4
  15. package/dist/{chunk-G646L672.js → chunk-VO6I2ODD.js} +3 -3
  16. package/dist/chunk-W5YZQSSJ.cjs +12 -0
  17. package/dist/esbuild.cjs +6 -6
  18. package/dist/esbuild.js +3 -3
  19. package/dist/farm.cjs +3 -3
  20. package/dist/farm.js +2 -2
  21. package/dist/index.cjs +10 -10
  22. package/dist/index.js +2 -2
  23. package/dist/lib/{chunk-ZUVGXSMD.js → chunk-6PSXSLYD.js} +4 -4
  24. package/dist/lib/{chunk-ZUVGXSMD.js.map → chunk-6PSXSLYD.js.map} +1 -1
  25. package/dist/lib/{chunk-TTMSSJT2.js → chunk-7GIY526C.js} +4 -4
  26. package/dist/lib/{chunk-TTMSSJT2.js.map → chunk-7GIY526C.js.map} +1 -1
  27. package/dist/lib/{chunk-4SGIKYIQ.cjs → chunk-7PXZONGR.cjs} +19 -19
  28. package/dist/lib/{chunk-4SGIKYIQ.cjs.map → chunk-7PXZONGR.cjs.map} +1 -1
  29. package/dist/lib/{chunk-HCWEJE33.js → chunk-JFM5ASQS.js} +5 -5
  30. package/dist/lib/chunk-JFM5ASQS.js.map +1 -0
  31. package/dist/lib/{chunk-7L7ESRG5.js → chunk-KF77ZOPD.js} +9 -10
  32. package/dist/lib/chunk-KF77ZOPD.js.map +1 -0
  33. package/dist/lib/{chunk-345PZ2SB.cjs → chunk-NODCACOK.cjs} +6 -6
  34. package/dist/lib/{chunk-345PZ2SB.cjs.map → chunk-NODCACOK.cjs.map} +1 -1
  35. package/dist/lib/{chunk-RWQ3XK4Z.js → chunk-U7HSU4GG.js} +3 -3
  36. package/dist/lib/{chunk-RWQ3XK4Z.js.map → chunk-U7HSU4GG.js.map} +1 -1
  37. package/dist/lib/{chunk-ZS5S3U74.cjs → chunk-VUU4NO63.cjs} +11 -12
  38. package/dist/lib/chunk-VUU4NO63.cjs.map +1 -0
  39. package/dist/lib/{chunk-AKPENYX2.cjs → chunk-XOGHFCDV.cjs} +4 -4
  40. package/dist/lib/{chunk-AKPENYX2.cjs.map → chunk-XOGHFCDV.cjs.map} +1 -1
  41. package/dist/lib/{chunk-SEHW4LD6.cjs → chunk-Y3I65HPJ.cjs} +17 -17
  42. package/dist/lib/chunk-Y3I65HPJ.cjs.map +1 -0
  43. package/dist/lib/contexts/api-context.cjs +5 -5
  44. package/dist/lib/contexts/api-context.js +4 -4
  45. package/dist/lib/contexts/context.cjs +3 -3
  46. package/dist/lib/contexts/context.js +2 -2
  47. package/dist/lib/contexts/environment-context.cjs +4 -4
  48. package/dist/lib/contexts/environment-context.js +3 -3
  49. package/dist/lib/contexts/index.cjs +7 -7
  50. package/dist/lib/contexts/index.js +4 -4
  51. package/dist/lib/fs/index.cjs +2 -2
  52. package/dist/lib/fs/index.js +1 -1
  53. package/dist/lib/fs/vfs.cjs +2 -2
  54. package/dist/lib/fs/vfs.js +1 -1
  55. package/dist/lib/index.cjs +10 -10
  56. package/dist/lib/index.js +5 -5
  57. package/dist/lib/unplugin/factory.cjs +6 -6
  58. package/dist/lib/unplugin/factory.js +5 -5
  59. package/dist/lib/unplugin/index.cjs +6 -6
  60. package/dist/lib/unplugin/index.js +5 -5
  61. package/dist/next.cjs +4 -4
  62. package/dist/next.js +3 -3
  63. package/dist/nuxt.cjs +7 -7
  64. package/dist/nuxt.js +5 -5
  65. package/dist/rolldown.cjs +6 -6
  66. package/dist/rolldown.js +3 -3
  67. package/dist/rollup.cjs +3 -3
  68. package/dist/rollup.js +2 -2
  69. package/dist/rspack.cjs +3 -3
  70. package/dist/rspack.js +2 -2
  71. package/dist/tsdown.cjs +4 -4
  72. package/dist/tsdown.js +3 -3
  73. package/dist/tsup.cjs +4 -4
  74. package/dist/tsup.js +3 -3
  75. package/dist/unloader.cjs +3 -3
  76. package/dist/unloader.js +2 -2
  77. package/dist/unplugin.cjs +8 -8
  78. package/dist/unplugin.js +4 -4
  79. package/dist/vite.cjs +6 -6
  80. package/dist/vite.js +3 -3
  81. package/dist/webpack.cjs +6 -6
  82. package/dist/webpack.js +3 -3
  83. package/package.json +2 -2
  84. package/dist/chunk-H7UVXDXB.cjs +0 -12
  85. package/dist/chunk-QYYM2KPH.cjs +0 -12
  86. package/dist/lib/chunk-7L7ESRG5.js.map +0 -1
  87. package/dist/lib/chunk-HCWEJE33.js.map +0 -1
  88. package/dist/lib/chunk-SEHW4LD6.cjs.map +0 -1
  89. package/dist/lib/chunk-ZS5S3U74.cjs.map +0 -1
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkD6XVYVVO_cjs = require('./chunk-D6XVYVVO.cjs');
3
+ var chunk4TV72QIT_cjs = require('./chunk-4TV72QIT.cjs');
4
4
  require('./chunk-B6DVCLP5.cjs');
5
5
  require('./chunk-V5WOGN7O.cjs');
6
6
  require('./chunk-Z6ARQDHR.cjs');
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PowerlinesAPI", {
12
12
  enumerable: true,
13
- get: function () { return chunkD6XVYVVO_cjs.PowerlinesAPI; }
13
+ get: function () { return chunk4TV72QIT_cjs.PowerlinesAPI; }
14
14
  });
15
15
  //# sourceMappingURL=api.cjs.map
16
16
  //# sourceMappingURL=api.cjs.map
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { PowerlinesAPI } from './chunk-UCJ37IDB.js';
1
+ export { PowerlinesAPI } from './chunk-46QS65Q4.js';
2
2
  import './chunk-PQXP7XQK.js';
3
3
  import './chunk-NITQ5IYP.js';
4
4
  import './chunk-2MYPFASJ.js';
package/dist/astro.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkNOTHQ5X5_cjs = require('./chunk-NOTHQ5X5.cjs');
5
+ var chunkNHI2UWZW_cjs = require('./chunk-NHI2UWZW.cjs');
6
6
  require('./chunk-SE3RCXWI.cjs');
7
- require('./chunk-S25UNJ67.cjs');
8
- require('./chunk-D6XVYVVO.cjs');
7
+ require('./chunk-QZDJME55.cjs');
8
+ require('./chunk-4TV72QIT.cjs');
9
9
  require('./chunk-B6DVCLP5.cjs');
10
10
  require('./chunk-V5WOGN7O.cjs');
11
11
  require('./chunk-Z6ARQDHR.cjs');
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
15
15
  var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
16
16
  vite: {
17
17
  plugins: [
18
- chunkNOTHQ5X5_cjs.vite_default(config)
18
+ chunkNHI2UWZW_cjs.vite_default(config)
19
19
  ]
20
20
  }
21
21
  }), "astro");
package/dist/astro.js CHANGED
@@ -1,7 +1,7 @@
1
- import { vite_default } from './chunk-G646L672.js';
1
+ import { vite_default } from './chunk-VO6I2ODD.js';
2
2
  import './chunk-BGBDDKML.js';
3
- import './chunk-23J4TJTI.js';
4
- import './chunk-UCJ37IDB.js';
3
+ import './chunk-3ANAMPU2.js';
4
+ import './chunk-46QS65Q4.js';
5
5
  import './chunk-PQXP7XQK.js';
6
6
  import './chunk-NITQ5IYP.js';
7
7
  import './chunk-2MYPFASJ.js';
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-23J4TJTI.js';
1
+ import { createUnpluginFactory } from './chunk-3ANAMPU2.js';
2
2
  import { createWebpackPlugin } from 'unplugin';
3
3
 
4
4
  var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
5
5
  var webpack_default = webpack;
6
6
 
7
7
  export { webpack, webpack_default };
8
- //# sourceMappingURL=chunk-ZCVI5RRG.js.map
9
- //# sourceMappingURL=chunk-ZCVI5RRG.js.map
8
+ //# sourceMappingURL=chunk-2VINZPPP.js.map
9
+ //# sourceMappingURL=chunk-2VINZPPP.js.map
@@ -1,4 +1,4 @@
1
- import { createLog, PowerlinesAPI } from './chunk-UCJ37IDB.js';
1
+ import { createLog, PowerlinesAPI } from './chunk-46QS65Q4.js';
2
2
  import { __name } from './chunk-7QVYU63E.js';
3
3
  import { LogLevelLabel } from '@storm-software/config-tools/types';
4
4
  import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
@@ -134,5 +134,5 @@ function createUnpluginFactory(variant, decorate) {
134
134
  __name(createUnpluginFactory, "createUnpluginFactory");
135
135
 
136
136
  export { createUnpluginFactory, getString };
137
- //# sourceMappingURL=chunk-23J4TJTI.js.map
138
- //# sourceMappingURL=chunk-23J4TJTI.js.map
137
+ //# sourceMappingURL=chunk-3ANAMPU2.js.map
138
+ //# sourceMappingURL=chunk-3ANAMPU2.js.map
@@ -46,7 +46,6 @@ import { getUnique, getUniqueBy } from '@stryke/helpers/get-unique';
46
46
  import { omit } from '@stryke/helpers/omit';
47
47
  import { fetchRequest } from '@stryke/http/fetch';
48
48
  import { isParentPath } from '@stryke/path/is-parent-path';
49
- import { isAbsolutePath, isAbsolute } from '@stryke/path/is-type';
50
49
  import { joinPaths } from '@stryke/path/join';
51
50
  import { isNull } from '@stryke/type-checks/is-null';
52
51
  import { uuid } from '@stryke/unique-id/uuid';
@@ -60,6 +59,7 @@ import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
60
59
  import { isDirectory, isFile } from '@stryke/fs/is-file';
61
60
  import * as $ from '@stryke/capnp';
62
61
  import { readFileBuffer, readFileBufferSync, writeFileBuffer } from '@stryke/fs/buffer';
62
+ import { isAbsolutePath } from '@stryke/path/is-type';
63
63
  import { prettyBytes } from '@stryke/string-format/pretty-bytes';
64
64
  import { isRegExp } from '@stryke/type-checks/is-regexp';
65
65
  import { Blob } from 'node:buffer';
@@ -2310,7 +2310,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2310
2310
  * @returns A promise that resolves when the file is written.
2311
2311
  */
2312
2312
  async write(path, data = "", options = {}) {
2313
- const meta = options.meta || {};
2313
+ const meta = options.meta ?? {};
2314
2314
  const { relativeKey, adapter } = this.#getStorage(options.storage || path);
2315
2315
  let code = data;
2316
2316
  if (!options.skipFormat) {
@@ -2341,7 +2341,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2341
2341
  * @param options - Optional parameters for writing the file.
2342
2342
  */
2343
2343
  writeSync(path, data = "", options = {}) {
2344
- const meta = options.meta || {};
2344
+ const meta = options.meta ?? {};
2345
2345
  const { relativeKey, adapter } = this.#getStorage(options.storage || path);
2346
2346
  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)})`);
2347
2347
  const id = meta.id || this.#normalizeId(relativeKey);
@@ -2716,7 +2716,7 @@ var PowerlinesContext = class _PowerlinesContext {
2716
2716
  ...config
2717
2717
  }, {
2718
2718
  output: config.framework ? {
2719
- artifactsPath: joinPaths(config.root ?? this.config.projectRoot, `.${config.framework ?? "powerlines"}`),
2719
+ artifactsPath: `.${config.framework ?? "powerlines"}`,
2720
2720
  dts: joinPaths(config.root ?? this.config.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
2721
2721
  builtinPrefix: config.framework ?? "powerlines"
2722
2722
  } : {}
@@ -3259,7 +3259,7 @@ var PowerlinesContext = class _PowerlinesContext {
3259
3259
  * @param options - Optional write file options
3260
3260
  */
3261
3261
  async emitEntry(code, path, options = {}) {
3262
- const entryPath = isAbsolute(path) ? path : appendPath(path, this.entryPath);
3262
+ const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
3263
3263
  this.entry ??= [];
3264
3264
  this.entry.push({
3265
3265
  name: options.name,
@@ -3289,7 +3289,7 @@ var PowerlinesContext = class _PowerlinesContext {
3289
3289
  * @param options - Optional write file options
3290
3290
  */
3291
3291
  emitEntrySync(code, path, options = {}) {
3292
- const entryPath = isAbsolute(path) ? path : appendPath(path, this.entryPath);
3292
+ const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
3293
3293
  this.entry ??= [];
3294
3294
  this.entry.push({
3295
3295
  name: options?.name,
@@ -3325,7 +3325,7 @@ var PowerlinesContext = class _PowerlinesContext {
3325
3325
  if (!isSetString(id)) {
3326
3326
  throw new Error(`The builtin id must be a non-empty string. Received: ${String(id)}`);
3327
3327
  }
3328
- return this.emit(code, appendPath(id, replacePath(this.builtinsPath, this.config.projectRoot)), defu7(options, {
3328
+ return this.emit(code, appendPath(id, this.builtinsPath), defu7(options, {
3329
3329
  meta: {
3330
3330
  type: "builtin",
3331
3331
  id
@@ -3346,7 +3346,7 @@ var PowerlinesContext = class _PowerlinesContext {
3346
3346
  if (!isSetString(id)) {
3347
3347
  throw new Error(`The builtin id must be a non-empty string. Received: ${String(id)}`);
3348
3348
  }
3349
- return this.emitSync(code, appendPath(id, replacePath(this.builtinsPath, this.config.projectRoot)), defu7(options, {
3349
+ return this.emitSync(code, appendPath(id, this.builtinsPath), defu7(options, {
3350
3350
  meta: {
3351
3351
  type: "builtin",
3352
3352
  id
@@ -3566,7 +3566,7 @@ var PowerlinesContext = class _PowerlinesContext {
3566
3566
  sourceRoot: this.projectJson?.sourceRoot || appendPath("src", cacheKey.projectRoot),
3567
3567
  output: defu7(config.output ?? {}, {
3568
3568
  outputPath: cacheKey.projectRoot ? joinPaths(this.workspaceConfig?.directories?.build || "dist", cacheKey.projectRoot) : this.workspaceConfig?.directories?.build || "dist",
3569
- artifactsPath: joinPaths(cacheKey.projectRoot, `.${config.framework ?? "powerlines"}`),
3569
+ artifactsPath: `.${config.framework ?? "powerlines"}`,
3570
3570
  dts: joinPaths(cacheKey.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
3571
3571
  builtinPrefix: config.framework ?? "powerlines",
3572
3572
  assets: [
@@ -4529,7 +4529,7 @@ ${formatTypes(types)}
4529
4529
  await this.#executeEnvironments(async (context) => {
4530
4530
  this.context.log(LogLevelLabel.TRACE, "Cleaning the project's dist and artifacts directories.");
4531
4531
  await context.fs.remove(joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.output.buildPath));
4532
- await context.fs.remove(joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.output.artifactsPath));
4532
+ await context.fs.remove(joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.config.output.artifactsPath));
4533
4533
  await this.callHook("clean", {
4534
4534
  environment: context,
4535
4535
  sequential: false
@@ -4887,5 +4887,5 @@ Note: Please ensure the plugin package's default export is a class that extends
4887
4887
  };
4888
4888
 
4889
4889
  export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
4890
- //# sourceMappingURL=chunk-UCJ37IDB.js.map
4891
- //# sourceMappingURL=chunk-UCJ37IDB.js.map
4890
+ //# sourceMappingURL=chunk-46QS65Q4.js.map
4891
+ //# sourceMappingURL=chunk-46QS65Q4.js.map
@@ -48,7 +48,6 @@ var getUnique = require('@stryke/helpers/get-unique');
48
48
  var omit = require('@stryke/helpers/omit');
49
49
  var fetch = require('@stryke/http/fetch');
50
50
  var isParentPath = require('@stryke/path/is-parent-path');
51
- var isType = require('@stryke/path/is-type');
52
51
  var join = require('@stryke/path/join');
53
52
  var isNull = require('@stryke/type-checks/is-null');
54
53
  var uuid = require('@stryke/unique-id/uuid');
@@ -62,6 +61,7 @@ var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
62
61
  var isFile = require('@stryke/fs/is-file');
63
62
  var $ = require('@stryke/capnp');
64
63
  var buffer = require('@stryke/fs/buffer');
64
+ var isType = require('@stryke/path/is-type');
65
65
  var prettyBytes = require('@stryke/string-format/pretty-bytes');
66
66
  var isRegexp = require('@stryke/type-checks/is-regexp');
67
67
  var buffer$1 = require('buffer');
@@ -2339,7 +2339,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2339
2339
  * @returns A promise that resolves when the file is written.
2340
2340
  */
2341
2341
  async write(path, data = "", options = {}) {
2342
- const meta = options.meta || {};
2342
+ const meta = options.meta ?? {};
2343
2343
  const { relativeKey, adapter } = this.#getStorage(options.storage || path);
2344
2344
  let code = data;
2345
2345
  if (!options.skipFormat) {
@@ -2370,7 +2370,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
2370
2370
  * @param options - Optional parameters for writing the file.
2371
2371
  */
2372
2372
  writeSync(path, data = "", options = {}) {
2373
- const meta = options.meta || {};
2373
+ const meta = options.meta ?? {};
2374
2374
  const { relativeKey, adapter } = this.#getStorage(options.storage || path);
2375
2375
  this.#log(types.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.prettyBytes(new buffer$1.Blob(toArray.toArray(data)).size)})`);
2376
2376
  const id = meta.id || this.#normalizeId(relativeKey);
@@ -2745,7 +2745,7 @@ var PowerlinesContext = class _PowerlinesContext {
2745
2745
  ...config
2746
2746
  }, {
2747
2747
  output: config.framework ? {
2748
- artifactsPath: join.joinPaths(config.root ?? this.config.projectRoot, `.${config.framework ?? "powerlines"}`),
2748
+ artifactsPath: `.${config.framework ?? "powerlines"}`,
2749
2749
  dts: join.joinPaths(config.root ?? this.config.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
2750
2750
  builtinPrefix: config.framework ?? "powerlines"
2751
2751
  } : {}
@@ -3288,7 +3288,7 @@ var PowerlinesContext = class _PowerlinesContext {
3288
3288
  * @param options - Optional write file options
3289
3289
  */
3290
3290
  async emitEntry(code, path, options = {}) {
3291
- const entryPath = isType.isAbsolute(path) ? path : append.appendPath(path, this.entryPath);
3291
+ const entryPath = append.appendPath(replace.replacePath(replace.replacePath(replace.replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
3292
3292
  this.entry ??= [];
3293
3293
  this.entry.push({
3294
3294
  name: options.name,
@@ -3318,7 +3318,7 @@ var PowerlinesContext = class _PowerlinesContext {
3318
3318
  * @param options - Optional write file options
3319
3319
  */
3320
3320
  emitEntrySync(code, path, options = {}) {
3321
- const entryPath = isType.isAbsolute(path) ? path : append.appendPath(path, this.entryPath);
3321
+ const entryPath = append.appendPath(replace.replacePath(replace.replacePath(replace.replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
3322
3322
  this.entry ??= [];
3323
3323
  this.entry.push({
3324
3324
  name: options?.name,
@@ -3354,7 +3354,7 @@ var PowerlinesContext = class _PowerlinesContext {
3354
3354
  if (!isSetString.isSetString(id)) {
3355
3355
  throw new Error(`The builtin id must be a non-empty string. Received: ${String(id)}`);
3356
3356
  }
3357
- return this.emit(code, append.appendPath(id, replace.replacePath(this.builtinsPath, this.config.projectRoot)), defu7__default.default(options, {
3357
+ return this.emit(code, append.appendPath(id, this.builtinsPath), defu7__default.default(options, {
3358
3358
  meta: {
3359
3359
  type: "builtin",
3360
3360
  id
@@ -3375,7 +3375,7 @@ var PowerlinesContext = class _PowerlinesContext {
3375
3375
  if (!isSetString.isSetString(id)) {
3376
3376
  throw new Error(`The builtin id must be a non-empty string. Received: ${String(id)}`);
3377
3377
  }
3378
- return this.emitSync(code, append.appendPath(id, replace.replacePath(this.builtinsPath, this.config.projectRoot)), defu7__default.default(options, {
3378
+ return this.emitSync(code, append.appendPath(id, this.builtinsPath), defu7__default.default(options, {
3379
3379
  meta: {
3380
3380
  type: "builtin",
3381
3381
  id
@@ -3595,7 +3595,7 @@ var PowerlinesContext = class _PowerlinesContext {
3595
3595
  sourceRoot: this.projectJson?.sourceRoot || append.appendPath("src", cacheKey.projectRoot),
3596
3596
  output: defu7__default.default(config.output ?? {}, {
3597
3597
  outputPath: cacheKey.projectRoot ? join.joinPaths(this.workspaceConfig?.directories?.build || "dist", cacheKey.projectRoot) : this.workspaceConfig?.directories?.build || "dist",
3598
- artifactsPath: join.joinPaths(cacheKey.projectRoot, `.${config.framework ?? "powerlines"}`),
3598
+ artifactsPath: `.${config.framework ?? "powerlines"}`,
3599
3599
  dts: join.joinPaths(cacheKey.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
3600
3600
  builtinPrefix: config.framework ?? "powerlines",
3601
3601
  assets: [
@@ -4558,7 +4558,7 @@ ${formatTypes(types$1)}
4558
4558
  await this.#executeEnvironments(async (context) => {
4559
4559
  this.context.log(types.LogLevelLabel.TRACE, "Cleaning the project's dist and artifacts directories.");
4560
4560
  await context.fs.remove(joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.buildPath));
4561
- await context.fs.remove(joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.artifactsPath));
4561
+ await context.fs.remove(joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.config.output.artifactsPath));
4562
4562
  await this.callHook("clean", {
4563
4563
  environment: context,
4564
4564
  sequential: false
@@ -4926,5 +4926,5 @@ exports.combineContexts = combineContexts;
4926
4926
  exports.createLog = createLog;
4927
4927
  exports.extendLog = extendLog;
4928
4928
  exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
4929
- //# sourceMappingURL=chunk-D6XVYVVO.cjs.map
4930
- //# sourceMappingURL=chunk-D6XVYVVO.cjs.map
4929
+ //# sourceMappingURL=chunk-4TV72QIT.cjs.map
4930
+ //# sourceMappingURL=chunk-4TV72QIT.cjs.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkQZDJME55_cjs = require('./chunk-QZDJME55.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var rolldown = unplugin.createRolldownPlugin(chunkQZDJME55_cjs.createUnpluginFactory("rolldown"));
7
+ var rolldown_default = rolldown;
8
+
9
+ exports.rolldown = rolldown;
10
+ exports.rolldown_default = rolldown_default;
11
+ //# sourceMappingURL=chunk-F3D4A7WH.cjs.map
12
+ //# sourceMappingURL=chunk-F3D4A7WH.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-BGBDDKML.js';
2
- import { createUnpluginFactory } from './chunk-23J4TJTI.js';
2
+ import { createUnpluginFactory } from './chunk-3ANAMPU2.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isUndefined } from '@stryke/type-checks/is-undefined';
5
5
  import { createEsbuildPlugin } from 'unplugin';
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
29
29
  var esbuild_default = esbuild;
30
30
 
31
31
  export { esbuild, esbuild_default };
32
- //# sourceMappingURL=chunk-WASMPFN3.js.map
33
- //# sourceMappingURL=chunk-WASMPFN3.js.map
32
+ //# sourceMappingURL=chunk-FBRRUPFH.js.map
33
+ //# sourceMappingURL=chunk-FBRRUPFH.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
4
- var chunkS25UNJ67_cjs = require('./chunk-S25UNJ67.cjs');
4
+ var chunkQZDJME55_cjs = require('./chunk-QZDJME55.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var environmentChecks = require('@stryke/env/environment-checks');
7
7
  var defu = require('defu');
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
97
97
  chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
98
98
 
99
99
  // src/vite.ts
100
- var vite = unplugin.createVitePlugin(chunkS25UNJ67_cjs.createUnpluginFactory("vite", (api, plugin) => {
100
+ var vite = unplugin.createVitePlugin(chunkQZDJME55_cjs.createUnpluginFactory("vite", (api, plugin) => {
101
101
  return {
102
102
  ...plugin,
103
103
  vite: {
@@ -158,5 +158,5 @@ var vite_default = vite;
158
158
 
159
159
  exports.vite = vite;
160
160
  exports.vite_default = vite_default;
161
- //# sourceMappingURL=chunk-NOTHQ5X5.cjs.map
162
- //# sourceMappingURL=chunk-NOTHQ5X5.cjs.map
161
+ //# sourceMappingURL=chunk-NHI2UWZW.cjs.map
162
+ //# sourceMappingURL=chunk-NHI2UWZW.cjs.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-23J4TJTI.js';
1
+ import { createUnpluginFactory } from './chunk-3ANAMPU2.js';
2
2
  import { createRolldownPlugin } from 'unplugin';
3
3
 
4
4
  var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
5
5
  var rolldown_default = rolldown;
6
6
 
7
7
  export { rolldown, rolldown_default };
8
- //# sourceMappingURL=chunk-HZYBJOR2.js.map
9
- //# sourceMappingURL=chunk-HZYBJOR2.js.map
8
+ //# sourceMappingURL=chunk-PYNNJQ6N.js.map
9
+ //# sourceMappingURL=chunk-PYNNJQ6N.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkD6XVYVVO_cjs = require('./chunk-D6XVYVVO.cjs');
3
+ var chunk4TV72QIT_cjs = require('./chunk-4TV72QIT.cjs');
4
4
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
5
5
  var types = require('@storm-software/config-tools/types');
6
6
  var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
27
27
  // src/lib/unplugin/factory.ts
28
28
  function createUnpluginFactory(variant, decorate) {
29
29
  return (config, meta) => {
30
- const log = chunkD6XVYVVO_cjs.createLog("unplugin", config);
30
+ const log = chunk4TV72QIT_cjs.createLog("unplugin", config);
31
31
  log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
32
32
  try {
33
33
  const userConfig = {
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
38
38
  let api;
39
39
  async function buildStart() {
40
40
  log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
41
- api = await chunkD6XVYVVO_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
41
+ api = await chunk4TV72QIT_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
42
42
  unplugin.setParseImpl(api.context.parse);
43
43
  log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
44
44
  await api.prepare({
@@ -137,5 +137,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
137
137
 
138
138
  exports.createUnpluginFactory = createUnpluginFactory;
139
139
  exports.getString = getString;
140
- //# sourceMappingURL=chunk-S25UNJ67.cjs.map
141
- //# sourceMappingURL=chunk-S25UNJ67.cjs.map
140
+ //# sourceMappingURL=chunk-QZDJME55.cjs.map
141
+ //# sourceMappingURL=chunk-QZDJME55.cjs.map
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
4
- var chunkS25UNJ67_cjs = require('./chunk-S25UNJ67.cjs');
4
+ var chunkQZDJME55_cjs = require('./chunk-QZDJME55.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var isUndefined = require('@stryke/type-checks/is-undefined');
7
7
  var unplugin = require('unplugin');
8
8
 
9
- var esbuild = unplugin.createEsbuildPlugin(chunkS25UNJ67_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
9
+ var esbuild = unplugin.createEsbuildPlugin(chunkQZDJME55_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
10
10
  return {
11
11
  ...plugin,
12
12
  esbuild: {
@@ -32,5 +32,5 @@ var esbuild_default = esbuild;
32
32
 
33
33
  exports.esbuild = esbuild;
34
34
  exports.esbuild_default = esbuild_default;
35
- //# sourceMappingURL=chunk-YO2XGTFI.cjs.map
36
- //# sourceMappingURL=chunk-YO2XGTFI.cjs.map
35
+ //# sourceMappingURL=chunk-TVTICHDZ.cjs.map
36
+ //# sourceMappingURL=chunk-TVTICHDZ.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-BGBDDKML.js';
2
- import { createUnpluginFactory } from './chunk-23J4TJTI.js';
2
+ import { createUnpluginFactory } from './chunk-3ANAMPU2.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
5
5
  import defu from 'defu';
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
151
151
  var vite_default = vite;
152
152
 
153
153
  export { vite, vite_default };
154
- //# sourceMappingURL=chunk-G646L672.js.map
155
- //# sourceMappingURL=chunk-G646L672.js.map
154
+ //# sourceMappingURL=chunk-VO6I2ODD.js.map
155
+ //# sourceMappingURL=chunk-VO6I2ODD.js.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkQZDJME55_cjs = require('./chunk-QZDJME55.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var webpack = unplugin.createWebpackPlugin(chunkQZDJME55_cjs.createUnpluginFactory("webpack"));
7
+ var webpack_default = webpack;
8
+
9
+ exports.webpack = webpack;
10
+ exports.webpack_default = webpack_default;
11
+ //# sourceMappingURL=chunk-W5YZQSSJ.cjs.map
12
+ //# sourceMappingURL=chunk-W5YZQSSJ.cjs.map
package/dist/esbuild.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkYO2XGTFI_cjs = require('./chunk-YO2XGTFI.cjs');
5
+ var chunkTVTICHDZ_cjs = require('./chunk-TVTICHDZ.cjs');
6
6
  require('./chunk-SE3RCXWI.cjs');
7
- require('./chunk-S25UNJ67.cjs');
8
- require('./chunk-D6XVYVVO.cjs');
7
+ require('./chunk-QZDJME55.cjs');
8
+ require('./chunk-4TV72QIT.cjs');
9
9
  require('./chunk-B6DVCLP5.cjs');
10
10
  require('./chunk-V5WOGN7O.cjs');
11
11
  require('./chunk-Z6ARQDHR.cjs');
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "default", {
17
17
  enumerable: true,
18
- get: function () { return chunkYO2XGTFI_cjs.esbuild_default; }
18
+ get: function () { return chunkTVTICHDZ_cjs.esbuild_default; }
19
19
  });
20
20
  Object.defineProperty(exports, "esbuild", {
21
21
  enumerable: true,
22
- get: function () { return chunkYO2XGTFI_cjs.esbuild; }
22
+ get: function () { return chunkTVTICHDZ_cjs.esbuild; }
23
23
  });
24
24
  Object.defineProperty(exports, "module.exports", {
25
25
  enumerable: true,
26
- get: function () { return chunkYO2XGTFI_cjs.esbuild; }
26
+ get: function () { return chunkTVTICHDZ_cjs.esbuild; }
27
27
  });
28
28
  //# sourceMappingURL=esbuild.cjs.map
29
29
  //# sourceMappingURL=esbuild.cjs.map
package/dist/esbuild.js CHANGED
@@ -1,7 +1,7 @@
1
- export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-WASMPFN3.js';
1
+ export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-FBRRUPFH.js';
2
2
  import './chunk-BGBDDKML.js';
3
- import './chunk-23J4TJTI.js';
4
- import './chunk-UCJ37IDB.js';
3
+ import './chunk-3ANAMPU2.js';
4
+ import './chunk-46QS65Q4.js';
5
5
  import './chunk-PQXP7XQK.js';
6
6
  import './chunk-NITQ5IYP.js';
7
7
  import './chunk-2MYPFASJ.js';
package/dist/farm.cjs CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkS25UNJ67_cjs = require('./chunk-S25UNJ67.cjs');
6
- require('./chunk-D6XVYVVO.cjs');
5
+ var chunkQZDJME55_cjs = require('./chunk-QZDJME55.cjs');
6
+ require('./chunk-4TV72QIT.cjs');
7
7
  require('./chunk-B6DVCLP5.cjs');
8
8
  require('./chunk-V5WOGN7O.cjs');
9
9
  require('./chunk-Z6ARQDHR.cjs');
10
10
  require('./chunk-PK6SKIKE.cjs');
11
11
  var unplugin = require('unplugin');
12
12
 
13
- var farm = unplugin.createFarmPlugin(chunkS25UNJ67_cjs.createUnpluginFactory("farm"));
13
+ var farm = unplugin.createFarmPlugin(chunkQZDJME55_cjs.createUnpluginFactory("farm"));
14
14
  var farm_default = farm;
15
15
 
16
16
  exports.default = farm_default;
package/dist/farm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createUnpluginFactory } from './chunk-23J4TJTI.js';
2
- import './chunk-UCJ37IDB.js';
1
+ import { createUnpluginFactory } from './chunk-3ANAMPU2.js';
2
+ import './chunk-46QS65Q4.js';
3
3
  import './chunk-PQXP7XQK.js';
4
4
  import './chunk-NITQ5IYP.js';
5
5
  import './chunk-2MYPFASJ.js';
package/dist/index.cjs CHANGED
@@ -13,7 +13,7 @@ require('./chunk-4JCNAKOE.cjs');
13
13
  require('./chunk-D6GGZQLC.cjs');
14
14
  var chunkA7AUGAHH_cjs = require('./chunk-A7AUGAHH.cjs');
15
15
  var chunk42ZHOCZJ_cjs = require('./chunk-42ZHOCZJ.cjs');
16
- var chunkD6XVYVVO_cjs = require('./chunk-D6XVYVVO.cjs');
16
+ var chunk4TV72QIT_cjs = require('./chunk-4TV72QIT.cjs');
17
17
  var chunkB6DVCLP5_cjs = require('./chunk-B6DVCLP5.cjs');
18
18
  var chunkV5WOGN7O_cjs = require('./chunk-V5WOGN7O.cjs');
19
19
  var chunkZ6ARQDHR_cjs = require('./chunk-Z6ARQDHR.cjs');
@@ -27,10 +27,10 @@ chunkPK6SKIKE_cjs.__name(defineConfig, "defineConfig");
27
27
  async function createPowerlines(options = {}) {
28
28
  options.root ??= process.cwd();
29
29
  const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(options.root);
30
- return chunkD6XVYVVO_cjs.PowerlinesAPI.from(workspaceRoot, options);
30
+ return chunk4TV72QIT_cjs.PowerlinesAPI.from(workspaceRoot, options);
31
31
  }
32
32
  chunkPK6SKIKE_cjs.__name(createPowerlines, "createPowerlines");
33
- var index_default = chunkD6XVYVVO_cjs.PowerlinesAPI;
33
+ var index_default = chunk4TV72QIT_cjs.PowerlinesAPI;
34
34
 
35
35
  Object.defineProperty(exports, "STORAGE_PRESETS", {
36
36
  enumerable: true,
@@ -50,31 +50,31 @@ Object.defineProperty(exports, "HOOKS_LIST_ORDERS", {
50
50
  });
51
51
  Object.defineProperty(exports, "FileId", {
52
52
  enumerable: true,
53
- get: function () { return chunkD6XVYVVO_cjs.FileId; }
53
+ get: function () { return chunk4TV72QIT_cjs.FileId; }
54
54
  });
55
55
  Object.defineProperty(exports, "FileMetadata", {
56
56
  enumerable: true,
57
- get: function () { return chunkD6XVYVVO_cjs.FileMetadata; }
57
+ get: function () { return chunk4TV72QIT_cjs.FileMetadata; }
58
58
  });
59
59
  Object.defineProperty(exports, "FileMetadata_KeyValuePair", {
60
60
  enumerable: true,
61
- get: function () { return chunkD6XVYVVO_cjs.FileMetadata_KeyValuePair; }
61
+ get: function () { return chunk4TV72QIT_cjs.FileMetadata_KeyValuePair; }
62
62
  });
63
63
  Object.defineProperty(exports, "FileStorage", {
64
64
  enumerable: true,
65
- get: function () { return chunkD6XVYVVO_cjs.FileStorage; }
65
+ get: function () { return chunk4TV72QIT_cjs.FileStorage; }
66
66
  });
67
67
  Object.defineProperty(exports, "FileSystem", {
68
68
  enumerable: true,
69
- get: function () { return chunkD6XVYVVO_cjs.FileSystem; }
69
+ get: function () { return chunk4TV72QIT_cjs.FileSystem; }
70
70
  });
71
71
  Object.defineProperty(exports, "PowerlinesAPI", {
72
72
  enumerable: true,
73
- get: function () { return chunkD6XVYVVO_cjs.PowerlinesAPI; }
73
+ get: function () { return chunk4TV72QIT_cjs.PowerlinesAPI; }
74
74
  });
75
75
  Object.defineProperty(exports, "_capnpFileId", {
76
76
  enumerable: true,
77
- get: function () { return chunkD6XVYVVO_cjs._capnpFileId; }
77
+ get: function () { return chunk4TV72QIT_cjs._capnpFileId; }
78
78
  });
79
79
  Object.defineProperty(exports, "KNOWN_PLUGIN_FIELDS", {
80
80
  enumerable: true,
package/dist/index.js CHANGED
@@ -9,8 +9,8 @@ import './chunk-OYASPHNL.js';
9
9
  import './chunk-OD4BINRW.js';
10
10
  export { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ } from './chunk-KXRVVFNK.js';
11
11
  export { HOOKS_LIST_ORDERS } from './chunk-CCJQBJKQ.js';
12
- import { PowerlinesAPI } from './chunk-UCJ37IDB.js';
13
- export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-UCJ37IDB.js';
12
+ import { PowerlinesAPI } from './chunk-46QS65Q4.js';
13
+ export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-46QS65Q4.js';
14
14
  export { KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS } from './chunk-PQXP7XQK.js';
15
15
  export { BUILDER_VARIANTS, UNPLUGIN_BUILDER_VARIANTS } from './chunk-NITQ5IYP.js';
16
16
  export { SUPPORTED_COMMANDS } from './chunk-2MYPFASJ.js';
@@ -1,5 +1,5 @@
1
- import { PowerlinesEnvironmentContext } from './chunk-RWQ3XK4Z.js';
2
- import { PowerlinesContext } from './chunk-7L7ESRG5.js';
1
+ import { PowerlinesEnvironmentContext } from './chunk-U7HSU4GG.js';
2
+ import { PowerlinesContext } from './chunk-KF77ZOPD.js';
3
3
  import { GLOBAL_ENVIRONMENT, DEFAULT_ENVIRONMENT } from './chunk-BZ5L2CVR.js';
4
4
  import { loadWorkspaceConfig } from './chunk-Q25ZPXA7.js';
5
5
  import { __name } from './chunk-7QVYU63E.js';
@@ -253,5 +253,5 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
253
253
  };
254
254
 
255
255
  export { PowerlinesAPIContext };
256
- //# sourceMappingURL=chunk-ZUVGXSMD.js.map
257
- //# sourceMappingURL=chunk-ZUVGXSMD.js.map
256
+ //# sourceMappingURL=chunk-6PSXSLYD.js.map
257
+ //# sourceMappingURL=chunk-6PSXSLYD.js.map