@powerlines/plugin-plugin 0.8.1 → 0.10.0

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.
@@ -14,9 +14,9 @@ var isParentPath = require('@stryke/path/is-parent-path');
14
14
  var join = require('@stryke/path/join');
15
15
  var defu = require('defu');
16
16
  var index = require('../node_modules/.pnpm/esbuild-plugin-babel@0.2.3_@babel_core@7.28.4/node_modules/esbuild-plugin-babel/src/index.cjs');
17
- var chunkWIQTANXE = require('../packages/powerlines/dist/lib/chunk-WIQTANXE.cjs');
18
- require('../packages/powerlines/dist/lib/chunk-K5RSG5JS.cjs');
19
- require('../packages/powerlines/dist/lib/chunk-Q56GIKMF.cjs');
17
+ var chunkQSBORJCS = require('../packages/powerlines/dist/lib/chunk-QSBORJCS.cjs');
18
+ require('../packages/powerlines/dist/lib/chunk-7CZ2QZEV.cjs');
19
+ require('../packages/powerlines/dist/lib/chunk-STAKGAWR.cjs');
20
20
 
21
21
  /*@ts-ignore*/
22
22
  function __assignType(fn, args) {
@@ -60,15 +60,15 @@ const plugin = __assignType((options = {}) => {
60
60
  }
61
61
  }, ['configResolved', 'P"/!']),
62
62
  async build() {
63
- await tsup.build(await tsup.resolveOptions(defu.defu({
63
+ return tsup.build(await tsup.resolveOptions(defu.defu({
64
64
  config: false,
65
- entry: Object.fromEntries(Object.entries(chunkWIQTANXE.resolveTsupEntry(this, this.entry)).map(__assignType(([key, value]) => [
65
+ entry: Object.fromEntries(Object.entries(chunkQSBORJCS.resolveTsupEntry(this, this.entry)).map(__assignType(([key, value]) => [
66
66
  key,
67
67
  isParentPath.isParentPath(value, this.config.projectRoot)
68
68
  ? value
69
69
  : join.joinPaths(this.config.projectRoot, value)
70
70
  ], ['param0', '', 'P"2!"/"'])))
71
- }, chunkWIQTANXE.extractTsupConfig(this), {
71
+ }, chunkQSBORJCS.extractTsupConfig(this), {
72
72
  esbuildPlugins: options.alloy
73
73
  ? [
74
74
  index({
@@ -89,12 +89,14 @@ const plugin = __assignType((options = {}) => {
89
89
  ]
90
90
  : []
91
91
  })));
92
+ },
93
+ buildFinish: __assignType(async function buildFinish() {
92
94
  if (this.config.override.outputPath &&
93
95
  this.config.override.outputPath !== this.config.output.outputPath) {
94
96
  this.log(types.LogLevelLabel.INFO, `Copying built files from override output path (${this.config.override.outputPath}) to final output path (${this.config.output.outputPath}).`);
95
97
  await copyFile.copyFiles(append.appendPath(this.config.override.outputPath, this.workspaceConfig.workspaceRoot), join.joinPaths(append.appendPath(this.config.output.outputPath, this.workspaceConfig.workspaceRoot), "dist"));
96
98
  }
97
- }
99
+ }, ['buildFinish', 'P"/!'])
98
100
  };
99
101
  }, [() => src_types_plugin.__ΩPluginPluginOptions, 'options', () => ({}), '', 'Pn!2">#!/$']);
100
102
 
package/dist/src/index.js CHANGED
@@ -11,9 +11,9 @@ import { isParentPath } from '@stryke/path/is-parent-path';
11
11
  import { joinPaths } from '@stryke/path/join';
12
12
  import { defu } from 'defu';
13
13
  import pluginBabel from '../node_modules/.pnpm/esbuild-plugin-babel@0.2.3_@babel_core@7.28.4/node_modules/esbuild-plugin-babel/src/index.js';
14
- import { resolveTsupEntry, extractTsupConfig } from '../packages/powerlines/dist/lib/chunk-WIQTANXE.js';
15
- import '../packages/powerlines/dist/lib/chunk-K5RSG5JS.js';
16
- import '../packages/powerlines/dist/lib/chunk-Q56GIKMF.js';
14
+ import { resolveTsupEntry, extractTsupConfig } from '../packages/powerlines/dist/lib/chunk-QSBORJCS.js';
15
+ import '../packages/powerlines/dist/lib/chunk-7CZ2QZEV.js';
16
+ import '../packages/powerlines/dist/lib/chunk-STAKGAWR.js';
17
17
 
18
18
  /*@ts-ignore*/
19
19
  function __assignType(fn, args) {
@@ -57,7 +57,7 @@ const plugin = __assignType((options = {}) => {
57
57
  }
58
58
  }, ['configResolved', 'P"/!']),
59
59
  async build() {
60
- await build(await resolveOptions(defu({
60
+ return build(await resolveOptions(defu({
61
61
  config: false,
62
62
  entry: Object.fromEntries(Object.entries(resolveTsupEntry(this, this.entry)).map(__assignType(([key, value]) => [
63
63
  key,
@@ -86,12 +86,14 @@ const plugin = __assignType((options = {}) => {
86
86
  ]
87
87
  : []
88
88
  })));
89
+ },
90
+ buildFinish: __assignType(async function buildFinish() {
89
91
  if (this.config.override.outputPath &&
90
92
  this.config.override.outputPath !== this.config.output.outputPath) {
91
93
  this.log(LogLevelLabel.INFO, `Copying built files from override output path (${this.config.override.outputPath}) to final output path (${this.config.output.outputPath}).`);
92
94
  await copyFiles(appendPath(this.config.override.outputPath, this.workspaceConfig.workspaceRoot), joinPaths(appendPath(this.config.output.outputPath, this.workspaceConfig.workspaceRoot), "dist"));
93
95
  }
94
- }
96
+ }, ['buildFinish', 'P"/!'])
95
97
  };
96
98
  }, [() => ___PluginPluginOptions, 'options', () => ({}), '', 'Pn!2">#!/$']);
97
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-plugin",
3
- "version": "0.8.1",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -132,11 +132,11 @@
132
132
  "defu": "^6.1.4",
133
133
  "esbuild-plugin-babel": "^0.2.3",
134
134
  "jiti": "^2.6.1",
135
- "powerlines": "^0.7.1"
135
+ "powerlines": "^0.9.0"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@alloy-js/rollup-plugin": "^0.1.0",
139
- "@powerlines/nx": "^0.6.1",
139
+ "@powerlines/nx": "^0.8.0",
140
140
  "@rollup/plugin-commonjs": "^28.0.8",
141
141
  "@rollup/plugin-node-resolve": "^16.0.3",
142
142
  "@types/babel__helper-plugin-utils": "^7.10.3",
@@ -146,5 +146,5 @@
146
146
  "rollup-plugin-typescript2": "^0.36.0"
147
147
  },
148
148
  "publishConfig": { "access": "public" },
149
- "gitHead": "0e181730de1a48ab982b8eb133b36fc5c8be40be"
149
+ "gitHead": "d4026ac70ec0b73c99c5ef7b5122a380c7e9badc"
150
150
  }