@powerlines/plugin-plugin 0.12.173 → 0.12.175

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.
@@ -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,13 +41,8 @@ const plugin = __assignType((options = {}) => {
43
41
  nodeProtocol: true,
44
42
  minify: false,
45
43
  export: true,
46
- external: [
47
- "@powerlines/deepkit",
48
- "@powerlines/deepkit/vendor/type-compiler",
49
- "@powerlines/deepkit/vendor/type-spec",
50
- "@powerlines/deepkit/vendor/type",
51
- "@powerlines/deepkit/vendor/core"
52
- ]
44
+ skipNodeModulesBundle: true,
45
+ external: [/^@?powerlines\//]
53
46
  }
54
47
  };
55
48
  }, ['config', 'P"/!']),
@@ -96,16 +89,11 @@ declare module "powerlines" {
96
89
  async build() {
97
90
  await tsdown.build(defu.defu({
98
91
  config: false,
99
- plugins: [(createPlugin.Ω = [[() => src_types_plugin.__ΩPluginPluginContext, 'n!']], createPlugin(this))]
92
+ plugins: [(createPlugin.Ω = [['PluginPluginContext', '"w!']], createPlugin(this))]
100
93
  }, tsdown$1.extractTsdownConfig(this)));
101
94
  }
102
95
  };
103
- }, [() => src_types_plugin.__ΩPluginPluginOptions, 'options', () => ({}), '', 'Pn!2">#!/$']);
96
+ }, ['PluginPluginOptions', 'options', () => ({}), '', 'P"w!2">#!/$']);
104
97
 
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
98
  exports.default = plugin;
111
99
  exports.plugin = plugin;
@@ -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,13 +37,8 @@ const plugin = __assignType((options = {}) => {
40
37
  nodeProtocol: true,
41
38
  minify: false,
42
39
  export: true,
43
- external: [
44
- "@powerlines/deepkit",
45
- "@powerlines/deepkit/vendor/type-compiler",
46
- "@powerlines/deepkit/vendor/type-spec",
47
- "@powerlines/deepkit/vendor/type",
48
- "@powerlines/deepkit/vendor/core"
49
- ]
40
+ skipNodeModulesBundle: true,
41
+ external: [/^@?powerlines\//]
50
42
  }
51
43
  };
52
44
  }, ['config', 'P"/!']),
@@ -93,10 +85,10 @@ declare module "powerlines" {
93
85
  async build() {
94
86
  await build(defu({
95
87
  config: false,
96
- plugins: [(createPlugin.Ω = [[() => ___PluginPluginContext, 'n!']], createPlugin(this))]
88
+ plugins: [(createPlugin.Ω = [['PluginPluginContext', '"w!']], createPlugin(this))]
97
89
  }, extractTsdownConfig(this)));
98
90
  }
99
91
  };
100
- }, [() => ___PluginPluginOptions, 'options', () => ({}), '', 'Pn!2">#!/$']);
92
+ }, ['PluginPluginOptions', 'options', () => ({}), '', 'P"w!2">#!/$']);
101
93
 
102
- export { ___PluginPluginContext as __ΩPluginPluginContext, ___PluginPluginOptions as __ΩPluginPluginOptions, plugin as default, plugin };
94
+ 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.173",
3
+ "version": "0.12.175",
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": "f7483367fc2dba244e8d11af31db5b1071e0a888"
142
+ "gitHead": "f153baa7a374fe331eeb1b8ea37c30c379c5efce"
143
143
  }