@powerlines/plugin-plugin 0.12.114 → 0.12.115
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 +5 -5
- package/dist/src/index.js +4 -4
- package/package.json +3 -3
package/dist/src/index.cjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var src_types_plugin = require('./types/plugin.cjs');
|
|
6
|
-
var types = require('@storm-software/config-tools/types');
|
|
7
6
|
var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
|
|
8
7
|
var toArray = require('@stryke/convert/to-array');
|
|
9
8
|
var join = require('@stryke/path/join');
|
|
@@ -31,11 +30,12 @@ const plugin = __assignType((options = {}) => {
|
|
|
31
30
|
return {
|
|
32
31
|
name: "plugin",
|
|
33
32
|
config: __assignType(function config() {
|
|
34
|
-
this.
|
|
33
|
+
this.debug("Providing default configuration for the Powerlines plugin.");
|
|
35
34
|
return {
|
|
36
35
|
type: "library",
|
|
37
36
|
output: {
|
|
38
|
-
format: ["cjs", "esm"]
|
|
37
|
+
format: ["cjs", "esm"],
|
|
38
|
+
dts: false
|
|
39
39
|
},
|
|
40
40
|
build: {
|
|
41
41
|
variant: "tsdown",
|
|
@@ -63,7 +63,7 @@ const plugin = __assignType((options = {}) => {
|
|
|
63
63
|
this.config.entry = entry;
|
|
64
64
|
}
|
|
65
65
|
}, ['configResolved', 'P"/!']),
|
|
66
|
-
types: __assignType(async function types
|
|
66
|
+
types: __assignType(async function types(code) {
|
|
67
67
|
if (!options.types?.userConfig || !this.packageJson?.name) {
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
@@ -81,7 +81,7 @@ const plugin = __assignType((options = {}) => {
|
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
83
|
if (!toArray.toArray(this.config.entry).includes(typeDef.file)) {
|
|
84
|
-
this.
|
|
84
|
+
this.warn(`The specified user configuration file "${typeDef.file}" is not included in the build entry points.`);
|
|
85
85
|
}
|
|
86
86
|
typeDef.file = `${this.packageJson.name}/${typeDef.file.replace(/^\.\//, "")}`;
|
|
87
87
|
}
|
package/dist/src/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __ΩPluginPluginOptions as ___PluginPluginOptions, __ΩPluginPluginContext as ___PluginPluginContext } from './types/plugin.js';
|
|
2
2
|
export { __ΩPluginPluginResolvedConfig, __ΩPluginPluginTypesOptions, __ΩPluginPluginUserConfig } from './types/plugin.js';
|
|
3
|
-
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
3
|
import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
|
|
5
4
|
import { toArray } from '@stryke/convert/to-array';
|
|
6
5
|
import { joinPaths } from '@stryke/path/join';
|
|
@@ -28,11 +27,12 @@ const plugin = __assignType((options = {}) => {
|
|
|
28
27
|
return {
|
|
29
28
|
name: "plugin",
|
|
30
29
|
config: __assignType(function config() {
|
|
31
|
-
this.
|
|
30
|
+
this.debug("Providing default configuration for the Powerlines plugin.");
|
|
32
31
|
return {
|
|
33
32
|
type: "library",
|
|
34
33
|
output: {
|
|
35
|
-
format: ["cjs", "esm"]
|
|
34
|
+
format: ["cjs", "esm"],
|
|
35
|
+
dts: false
|
|
36
36
|
},
|
|
37
37
|
build: {
|
|
38
38
|
variant: "tsdown",
|
|
@@ -78,7 +78,7 @@ const plugin = __assignType((options = {}) => {
|
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
if (!toArray(this.config.entry).includes(typeDef.file)) {
|
|
81
|
-
this.
|
|
81
|
+
this.warn(`The specified user configuration file "${typeDef.file}" is not included in the build entry points.`);
|
|
82
82
|
}
|
|
83
83
|
typeDef.file = `${this.packageJson.name}/${typeDef.file.replace(/^\.\//, "")}`;
|
|
84
84
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-plugin",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.115",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@stryke/types": "^0.10.31",
|
|
127
127
|
"defu": "^6.1.4",
|
|
128
128
|
"jiti": "^2.6.1",
|
|
129
|
-
"powerlines": "^0.37.
|
|
129
|
+
"powerlines": "^0.37.37",
|
|
130
130
|
"tsdown": "0.17.0-beta.5",
|
|
131
131
|
"unplugin": "3.0.0-beta.3"
|
|
132
132
|
},
|
|
@@ -139,5 +139,5 @@
|
|
|
139
139
|
"rollup-plugin-typescript2": "^0.36.0"
|
|
140
140
|
},
|
|
141
141
|
"publishConfig": { "access": "public" },
|
|
142
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "f1349acaaf0d996ef9877725ec560359e257a33f"
|
|
143
143
|
}
|