@powerlines/plugin-vite 0.13.7 → 0.14.0
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/chunk-FBBMZ4NC.cjs +7 -0
- package/dist/chunk-UCUR73HG.js +7 -0
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/index.d.cts +22 -0
- package/dist/helpers/index.d.ts +22 -0
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/unplugin.cjs +7 -0
- package/dist/helpers/unplugin.d.cts +25 -0
- package/dist/helpers/unplugin.d.ts +25 -0
- package/dist/helpers/unplugin.js +7 -0
- package/dist/index-DSjwYh04.d.cts +1319 -0
- package/dist/index-DSjwYh04.d.ts +1319 -0
- package/dist/src/index.cjs +7 -0
- package/dist/src/index.d.cts +30 -0
- package/dist/src/index.d.ts +30 -0
- package/dist/src/index.js +7 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +21 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/index.js +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +21 -0
- package/dist/types/plugin.d.ts +21 -0
- package/dist/types/plugin.js +0 -0
- package/package.json +15 -9
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),types$1=require('@storm-software/config-tools/types'),packageFns=require('@stryke/fs/package-fns'),joinPaths=require('@stryke/path/join-paths'),a=require('defu'),vite=require('powerlines/lib/build/vite'),unplugin=require('./helpers/unplugin'),helpers=require('./helpers'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a__default=/*#__PURE__*/_interopDefault(a);/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
const u=chunkFBBMZ4NC_cjs.a((o={})=>({name:"vite",config(){return this.log(types$1.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `vite` build plugin."),{output:{format:["cjs","esm"]},build:{...vite.DEFAULT_VITE_CONFIG,...o,variant:"vite"}}},async build(){this.log(types$1.LogLevelLabel.TRACE,"Building the Powerlines plugin.");const s=a__default.default({config:false,entry:this.entry},vite.extractViteConfig(this),{plugins:[unplugin.createVitePlugin(this)]});let i="vite";if(o.rolldown&&packageFns.isPackageExists("rolldown-vite",{paths:[joinPaths.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),this.workspaceConfig.workspaceRoot]})&&(i="rolldown-vite"),!packageFns.isPackageExists(i,{paths:[joinPaths.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),this.workspaceConfig.workspaceRoot]}))throw new Error(`Failed to find the "${i}" package required for the Powerlines "vite" plugin${o.rolldown?" with the `rolldown` option enabled":""}. Please run "npm install ${i} -D" to install it.`);const t=await this.resolver.import(i);if(!t)throw new Error(`Failed to load the "${i}" module - this package is required when using the Powerlines "vite" plugin${o.rolldown?" with the `rolldown` option enabled":""}. Please ensure it is installed correctly.`);await t.build(s);}}),"plugin");var $=u;exports.default=$;exports.plugin=u;Object.keys(helpers).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return helpers[k]}})});Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from '../index-DSjwYh04.cjs';
|
|
2
|
+
export { b as VitePluginResolvedConfig } from '../index-DSjwYh04.cjs';
|
|
3
|
+
export { createVitePlugin } from '../helpers/unplugin.cjs';
|
|
4
|
+
import 'vite';
|
|
5
|
+
import '@stryke/env/get-env-paths';
|
|
6
|
+
import '@stryke/types/package-json';
|
|
7
|
+
import 'jiti';
|
|
8
|
+
import 'oxc-parser';
|
|
9
|
+
import 'semver';
|
|
10
|
+
import 'unplugin';
|
|
11
|
+
import '@storm-software/build-tools/types';
|
|
12
|
+
import '@storm-software/config-tools/types';
|
|
13
|
+
import '@storm-software/config/types';
|
|
14
|
+
import '@stryke/types/base';
|
|
15
|
+
import '@stryke/types/configuration';
|
|
16
|
+
import '@stryke/types/file';
|
|
17
|
+
import '@stryke/types/array';
|
|
18
|
+
import '@stryke/types/tsconfig';
|
|
19
|
+
import 'typescript';
|
|
20
|
+
import '@stryke/json/types';
|
|
21
|
+
import 'memfs';
|
|
22
|
+
import 'node:fs';
|
|
23
|
+
import 'unionfs';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
27
|
+
*/
|
|
28
|
+
declare const plugin: <TContext extends VitePluginContext = VitePluginContext>(options?: VitePluginOptions) => Plugin<TContext>;
|
|
29
|
+
|
|
30
|
+
export { VitePluginContext, VitePluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from '../index-DSjwYh04.js';
|
|
2
|
+
export { b as VitePluginResolvedConfig } from '../index-DSjwYh04.js';
|
|
3
|
+
export { createVitePlugin } from '../helpers/unplugin.js';
|
|
4
|
+
import 'vite';
|
|
5
|
+
import '@stryke/env/get-env-paths';
|
|
6
|
+
import '@stryke/types/package-json';
|
|
7
|
+
import 'jiti';
|
|
8
|
+
import 'oxc-parser';
|
|
9
|
+
import 'semver';
|
|
10
|
+
import 'unplugin';
|
|
11
|
+
import '@storm-software/build-tools/types';
|
|
12
|
+
import '@storm-software/config-tools/types';
|
|
13
|
+
import '@storm-software/config/types';
|
|
14
|
+
import '@stryke/types/base';
|
|
15
|
+
import '@stryke/types/configuration';
|
|
16
|
+
import '@stryke/types/file';
|
|
17
|
+
import '@stryke/types/array';
|
|
18
|
+
import '@stryke/types/tsconfig';
|
|
19
|
+
import 'typescript';
|
|
20
|
+
import '@stryke/json/types';
|
|
21
|
+
import 'memfs';
|
|
22
|
+
import 'node:fs';
|
|
23
|
+
import 'unionfs';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
27
|
+
*/
|
|
28
|
+
declare const plugin: <TContext extends VitePluginContext = VitePluginContext>(options?: VitePluginOptions) => Plugin<TContext>;
|
|
29
|
+
|
|
30
|
+
export { VitePluginContext, VitePluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {a}from'../chunk-UCUR73HG.js';import {LogLevelLabel}from'@storm-software/config-tools/types';import {isPackageExists}from'@stryke/fs/package-fns';import {joinPaths}from'@stryke/path/join-paths';import a$1 from'defu';import {extractViteConfig,DEFAULT_VITE_CONFIG}from'powerlines/lib/build/vite';import {createVitePlugin}from'./helpers/unplugin';export*from'./helpers';export*from'./types';/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
const u=a((o={})=>({name:"vite",config(){return this.log(LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `vite` build plugin."),{output:{format:["cjs","esm"]},build:{...DEFAULT_VITE_CONFIG,...o,variant:"vite"}}},async build(){this.log(LogLevelLabel.TRACE,"Building the Powerlines plugin.");const s=a$1({config:false,entry:this.entry},extractViteConfig(this),{plugins:[createVitePlugin(this)]});let i="vite";if(o.rolldown&&isPackageExists("rolldown-vite",{paths:[joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),this.workspaceConfig.workspaceRoot]})&&(i="rolldown-vite"),!isPackageExists(i,{paths:[joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),this.workspaceConfig.workspaceRoot]}))throw new Error(`Failed to find the "${i}" package required for the Powerlines "vite" plugin${o.rolldown?" with the `rolldown` option enabled":""}. Please run "npm install ${i} -D" to install it.`);const t=await this.resolver.import(i);if(!t)throw new Error(`Failed to load the "${i}" module - this package is required when using the Powerlines "vite" plugin${o.rolldown?" with the `rolldown` option enabled":""}. Please ensure it is installed correctly.`);await t.build(s);}}),"plugin");var j=u;export{j as default,u as plugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var plugin=require('./plugin');Object.keys(plugin).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return plugin[k]}})});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-DSjwYh04.cjs';
|
|
2
|
+
import 'vite';
|
|
3
|
+
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/types/package-json';
|
|
5
|
+
import 'jiti';
|
|
6
|
+
import 'oxc-parser';
|
|
7
|
+
import 'semver';
|
|
8
|
+
import 'unplugin';
|
|
9
|
+
import '@storm-software/build-tools/types';
|
|
10
|
+
import '@storm-software/config-tools/types';
|
|
11
|
+
import '@storm-software/config/types';
|
|
12
|
+
import '@stryke/types/base';
|
|
13
|
+
import '@stryke/types/configuration';
|
|
14
|
+
import '@stryke/types/file';
|
|
15
|
+
import '@stryke/types/array';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-DSjwYh04.js';
|
|
2
|
+
import 'vite';
|
|
3
|
+
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/types/package-json';
|
|
5
|
+
import 'jiti';
|
|
6
|
+
import 'oxc-parser';
|
|
7
|
+
import 'semver';
|
|
8
|
+
import 'unplugin';
|
|
9
|
+
import '@storm-software/build-tools/types';
|
|
10
|
+
import '@storm-software/config-tools/types';
|
|
11
|
+
import '@storm-software/config/types';
|
|
12
|
+
import '@stryke/types/base';
|
|
13
|
+
import '@stryke/types/configuration';
|
|
14
|
+
import '@stryke/types/file';
|
|
15
|
+
import '@stryke/types/array';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from'./plugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-DSjwYh04.cjs';
|
|
2
|
+
import 'vite';
|
|
3
|
+
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/types/package-json';
|
|
5
|
+
import 'jiti';
|
|
6
|
+
import 'oxc-parser';
|
|
7
|
+
import 'semver';
|
|
8
|
+
import 'unplugin';
|
|
9
|
+
import '@storm-software/build-tools/types';
|
|
10
|
+
import '@storm-software/config-tools/types';
|
|
11
|
+
import '@storm-software/config/types';
|
|
12
|
+
import '@stryke/types/base';
|
|
13
|
+
import '@stryke/types/configuration';
|
|
14
|
+
import '@stryke/types/file';
|
|
15
|
+
import '@stryke/types/array';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig } from '../index-DSjwYh04.js';
|
|
2
|
+
import 'vite';
|
|
3
|
+
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/types/package-json';
|
|
5
|
+
import 'jiti';
|
|
6
|
+
import 'oxc-parser';
|
|
7
|
+
import 'semver';
|
|
8
|
+
import 'unplugin';
|
|
9
|
+
import '@storm-software/build-tools/types';
|
|
10
|
+
import '@storm-software/config-tools/types';
|
|
11
|
+
import '@storm-software/config/types';
|
|
12
|
+
import '@stryke/types/base';
|
|
13
|
+
import '@stryke/types/configuration';
|
|
14
|
+
import '@stryke/types/file';
|
|
15
|
+
import '@stryke/types/array';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-vite",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -126,21 +126,27 @@
|
|
|
126
126
|
"typings": "dist/index.d.ts",
|
|
127
127
|
"files": ["dist/**/*"],
|
|
128
128
|
"keywords": ["vite", "powerlines", "storm-software", "powerlines-plugin"],
|
|
129
|
+
"peerDependencies": { "vite": "^7.1.0", "rolldown-vite": "^7.1.0" },
|
|
130
|
+
"peerDependenciesMeta": {
|
|
131
|
+
"vite": { "optional": true },
|
|
132
|
+
"rolldown-vite": { "optional": true }
|
|
133
|
+
},
|
|
129
134
|
"dependencies": {
|
|
130
|
-
"@stryke/fs": "^0.32.
|
|
131
|
-
"@stryke/path": "^0.
|
|
135
|
+
"@stryke/fs": "^0.32.10",
|
|
136
|
+
"@stryke/path": "^0.18.5",
|
|
132
137
|
"@stryke/type-checks": "^0.3.10",
|
|
133
138
|
"@stryke/types": "^0.10.0",
|
|
134
139
|
"defu": "^6.1.4",
|
|
135
140
|
"jiti": "^2.6.1",
|
|
136
|
-
"powerlines": "^0.
|
|
137
|
-
"vite": "^7.1.12"
|
|
141
|
+
"powerlines": "^0.15.0"
|
|
138
142
|
},
|
|
139
143
|
"devDependencies": {
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"@
|
|
144
|
+
"vite": "^7.2.0",
|
|
145
|
+
"rolldown-vite": "^7.2.0",
|
|
146
|
+
"@powerlines/nx": "^0.10.0",
|
|
147
|
+
"@powerlines/plugin-plugin": "^0.11.8",
|
|
148
|
+
"@types/node": "^22.19.0"
|
|
143
149
|
},
|
|
144
150
|
"publishConfig": { "access": "public" },
|
|
145
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "b64f9a9d53b6eb8054c361da347f6623a7ba9e45"
|
|
146
152
|
}
|