@powerlines/plugin-unenv 0.1.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/LICENSE +201 -0
- package/README.md +294 -0
- package/dist/index-Dy6eYq4W.d.cts +1427 -0
- package/dist/index-Dy6eYq4W.d.ts +1427 -0
- package/dist/index.cjs +7 -0
- package/dist/index.d.cts +33 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +7 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +20 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/index.js +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +20 -0
- package/dist/types/plugin.d.ts +20 -0
- package/dist/types/plugin.js +0 -0
- package/package.json +117 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var unenv=require('unenv'),types=require('./types');/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
var o=Object.defineProperty;var e=(i,n)=>o(i,"name",{value:n,configurable:true});const f=e((i={})=>({name:"unenv",async config(){return {unenv:i}},configResolved(){this.unenv=unenv.defineEnv(this.config.unenv||{}),this.config.build.alias??={},Array.isArray(this.config.build.alias)?this.config.build.alias=Object.entries(this.unenv.env.alias).reduce((n,[t,l])=>(n.find(s=>s.find===t)||n.push({find:t,replacement:l}),n),this.config.build.alias):this.config.build.alias={...this.unenv.env.alias,...this.config.build.alias},this.config.build.external??=[],this.config.build.external.push(...this.unenv.env.external),this.config.build.inject??={},this.config.build.inject={...this.unenv.env.inject,...this.config.build.inject},this.config.build.polyfill??=[],this.config.build.polyfill.push(...this.unenv.env.polyfill);}}),"plugin");var b=f;exports.default=b;exports.plugin=f;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]}})});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { U as UnenvPluginContext, a as UnenvPluginOptions, P as Plugin } from './index-Dy6eYq4W.cjs';
|
|
2
|
+
export { c as UnenvPluginResolvedConfig, b as UnenvPluginUserConfig } from './index-Dy6eYq4W.cjs';
|
|
3
|
+
import 'unenv';
|
|
4
|
+
import '@storm-software/build-tools/types';
|
|
5
|
+
import '@storm-software/config-tools/types';
|
|
6
|
+
import '@storm-software/config/types';
|
|
7
|
+
import '@stryke/types/base';
|
|
8
|
+
import '@stryke/types/configuration';
|
|
9
|
+
import '@stryke/types/file';
|
|
10
|
+
import 'vite';
|
|
11
|
+
import '@stryke/env/get-env-paths';
|
|
12
|
+
import '@stryke/types/package-json';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'oxc-parser';
|
|
15
|
+
import 'semver';
|
|
16
|
+
import 'unplugin';
|
|
17
|
+
import '@stryke/types/tsconfig';
|
|
18
|
+
import 'typescript';
|
|
19
|
+
import '@stryke/json/types';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import '@stryke/types/array';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The unenv plugin for Powerlines.
|
|
25
|
+
*
|
|
26
|
+
* @see https://unjs.dev/packages/unenv
|
|
27
|
+
*
|
|
28
|
+
* @param options - The unenv plugin user configuration options.
|
|
29
|
+
* @returns A Powerlines plugin to transform source code to be platform agnostic using unenv.
|
|
30
|
+
*/
|
|
31
|
+
declare const plugin: <TContext extends UnenvPluginContext = UnenvPluginContext>(options?: UnenvPluginOptions) => Plugin<TContext>;
|
|
32
|
+
|
|
33
|
+
export { UnenvPluginContext, UnenvPluginOptions, plugin as default, plugin };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { U as UnenvPluginContext, a as UnenvPluginOptions, P as Plugin } from './index-Dy6eYq4W.js';
|
|
2
|
+
export { c as UnenvPluginResolvedConfig, b as UnenvPluginUserConfig } from './index-Dy6eYq4W.js';
|
|
3
|
+
import 'unenv';
|
|
4
|
+
import '@storm-software/build-tools/types';
|
|
5
|
+
import '@storm-software/config-tools/types';
|
|
6
|
+
import '@storm-software/config/types';
|
|
7
|
+
import '@stryke/types/base';
|
|
8
|
+
import '@stryke/types/configuration';
|
|
9
|
+
import '@stryke/types/file';
|
|
10
|
+
import 'vite';
|
|
11
|
+
import '@stryke/env/get-env-paths';
|
|
12
|
+
import '@stryke/types/package-json';
|
|
13
|
+
import 'jiti';
|
|
14
|
+
import 'oxc-parser';
|
|
15
|
+
import 'semver';
|
|
16
|
+
import 'unplugin';
|
|
17
|
+
import '@stryke/types/tsconfig';
|
|
18
|
+
import 'typescript';
|
|
19
|
+
import '@stryke/json/types';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import '@stryke/types/array';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The unenv plugin for Powerlines.
|
|
25
|
+
*
|
|
26
|
+
* @see https://unjs.dev/packages/unenv
|
|
27
|
+
*
|
|
28
|
+
* @param options - The unenv plugin user configuration options.
|
|
29
|
+
* @returns A Powerlines plugin to transform source code to be platform agnostic using unenv.
|
|
30
|
+
*/
|
|
31
|
+
declare const plugin: <TContext extends UnenvPluginContext = UnenvPluginContext>(options?: UnenvPluginOptions) => Plugin<TContext>;
|
|
32
|
+
|
|
33
|
+
export { UnenvPluginContext, UnenvPluginOptions, plugin as default, plugin };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {defineEnv}from'unenv';export*from'./types';/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
var o=Object.defineProperty;var e=(i,n)=>o(i,"name",{value:n,configurable:true});const f=e((i={})=>({name:"unenv",async config(){return {unenv:i}},configResolved(){this.unenv=defineEnv(this.config.unenv||{}),this.config.build.alias??={},Array.isArray(this.config.build.alias)?this.config.build.alias=Object.entries(this.unenv.env.alias).reduce((n,[t,l])=>(n.find(s=>s.find===t)||n.push({find:t,replacement:l}),n),this.config.build.alias):this.config.build.alias={...this.unenv.env.alias,...this.config.build.alias},this.config.build.external??=[],this.config.build.external.push(...this.unenv.env.external),this.config.build.inject??={},this.config.build.inject={...this.unenv.env.inject,...this.config.build.inject},this.config.build.polyfill??=[],this.config.build.polyfill.push(...this.unenv.env.polyfill);}}),"plugin");var x=f;export{x as default,f 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,20 @@
|
|
|
1
|
+
export { U as UnenvPluginContext, a as UnenvPluginOptions, c as UnenvPluginResolvedConfig, b as UnenvPluginUserConfig } from '../index-Dy6eYq4W.cjs';
|
|
2
|
+
import 'unenv';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { U as UnenvPluginContext, a as UnenvPluginOptions, c as UnenvPluginResolvedConfig, b as UnenvPluginUserConfig } from '../index-Dy6eYq4W.js';
|
|
2
|
+
import 'unenv';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from'./plugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import 'unenv';
|
|
2
|
+
export { U as UnenvPluginContext, a as UnenvPluginOptions, c as UnenvPluginResolvedConfig, b as UnenvPluginUserConfig } from '../index-Dy6eYq4W.cjs';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import 'unenv';
|
|
2
|
+
export { U as UnenvPluginContext, a as UnenvPluginOptions, c as UnenvPluginResolvedConfig, b as UnenvPluginUserConfig } from '../index-Dy6eYq4W.js';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import '@stryke/types/array';
|
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@powerlines/plugin-unenv",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "A Powerlines plugin to transform source code to be platform agnostic using unenv.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "github",
|
|
8
|
+
"url": "https://github.com/storm-software/powerlines.git",
|
|
9
|
+
"directory": "packages/plugin-unenv"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://stormsoftware.com",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://stormsoftware.com/support",
|
|
14
|
+
"email": "support@stormsoftware.com"
|
|
15
|
+
},
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "Storm Software",
|
|
18
|
+
"email": "contact@stormsoftware.com",
|
|
19
|
+
"url": "https://stormsoftware.com"
|
|
20
|
+
},
|
|
21
|
+
"maintainers": [
|
|
22
|
+
{
|
|
23
|
+
"name": "Storm Software",
|
|
24
|
+
"email": "contact@stormsoftware.com",
|
|
25
|
+
"url": "https://stormsoftware.com"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"contributors": [
|
|
29
|
+
{
|
|
30
|
+
"name": "Storm Software",
|
|
31
|
+
"email": "contact@stormsoftware.com",
|
|
32
|
+
"url": "https://stormsoftware.com"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"funding": {
|
|
36
|
+
"type": "github",
|
|
37
|
+
"url": "https://github.com/sponsors/storm-software"
|
|
38
|
+
},
|
|
39
|
+
"license": "Apache-2.0",
|
|
40
|
+
"private": false,
|
|
41
|
+
"main": "dist/index.cjs",
|
|
42
|
+
"module": "dist/index.js",
|
|
43
|
+
"exports": {
|
|
44
|
+
"./package.json": "./package.json",
|
|
45
|
+
".": {
|
|
46
|
+
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/index.d.cts",
|
|
49
|
+
"default": "./dist/index.cjs"
|
|
50
|
+
},
|
|
51
|
+
"default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
|
|
52
|
+
},
|
|
53
|
+
"./index": {
|
|
54
|
+
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./dist/index.d.cts",
|
|
57
|
+
"default": "./dist/index.cjs"
|
|
58
|
+
},
|
|
59
|
+
"default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
|
|
60
|
+
},
|
|
61
|
+
"./plugin": {
|
|
62
|
+
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
|
|
63
|
+
"require": {
|
|
64
|
+
"types": "./dist/index.d.cts",
|
|
65
|
+
"default": "./dist/index.cjs"
|
|
66
|
+
},
|
|
67
|
+
"default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
|
|
68
|
+
},
|
|
69
|
+
"./types": {
|
|
70
|
+
"import": {
|
|
71
|
+
"types": "./dist/types/index.d.ts",
|
|
72
|
+
"default": "./dist/types/index.js"
|
|
73
|
+
},
|
|
74
|
+
"require": {
|
|
75
|
+
"types": "./dist/types/index.d.cts",
|
|
76
|
+
"default": "./dist/types/index.cjs"
|
|
77
|
+
},
|
|
78
|
+
"default": {
|
|
79
|
+
"types": "./dist/types/index.d.ts",
|
|
80
|
+
"default": "./dist/types/index.js"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"./types/*": {
|
|
84
|
+
"import": {
|
|
85
|
+
"types": "./dist/types/*.d.ts",
|
|
86
|
+
"default": "./dist/types/*.js"
|
|
87
|
+
},
|
|
88
|
+
"require": {
|
|
89
|
+
"types": "./dist/types/*.d.cts",
|
|
90
|
+
"default": "./dist/types/*.cjs"
|
|
91
|
+
},
|
|
92
|
+
"default": {
|
|
93
|
+
"types": "./dist/types/*.d.ts",
|
|
94
|
+
"default": "./dist/types/*.js"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"typings": "dist/index.d.ts",
|
|
99
|
+
"files": ["dist/**/*"],
|
|
100
|
+
"keywords": ["unenv", "powerlines", "storm-software", "powerlines-plugin"],
|
|
101
|
+
"dependencies": {
|
|
102
|
+
"@stryke/path": "^0.19.2",
|
|
103
|
+
"@stryke/fs": "^0.32.13",
|
|
104
|
+
"@stryke/hash": "^0.12.3",
|
|
105
|
+
"unenv": "npm:unenv-nightly@2.0.0-rc.24",
|
|
106
|
+
"defu": "^6.1.4",
|
|
107
|
+
"powerlines": "^0.21.0",
|
|
108
|
+
"typescript": "^5.9.3",
|
|
109
|
+
"vite": "^7.2.2"
|
|
110
|
+
},
|
|
111
|
+
"devDependencies": {
|
|
112
|
+
"@powerlines/nx": "^0.10.11",
|
|
113
|
+
"@types/node": "^22.19.1"
|
|
114
|
+
},
|
|
115
|
+
"publishConfig": { "access": "public" },
|
|
116
|
+
"gitHead": "c6ed2ca745c8f340a55758b3102933dc41e83428"
|
|
117
|
+
}
|