@powerlines/plugin-plugin 0.12.173 → 0.12.174
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/src/index.cjs +3 -9
- package/dist/src/index.d.ts +1 -2
- package/dist/src/index.js +4 -6
- package/package.json +2 -2
package/dist/src/index.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var src_types_plugin = require('./types/plugin.cjs');
|
|
6
5
|
var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
|
|
7
6
|
var toArray = require('@stryke/convert/to-array');
|
|
8
7
|
var join = require('@stryke/path/join');
|
|
@@ -14,7 +13,6 @@ var unplugin = require('powerlines/lib/unplugin');
|
|
|
14
13
|
var tsdown = require('tsdown');
|
|
15
14
|
var index = require('../node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.cjs');
|
|
16
15
|
|
|
17
|
-
/*@ts-ignore*/
|
|
18
16
|
function __assignType(fn, args) {
|
|
19
17
|
fn.__type = args;
|
|
20
18
|
return fn;
|
|
@@ -43,6 +41,7 @@ const plugin = __assignType((options = {}) => {
|
|
|
43
41
|
nodeProtocol: true,
|
|
44
42
|
minify: false,
|
|
45
43
|
export: true,
|
|
44
|
+
skipNodeModulesBundle: true,
|
|
46
45
|
external: [
|
|
47
46
|
"@powerlines/deepkit",
|
|
48
47
|
"@powerlines/deepkit/vendor/type-compiler",
|
|
@@ -96,16 +95,11 @@ declare module "powerlines" {
|
|
|
96
95
|
async build() {
|
|
97
96
|
await tsdown.build(defu.defu({
|
|
98
97
|
config: false,
|
|
99
|
-
plugins: [(createPlugin.Ω = [[
|
|
98
|
+
plugins: [(createPlugin.Ω = [['PluginPluginContext', '"w!']], createPlugin(this))]
|
|
100
99
|
}, tsdown$1.extractTsdownConfig(this)));
|
|
101
100
|
}
|
|
102
101
|
};
|
|
103
|
-
}, [
|
|
102
|
+
}, ['PluginPluginOptions', 'options', () => ({}), '', 'P"w!2">#!/$']);
|
|
104
103
|
|
|
105
|
-
exports.__ΩPluginPluginContext = src_types_plugin.__ΩPluginPluginContext;
|
|
106
|
-
exports.__ΩPluginPluginOptions = src_types_plugin.__ΩPluginPluginOptions;
|
|
107
|
-
exports.__ΩPluginPluginResolvedConfig = src_types_plugin.__ΩPluginPluginResolvedConfig;
|
|
108
|
-
exports.__ΩPluginPluginTypesOptions = src_types_plugin.__ΩPluginPluginTypesOptions;
|
|
109
|
-
exports.__ΩPluginPluginUserConfig = src_types_plugin.__ΩPluginPluginUserConfig;
|
|
110
104
|
exports.default = plugin;
|
|
111
105
|
exports.plugin = plugin;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Plugin } from "powerlines/types/plugin";
|
|
2
|
-
import { PluginPluginContext, PluginPluginOptions } from "./types/plugin";
|
|
3
|
-
export * from "./types";
|
|
2
|
+
import type { PluginPluginContext, PluginPluginOptions } from "./types/plugin";
|
|
4
3
|
/**
|
|
5
4
|
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
6
5
|
*/
|
package/dist/src/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { __ΩPluginPluginOptions as ___PluginPluginOptions, __ΩPluginPluginContext as ___PluginPluginContext } from './types/plugin.js';
|
|
2
|
-
export { __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig } from './types/plugin.js';
|
|
3
1
|
import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
|
|
4
2
|
import { toArray } from '@stryke/convert/to-array';
|
|
5
3
|
import { joinPaths } from '@stryke/path/join';
|
|
@@ -11,7 +9,6 @@ import { createUnplugin } from 'powerlines/lib/unplugin';
|
|
|
11
9
|
import { build } from 'tsdown';
|
|
12
10
|
import { createRolldownPlugin } from '../node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.js';
|
|
13
11
|
|
|
14
|
-
/*@ts-ignore*/
|
|
15
12
|
function __assignType(fn, args) {
|
|
16
13
|
fn.__type = args;
|
|
17
14
|
return fn;
|
|
@@ -40,6 +37,7 @@ const plugin = __assignType((options = {}) => {
|
|
|
40
37
|
nodeProtocol: true,
|
|
41
38
|
minify: false,
|
|
42
39
|
export: true,
|
|
40
|
+
skipNodeModulesBundle: true,
|
|
43
41
|
external: [
|
|
44
42
|
"@powerlines/deepkit",
|
|
45
43
|
"@powerlines/deepkit/vendor/type-compiler",
|
|
@@ -93,10 +91,10 @@ declare module "powerlines" {
|
|
|
93
91
|
async build() {
|
|
94
92
|
await build(defu({
|
|
95
93
|
config: false,
|
|
96
|
-
plugins: [(createPlugin.Ω = [[
|
|
94
|
+
plugins: [(createPlugin.Ω = [['PluginPluginContext', '"w!']], createPlugin(this))]
|
|
97
95
|
}, extractTsdownConfig(this)));
|
|
98
96
|
}
|
|
99
97
|
};
|
|
100
|
-
}, [
|
|
98
|
+
}, ['PluginPluginOptions', 'options', () => ({}), '', 'P"w!2">#!/$']);
|
|
101
99
|
|
|
102
|
-
export {
|
|
100
|
+
export { plugin as default, plugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-plugin",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.174",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -139,5 +139,5 @@
|
|
|
139
139
|
"rollup-plugin-typescript2": "^0.36.0"
|
|
140
140
|
},
|
|
141
141
|
"publishConfig": { "access": "public" },
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "2852dab8ff7cad2d1aa4a44d7fd2479d62f65d47"
|
|
143
143
|
}
|