@powerlines/plugin-plugin 0.10.0 → 0.10.2

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.
@@ -13,10 +13,8 @@ var append = require('@stryke/path/append');
13
13
  var isParentPath = require('@stryke/path/is-parent-path');
14
14
  var join = require('@stryke/path/join');
15
15
  var defu = require('defu');
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 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');
16
+ var index = require('../node_modules/.pnpm/esbuild-plugin-babel@0.2.3_@babel_core@7.28.5/node_modules/esbuild-plugin-babel/src/index.cjs');
17
+ var tsup$1 = require('powerlines/lib/build/tsup');
20
18
 
21
19
  /*@ts-ignore*/
22
20
  function __assignType(fn, args) {
@@ -53,7 +51,7 @@ const plugin = __assignType((options = {}) => {
53
51
  if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") {
54
52
  this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
55
53
  }
56
- await this.fs.writeFileToDisk(this.tsconfig.tsconfigFilePath, stormJson.StormJSON.stringify(this.tsconfig.tsconfigJson));
54
+ await this.fs.writeFile(this.tsconfig.tsconfigFilePath, stormJson.StormJSON.stringify(this.tsconfig.tsconfigJson), { mode: "fs" });
57
55
  }
58
56
  if (this.config.output.projectDistPath) {
59
57
  this.config.override.outputPath ??= join.joinPaths(this.config.projectRoot, this.config.output.projectDistPath);
@@ -62,13 +60,13 @@ const plugin = __assignType((options = {}) => {
62
60
  async build() {
63
61
  return tsup.build(await tsup.resolveOptions(defu.defu({
64
62
  config: false,
65
- entry: Object.fromEntries(Object.entries(chunkQSBORJCS.resolveTsupEntry(this, this.entry)).map(__assignType(([key, value]) => [
63
+ entry: Object.fromEntries(Object.entries(tsup$1.resolveTsupEntry(this, this.entry)).map(__assignType(([key, value]) => [
66
64
  key,
67
65
  isParentPath.isParentPath(value, this.config.projectRoot)
68
66
  ? value
69
67
  : join.joinPaths(this.config.projectRoot, value)
70
68
  ], ['param0', '', 'P"2!"/"'])))
71
- }, chunkQSBORJCS.extractTsupConfig(this), {
69
+ }, tsup$1.extractTsupConfig(this), {
72
70
  esbuildPlugins: options.alloy
73
71
  ? [
74
72
  index({
package/dist/src/index.js CHANGED
@@ -10,10 +10,8 @@ import { appendPath } from '@stryke/path/append';
10
10
  import { isParentPath } from '@stryke/path/is-parent-path';
11
11
  import { joinPaths } from '@stryke/path/join';
12
12
  import { defu } from 'defu';
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-QSBORJCS.js';
15
- import '../packages/powerlines/dist/lib/chunk-7CZ2QZEV.js';
16
- import '../packages/powerlines/dist/lib/chunk-STAKGAWR.js';
13
+ import pluginBabel from '../node_modules/.pnpm/esbuild-plugin-babel@0.2.3_@babel_core@7.28.5/node_modules/esbuild-plugin-babel/src/index.js';
14
+ import { resolveTsupEntry, extractTsupConfig } from 'powerlines/lib/build/tsup';
17
15
 
18
16
  /*@ts-ignore*/
19
17
  function __assignType(fn, args) {
@@ -50,7 +48,7 @@ const plugin = __assignType((options = {}) => {
50
48
  if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") {
51
49
  this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
52
50
  }
53
- await this.fs.writeFileToDisk(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
51
+ await this.fs.writeFile(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson), { mode: "fs" });
54
52
  }
55
53
  if (this.config.output.projectDistPath) {
56
54
  this.config.override.outputPath ??= joinPaths(this.config.projectRoot, this.config.output.projectDistPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-plugin",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -122,7 +122,7 @@
122
122
  "@alloy-js/json": "^0.20.0",
123
123
  "@alloy-js/markdown": "^0.20.0",
124
124
  "@alloy-js/typescript": "^0.20.0",
125
- "@babel/preset-typescript": "^7.27.1",
125
+ "@babel/preset-typescript": "^7.28.5",
126
126
  "@storm-software/tsup": "^0.2.9",
127
127
  "@stryke/fs": "^0.32.2",
128
128
  "@stryke/json": "^0.9.3",
@@ -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.9.0"
135
+ "powerlines": "^0.10.1"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@alloy-js/rollup-plugin": "^0.1.0",
139
- "@powerlines/nx": "^0.8.0",
139
+ "@powerlines/nx": "^0.8.2",
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": "d4026ac70ec0b73c99c5ef7b5122a380c7e9badc"
149
+ "gitHead": "9cdca2370a9a95804d04d1725f066f1e4385ba85"
150
150
  }