@powerlines/plugin-vite 0.14.47 → 0.14.48
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/helpers/index.cjs +1 -1
- package/dist/helpers/index.d.cts +4 -23
- package/dist/helpers/index.d.mts +4 -0
- package/dist/helpers/index.mjs +1 -0
- package/dist/helpers/unplugin.cjs +1 -7
- package/dist/helpers/unplugin.d.cts +3 -26
- package/dist/helpers/unplugin.d.mts +3 -0
- package/dist/helpers/unplugin.mjs +1 -0
- package/dist/helpers-CRPRhztf.mjs +1 -0
- package/dist/index-9iG2qHLe.d.mts +1 -0
- package/dist/index-D4ELpJXS.d.cts +1 -0
- package/dist/index-D6CnpA_r.d.cts +1 -0
- package/dist/index-DL0uimUT.d.mts +1 -0
- package/dist/index.cjs +14 -7
- package/dist/index.d.cts +9 -26
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-BMO8UUD7.d.cts +1659 -0
- package/dist/plugin-BMO8UUD7.d.cts.map +1 -0
- package/dist/plugin-BjiGfRHE.mjs +1 -0
- package/dist/plugin-DROa0wFk.d.mts +1660 -0
- package/dist/plugin-DROa0wFk.d.mts.map +1 -0
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -22
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +1 -1
- package/dist/types/plugin.d.cts +2 -22
- package/dist/types/plugin.d.mts +2 -0
- package/dist/types/plugin.mjs +1 -0
- package/dist/types-n6NgD0QK.mjs +1 -0
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/unplugin-B5sOy3Cu.d.cts +8 -0
- package/dist/unplugin-B5sOy3Cu.d.cts.map +1 -0
- package/dist/unplugin-DtGAGQN9.mjs +7 -0
- package/dist/unplugin-DtGAGQN9.mjs.map +1 -0
- package/dist/unplugin-I2GGsl9g.cjs +44 -0
- package/dist/unplugin-TkF87dZT.d.mts +8 -0
- package/dist/unplugin-TkF87dZT.d.mts.map +1 -0
- package/package.json +53 -35
- package/dist/chunk-FBBMZ4NC.cjs +0 -7
- package/dist/chunk-UCUR73HG.js +0 -7
- package/dist/helpers/index.d.ts +0 -23
- package/dist/helpers/index.js +0 -1
- package/dist/helpers/unplugin.d.ts +0 -26
- package/dist/helpers/unplugin.js +0 -7
- package/dist/index-DN-Ha6HR.d.cts +0 -1570
- package/dist/index-DN-Ha6HR.d.ts +0 -1570
- package/dist/index.d.ts +0 -31
- package/dist/index.js +0 -7
- package/dist/types/index.d.ts +0 -22
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.d.ts +0 -22
- /package/dist/{types/plugin.js → helpers-LF26RHol.cjs} +0 -0
package/dist/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { V as VitePluginContext, a as VitePluginOptions, P as Plugin } from './index-DN-Ha6HR.js';
|
|
2
|
-
export { b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from './index-DN-Ha6HR.js';
|
|
3
|
-
export { createVitePlugin } from './helpers/unplugin.js';
|
|
4
|
-
import 'vite';
|
|
5
|
-
import '@stryke/env/get-env-paths';
|
|
6
|
-
import '@stryke/http/fetch';
|
|
7
|
-
import '@stryke/types/base';
|
|
8
|
-
import '@stryke/types/package-json';
|
|
9
|
-
import 'jiti';
|
|
10
|
-
import 'magic-string';
|
|
11
|
-
import 'oxc-parser';
|
|
12
|
-
import 'semver';
|
|
13
|
-
import 'ts-morph';
|
|
14
|
-
import 'undici';
|
|
15
|
-
import 'unplugin';
|
|
16
|
-
import '@storm-software/build-tools/types';
|
|
17
|
-
import '@storm-software/config-tools/types';
|
|
18
|
-
import '@storm-software/config/types';
|
|
19
|
-
import '@stryke/types/configuration';
|
|
20
|
-
import '@stryke/types/file';
|
|
21
|
-
import '@stryke/fs/resolve';
|
|
22
|
-
import '@stryke/types/array';
|
|
23
|
-
import '@stryke/types/tsconfig';
|
|
24
|
-
import 'typescript';
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
28
|
-
*/
|
|
29
|
-
declare const plugin: <TContext extends VitePluginContext = VitePluginContext>(options?: VitePluginOptions) => Plugin<TContext>;
|
|
30
|
-
|
|
31
|
-
export { VitePluginContext, VitePluginOptions, plugin as default, plugin };
|
package/dist/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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};
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-DN-Ha6HR.js';
|
|
2
|
-
import 'vite';
|
|
3
|
-
import '@stryke/env/get-env-paths';
|
|
4
|
-
import '@stryke/http/fetch';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/package-json';
|
|
7
|
-
import 'jiti';
|
|
8
|
-
import 'magic-string';
|
|
9
|
-
import 'oxc-parser';
|
|
10
|
-
import 'semver';
|
|
11
|
-
import 'ts-morph';
|
|
12
|
-
import 'undici';
|
|
13
|
-
import 'unplugin';
|
|
14
|
-
import '@storm-software/build-tools/types';
|
|
15
|
-
import '@storm-software/config-tools/types';
|
|
16
|
-
import '@storm-software/config/types';
|
|
17
|
-
import '@stryke/types/configuration';
|
|
18
|
-
import '@stryke/types/file';
|
|
19
|
-
import '@stryke/fs/resolve';
|
|
20
|
-
import '@stryke/types/array';
|
|
21
|
-
import '@stryke/types/tsconfig';
|
|
22
|
-
import 'typescript';
|
package/dist/types/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from'./plugin';
|
package/dist/types/plugin.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export { V as VitePluginContext, a as VitePluginOptions, b as VitePluginResolvedConfig, d as __ΩVitePluginContext, _ as __ΩVitePluginOptions, c as __ΩVitePluginResolvedConfig } from '../index-DN-Ha6HR.js';
|
|
2
|
-
import 'vite';
|
|
3
|
-
import '@stryke/env/get-env-paths';
|
|
4
|
-
import '@stryke/http/fetch';
|
|
5
|
-
import '@stryke/types/base';
|
|
6
|
-
import '@stryke/types/package-json';
|
|
7
|
-
import 'jiti';
|
|
8
|
-
import 'magic-string';
|
|
9
|
-
import 'oxc-parser';
|
|
10
|
-
import 'semver';
|
|
11
|
-
import 'ts-morph';
|
|
12
|
-
import 'undici';
|
|
13
|
-
import 'unplugin';
|
|
14
|
-
import '@storm-software/build-tools/types';
|
|
15
|
-
import '@storm-software/config-tools/types';
|
|
16
|
-
import '@storm-software/config/types';
|
|
17
|
-
import '@stryke/types/configuration';
|
|
18
|
-
import '@stryke/types/file';
|
|
19
|
-
import '@stryke/fs/resolve';
|
|
20
|
-
import '@stryke/types/array';
|
|
21
|
-
import '@stryke/types/tsconfig';
|
|
22
|
-
import 'typescript';
|
|
File without changes
|