@powerlines/plugin-plugin 0.11.44 → 0.11.46
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/config.d.ts +23 -0
- package/dist/src/index.cjs +4 -3
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +4 -3
- package/package.json +9 -9
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* -------------------------------------------------------------------
|
|
2
|
+
|
|
3
|
+
⚡ Storm Software - Powerlines
|
|
4
|
+
|
|
5
|
+
This code was released as part of the Powerlines project. Powerlines
|
|
6
|
+
is maintained by Storm Software under the Apache-2.0 license, and is
|
|
7
|
+
free for commercial and private use. For more information, please visit
|
|
8
|
+
our licensing page at https://stormsoftware.com/licenses/projects/powerlines.
|
|
9
|
+
|
|
10
|
+
Website: https://stormsoftware.com
|
|
11
|
+
Repository: https://github.com/storm-software/powerlines
|
|
12
|
+
Documentation: https://docs.stormsoftware.com/projects/powerlines
|
|
13
|
+
Contact: https://stormsoftware.com/contact
|
|
14
|
+
|
|
15
|
+
SPDX-License-Identifier: Apache-2.0
|
|
16
|
+
|
|
17
|
+
------------------------------------------------------------------- */
|
|
18
|
+
|
|
19
|
+
/// <reference path="./src/types/plugin.d.ts" />
|
|
20
|
+
|
|
21
|
+
declare module "powerlines" {
|
|
22
|
+
export interface BaseConfig extends PluginPluginUserConfig {}
|
|
23
|
+
}
|
package/dist/src/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var src_types_plugin = require('./types/plugin.cjs');
|
|
6
|
+
var plugin$1 = require('../packages/powerlines/src/types/plugin.cjs');
|
|
6
7
|
var alloyBabelPreset = require('@alloy-js/babel-preset');
|
|
7
8
|
var typescriptBabelPreset = require('@babel/preset-typescript');
|
|
8
9
|
var types = require('@storm-software/config-tools/types');
|
|
@@ -12,7 +13,7 @@ var isParentPath = require('@stryke/path/is-parent-path');
|
|
|
12
13
|
var join = require('@stryke/path/join');
|
|
13
14
|
var defu = require('defu');
|
|
14
15
|
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');
|
|
15
|
-
var tsup$1 = require('powerlines/lib/build/tsup');
|
|
16
|
+
var tsup$1 = require('../packages/powerlines/src/lib/build/tsup.cjs');
|
|
16
17
|
|
|
17
18
|
/*@ts-ignore*/
|
|
18
19
|
function __assignType(fn, args) {
|
|
@@ -49,7 +50,7 @@ const plugin = __assignType((options = {}) => {
|
|
|
49
50
|
if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") {
|
|
50
51
|
this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
|
|
51
52
|
}
|
|
52
|
-
await this.fs.
|
|
53
|
+
await this.fs.write(this.tsconfig.tsconfigFilePath, stormJson.StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
53
54
|
}
|
|
54
55
|
}, ['configResolved', 'P"/!']),
|
|
55
56
|
async build() {
|
|
@@ -84,7 +85,7 @@ const plugin = __assignType((options = {}) => {
|
|
|
84
85
|
})));
|
|
85
86
|
}
|
|
86
87
|
};
|
|
87
|
-
}, [() => src_types_plugin.__ΩPluginPluginOptions, 'options', () => ({}), '', 'Pn!2"
|
|
88
|
+
}, [() => src_types_plugin.__ΩPluginPluginOptions, 'options', () => ({}), () => plugin$1.__ΩPlugin, '', 'Pn!2">#"o$"/%']);
|
|
88
89
|
|
|
89
90
|
exports.__ΩPluginPluginAlloyOptions = src_types_plugin.__ΩPluginPluginAlloyOptions;
|
|
90
91
|
exports.__ΩPluginPluginContext = src_types_plugin.__ΩPluginPluginContext;
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __ΩPluginPluginOptions as ___PluginPluginOptions } from './types/plugin.js';
|
|
2
2
|
export { __ΩPluginPluginAlloyOptions, __ΩPluginPluginContext, __ΩPluginPluginResolvedConfig, __ΩPluginPluginUserConfig } from './types/plugin.js';
|
|
3
|
+
import { __ΩPlugin as ___Plugin } from '../packages/powerlines/src/types/plugin.js';
|
|
3
4
|
import alloyBabelPreset from '@alloy-js/babel-preset';
|
|
4
5
|
import typescriptBabelPreset from '@babel/preset-typescript';
|
|
5
6
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
@@ -9,7 +10,7 @@ import { isParentPath } from '@stryke/path/is-parent-path';
|
|
|
9
10
|
import { joinPaths } from '@stryke/path/join';
|
|
10
11
|
import { defu } from 'defu';
|
|
11
12
|
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';
|
|
12
|
-
import { resolveTsupEntry, extractTsupConfig } from 'powerlines/lib/build/tsup';
|
|
13
|
+
import { resolveTsupEntry, extractTsupConfig } from '../packages/powerlines/src/lib/build/tsup.js';
|
|
13
14
|
|
|
14
15
|
/*@ts-ignore*/
|
|
15
16
|
function __assignType(fn, args) {
|
|
@@ -46,7 +47,7 @@ const plugin = __assignType((options = {}) => {
|
|
|
46
47
|
if (this.tsconfig.tsconfigJson.compilerOptions.jsx !== "preserve") {
|
|
47
48
|
this.tsconfig.tsconfigJson.compilerOptions.jsx = "preserve";
|
|
48
49
|
}
|
|
49
|
-
await this.fs.
|
|
50
|
+
await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
50
51
|
}
|
|
51
52
|
}, ['configResolved', 'P"/!']),
|
|
52
53
|
async build() {
|
|
@@ -81,6 +82,6 @@ const plugin = __assignType((options = {}) => {
|
|
|
81
82
|
})));
|
|
82
83
|
}
|
|
83
84
|
};
|
|
84
|
-
}, [() => ___PluginPluginOptions, 'options', () => ({}), '', 'Pn!2"
|
|
85
|
+
}, [() => ___PluginPluginOptions, 'options', () => ({}), () => ___Plugin, '', 'Pn!2">#"o$"/%']);
|
|
85
86
|
|
|
86
87
|
export { ___PluginPluginOptions as __ΩPluginPluginOptions, plugin as default, plugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-plugin",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.46",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -124,19 +124,19 @@
|
|
|
124
124
|
"@alloy-js/typescript": "^0.20.0",
|
|
125
125
|
"@babel/preset-typescript": "^7.28.5",
|
|
126
126
|
"@storm-software/tsup": "^0.2.46",
|
|
127
|
-
"@stryke/fs": "^0.33.
|
|
128
|
-
"@stryke/json": "^0.9.
|
|
129
|
-
"@stryke/path": "^0.21.
|
|
130
|
-
"@stryke/type-checks": "^0.3.
|
|
131
|
-
"@stryke/types": "^0.10.
|
|
127
|
+
"@stryke/fs": "^0.33.4",
|
|
128
|
+
"@stryke/json": "^0.9.11",
|
|
129
|
+
"@stryke/path": "^0.21.2",
|
|
130
|
+
"@stryke/type-checks": "^0.3.18",
|
|
131
|
+
"@stryke/types": "^0.10.8",
|
|
132
132
|
"defu": "^6.1.4",
|
|
133
133
|
"esbuild-plugin-babel": "^0.2.3",
|
|
134
134
|
"jiti": "^2.6.1",
|
|
135
|
-
"powerlines": "^0.
|
|
135
|
+
"powerlines": "^0.25.0"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
138
|
"@alloy-js/rollup-plugin": "^0.1.0",
|
|
139
|
-
"@powerlines/nx": "^0.10.
|
|
139
|
+
"@powerlines/nx": "^0.10.38",
|
|
140
140
|
"@rollup/plugin-commonjs": "^28.0.9",
|
|
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": "
|
|
149
|
+
"gitHead": "acb1d0727c31f10519b7a59d73d245e6949414d3"
|
|
150
150
|
}
|