@powerlines/plugin-env 0.13.52 → 0.13.53
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/babel/index.d.cts +4 -1
- package/dist/babel/index.d.ts +4 -1
- package/dist/babel/plugin.d.cts +4 -1
- package/dist/babel/plugin.d.ts +4 -1
- package/dist/helpers/index.d.cts +4 -1
- package/dist/helpers/index.d.ts +4 -1
- package/dist/helpers/load.d.cts +4 -1
- package/dist/helpers/load.d.ts +4 -1
- package/dist/helpers/persistence.d.cts +4 -1
- package/dist/helpers/persistence.d.ts +4 -1
- package/dist/helpers/reflect.d.cts +4 -1
- package/dist/helpers/reflect.d.ts +4 -1
- package/dist/helpers/template-helpers.d.cts +4 -1
- package/dist/helpers/template-helpers.d.ts +4 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +3 -3
- package/dist/{runtime-DwXKDfVv.d.ts → runtime-B75FziIk.d.ts} +75 -5
- package/dist/{runtime-BwI24Tbp.d.cts → runtime-DqYFxAEo.d.cts} +75 -5
- package/dist/types/index.d.cts +4 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/plugin.d.cts +4 -1
- package/dist/types/plugin.d.ts +4 -1
- package/dist/types/runtime.d.cts +4 -1
- package/dist/types/runtime.d.ts +4 -1
- package/package.json +14 -14
package/dist/babel/index.d.cts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export { envBabelPlugin } from './plugin.cjs';
|
|
2
|
-
import '../runtime-
|
|
2
|
+
import '../runtime-DqYFxAEo.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/http/fetch';
|
|
4
5
|
import '@stryke/types/base';
|
|
5
6
|
import '@stryke/types/package-json';
|
|
6
7
|
import 'jiti';
|
|
7
8
|
import 'magic-string';
|
|
9
|
+
import 'oxc-parser';
|
|
8
10
|
import 'semver';
|
|
9
11
|
import 'ts-morph';
|
|
12
|
+
import 'undici';
|
|
10
13
|
import 'unplugin';
|
|
11
14
|
import '@babel/core';
|
|
12
15
|
import '@storm-software/build-tools/types';
|
package/dist/babel/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export { envBabelPlugin } from './plugin.js';
|
|
2
|
-
import '../runtime-
|
|
2
|
+
import '../runtime-B75FziIk.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/http/fetch';
|
|
4
5
|
import '@stryke/types/base';
|
|
5
6
|
import '@stryke/types/package-json';
|
|
6
7
|
import 'jiti';
|
|
7
8
|
import 'magic-string';
|
|
9
|
+
import 'oxc-parser';
|
|
8
10
|
import 'semver';
|
|
9
11
|
import 'ts-morph';
|
|
12
|
+
import 'undici';
|
|
10
13
|
import 'unplugin';
|
|
11
14
|
import '@babel/core';
|
|
12
15
|
import '@storm-software/build-tools/types';
|
package/dist/babel/plugin.d.cts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { D as DeclareBabelTransformPluginReturn } from '../runtime-
|
|
1
|
+
import { D as DeclareBabelTransformPluginReturn } from '../runtime-DqYFxAEo.cjs';
|
|
2
2
|
import { EnvPluginContext, EnvPluginResolvedConfig } from '../types/plugin.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/http/fetch';
|
|
4
5
|
import '@stryke/types/base';
|
|
5
6
|
import '@stryke/types/package-json';
|
|
6
7
|
import 'jiti';
|
|
7
8
|
import 'magic-string';
|
|
9
|
+
import 'oxc-parser';
|
|
8
10
|
import 'semver';
|
|
9
11
|
import 'ts-morph';
|
|
12
|
+
import 'undici';
|
|
10
13
|
import 'unplugin';
|
|
11
14
|
import '@babel/core';
|
|
12
15
|
import '@storm-software/build-tools/types';
|
package/dist/babel/plugin.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { D as DeclareBabelTransformPluginReturn } from '../runtime-
|
|
1
|
+
import { D as DeclareBabelTransformPluginReturn } from '../runtime-B75FziIk.js';
|
|
2
2
|
import { EnvPluginContext, EnvPluginResolvedConfig } from '../types/plugin.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
|
+
import '@stryke/http/fetch';
|
|
4
5
|
import '@stryke/types/base';
|
|
5
6
|
import '@stryke/types/package-json';
|
|
6
7
|
import 'jiti';
|
|
7
8
|
import 'magic-string';
|
|
9
|
+
import 'oxc-parser';
|
|
8
10
|
import 'semver';
|
|
9
11
|
import 'ts-morph';
|
|
12
|
+
import 'undici';
|
|
10
13
|
import 'unplugin';
|
|
11
14
|
import '@babel/core';
|
|
12
15
|
import '@storm-software/build-tools/types';
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -3,14 +3,17 @@ export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectio
|
|
|
3
3
|
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from './reflect.cjs';
|
|
4
4
|
export { formatEnvField, removeEnvPrefix } from './source-file-env.cjs';
|
|
5
5
|
export { createTemplateReflection } from './template-helpers.cjs';
|
|
6
|
-
import '../runtime-
|
|
6
|
+
import '../runtime-DqYFxAEo.cjs';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
|
8
|
+
import '@stryke/http/fetch';
|
|
8
9
|
import '@stryke/types/base';
|
|
9
10
|
import '@stryke/types/package-json';
|
|
10
11
|
import 'jiti';
|
|
11
12
|
import 'magic-string';
|
|
13
|
+
import 'oxc-parser';
|
|
12
14
|
import 'semver';
|
|
13
15
|
import 'ts-morph';
|
|
16
|
+
import 'undici';
|
|
14
17
|
import 'unplugin';
|
|
15
18
|
import '@babel/core';
|
|
16
19
|
import '@storm-software/build-tools/types';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -3,14 +3,17 @@ export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectio
|
|
|
3
3
|
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from './reflect.js';
|
|
4
4
|
export { formatEnvField, removeEnvPrefix } from './source-file-env.js';
|
|
5
5
|
export { createTemplateReflection } from './template-helpers.js';
|
|
6
|
-
import '../runtime-
|
|
6
|
+
import '../runtime-B75FziIk.js';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
|
8
|
+
import '@stryke/http/fetch';
|
|
8
9
|
import '@stryke/types/base';
|
|
9
10
|
import '@stryke/types/package-json';
|
|
10
11
|
import 'jiti';
|
|
11
12
|
import 'magic-string';
|
|
13
|
+
import 'oxc-parser';
|
|
12
14
|
import 'semver';
|
|
13
15
|
import 'ts-morph';
|
|
16
|
+
import 'undici';
|
|
14
17
|
import 'unplugin';
|
|
15
18
|
import '@babel/core';
|
|
16
19
|
import '@storm-software/build-tools/types';
|
package/dist/helpers/load.d.cts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { a as EnvironmentResolvedConfig } from '../runtime-
|
|
1
|
+
import { a as EnvironmentResolvedConfig } from '../runtime-DqYFxAEo.cjs';
|
|
2
2
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
3
3
|
import { EnvPluginContext, EnvPluginOptions } from '../types/plugin.cjs';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
|
+
import '@stryke/http/fetch';
|
|
5
6
|
import '@stryke/types/base';
|
|
6
7
|
import '@stryke/types/package-json';
|
|
7
8
|
import 'jiti';
|
|
8
9
|
import 'magic-string';
|
|
10
|
+
import 'oxc-parser';
|
|
9
11
|
import 'semver';
|
|
10
12
|
import 'ts-morph';
|
|
13
|
+
import 'undici';
|
|
11
14
|
import 'unplugin';
|
|
12
15
|
import '@babel/core';
|
|
13
16
|
import '@storm-software/build-tools/types';
|
package/dist/helpers/load.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { a as EnvironmentResolvedConfig } from '../runtime-
|
|
1
|
+
import { a as EnvironmentResolvedConfig } from '../runtime-B75FziIk.js';
|
|
2
2
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
3
3
|
import { EnvPluginContext, EnvPluginOptions } from '../types/plugin.js';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
5
|
+
import '@stryke/http/fetch';
|
|
5
6
|
import '@stryke/types/base';
|
|
6
7
|
import '@stryke/types/package-json';
|
|
7
8
|
import 'jiti';
|
|
8
9
|
import 'magic-string';
|
|
10
|
+
import 'oxc-parser';
|
|
9
11
|
import 'semver';
|
|
10
12
|
import 'ts-morph';
|
|
13
|
+
import 'undici';
|
|
11
14
|
import 'unplugin';
|
|
12
15
|
import '@babel/core';
|
|
13
16
|
import '@storm-software/build-tools/types';
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { ReflectionClass } from '@deepkit/type';
|
|
2
2
|
import { TypeDefinition } from '@stryke/types/configuration';
|
|
3
|
-
import { U as UnresolvedContext, C as Context } from '../runtime-
|
|
3
|
+
import { U as UnresolvedContext, C as Context } from '../runtime-DqYFxAEo.cjs';
|
|
4
4
|
import { EnvPluginResolvedConfig, EnvType, EnvPluginContext } from '../types/plugin.cjs';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
|
+
import '@stryke/http/fetch';
|
|
6
7
|
import '@stryke/types/base';
|
|
7
8
|
import '@stryke/types/package-json';
|
|
8
9
|
import 'jiti';
|
|
9
10
|
import 'magic-string';
|
|
11
|
+
import 'oxc-parser';
|
|
10
12
|
import 'semver';
|
|
11
13
|
import 'ts-morph';
|
|
14
|
+
import 'undici';
|
|
12
15
|
import 'unplugin';
|
|
13
16
|
import '@babel/core';
|
|
14
17
|
import '@storm-software/build-tools/types';
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { ReflectionClass } from '@deepkit/type';
|
|
2
2
|
import { TypeDefinition } from '@stryke/types/configuration';
|
|
3
|
-
import { U as UnresolvedContext, C as Context } from '../runtime-
|
|
3
|
+
import { U as UnresolvedContext, C as Context } from '../runtime-B75FziIk.js';
|
|
4
4
|
import { EnvPluginResolvedConfig, EnvType, EnvPluginContext } from '../types/plugin.js';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
|
+
import '@stryke/http/fetch';
|
|
6
7
|
import '@stryke/types/base';
|
|
7
8
|
import '@stryke/types/package-json';
|
|
8
9
|
import 'jiti';
|
|
9
10
|
import 'magic-string';
|
|
11
|
+
import 'oxc-parser';
|
|
10
12
|
import 'semver';
|
|
11
13
|
import 'ts-morph';
|
|
14
|
+
import 'undici';
|
|
12
15
|
import 'unplugin';
|
|
13
16
|
import '@babel/core';
|
|
14
17
|
import '@storm-software/build-tools/types';
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { ReflectionClass, TypeObjectLiteral, TypeClass } from '@deepkit/type';
|
|
2
2
|
import { EnvPluginContext } from '../types/plugin.cjs';
|
|
3
|
-
import { E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
3
|
+
import { E as EnvInterface, S as SecretsInterface } from '../runtime-DqYFxAEo.cjs';
|
|
4
4
|
import '@alloy-js/core/jsx-runtime';
|
|
5
5
|
import '@stryke/capnp';
|
|
6
6
|
import '@stryke/env/types';
|
|
7
7
|
import '@stryke/types/configuration';
|
|
8
8
|
import '@stryke/env/get-env-paths';
|
|
9
|
+
import '@stryke/http/fetch';
|
|
9
10
|
import '@stryke/types/base';
|
|
10
11
|
import '@stryke/types/package-json';
|
|
11
12
|
import 'jiti';
|
|
12
13
|
import 'magic-string';
|
|
14
|
+
import 'oxc-parser';
|
|
13
15
|
import 'semver';
|
|
14
16
|
import 'ts-morph';
|
|
17
|
+
import 'undici';
|
|
15
18
|
import 'unplugin';
|
|
16
19
|
import '@babel/core';
|
|
17
20
|
import '@storm-software/build-tools/types';
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { ReflectionClass, TypeObjectLiteral, TypeClass } from '@deepkit/type';
|
|
2
2
|
import { EnvPluginContext } from '../types/plugin.js';
|
|
3
|
-
import { E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
3
|
+
import { E as EnvInterface, S as SecretsInterface } from '../runtime-B75FziIk.js';
|
|
4
4
|
import '@alloy-js/core/jsx-runtime';
|
|
5
5
|
import '@stryke/capnp';
|
|
6
6
|
import '@stryke/env/types';
|
|
7
7
|
import '@stryke/types/configuration';
|
|
8
8
|
import '@stryke/env/get-env-paths';
|
|
9
|
+
import '@stryke/http/fetch';
|
|
9
10
|
import '@stryke/types/base';
|
|
10
11
|
import '@stryke/types/package-json';
|
|
11
12
|
import 'jiti';
|
|
12
13
|
import 'magic-string';
|
|
14
|
+
import 'oxc-parser';
|
|
13
15
|
import 'semver';
|
|
14
16
|
import 'ts-morph';
|
|
17
|
+
import 'undici';
|
|
15
18
|
import 'unplugin';
|
|
16
19
|
import '@babel/core';
|
|
17
20
|
import '@storm-software/build-tools/types';
|
|
@@ -2,14 +2,17 @@ import { ReflectionClass } from '@deepkit/type';
|
|
|
2
2
|
import { EnvPluginContext, EnvType } from '../types/plugin.cjs';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@stryke/capnp';
|
|
5
|
-
import '../runtime-
|
|
5
|
+
import '../runtime-DqYFxAEo.cjs';
|
|
6
6
|
import '@stryke/env/get-env-paths';
|
|
7
|
+
import '@stryke/http/fetch';
|
|
7
8
|
import '@stryke/types/base';
|
|
8
9
|
import '@stryke/types/package-json';
|
|
9
10
|
import 'jiti';
|
|
10
11
|
import 'magic-string';
|
|
12
|
+
import 'oxc-parser';
|
|
11
13
|
import 'semver';
|
|
12
14
|
import 'ts-morph';
|
|
15
|
+
import 'undici';
|
|
13
16
|
import 'unplugin';
|
|
14
17
|
import '@babel/core';
|
|
15
18
|
import '@storm-software/build-tools/types';
|
|
@@ -2,14 +2,17 @@ import { ReflectionClass } from '@deepkit/type';
|
|
|
2
2
|
import { EnvPluginContext, EnvType } from '../types/plugin.js';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@stryke/capnp';
|
|
5
|
-
import '../runtime-
|
|
5
|
+
import '../runtime-B75FziIk.js';
|
|
6
6
|
import '@stryke/env/get-env-paths';
|
|
7
|
+
import '@stryke/http/fetch';
|
|
7
8
|
import '@stryke/types/base';
|
|
8
9
|
import '@stryke/types/package-json';
|
|
9
10
|
import 'jiti';
|
|
10
11
|
import 'magic-string';
|
|
12
|
+
import 'oxc-parser';
|
|
11
13
|
import 'semver';
|
|
12
14
|
import 'ts-morph';
|
|
15
|
+
import 'undici';
|
|
13
16
|
import 'unplugin';
|
|
14
17
|
import '@babel/core';
|
|
15
18
|
import '@storm-software/build-tools/types';
|
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});require('./chunk-FBBMZ4NC.cjs');var jsxRuntime=require('@alloy-js/core/jsx-runtime'),createPlugin=require('@powerlines/alloy/create-plugin'),type=require('@powerlines/deepkit/vendor/type'),A=require('@powerlines/plugin-babel'),types$1=require('@storm-software/config-tools/types'),parseTypeDefinition=require('@stryke/convert/parse-type-definition'),toArray=require('@stryke/convert/to-array'),types$2=require('@stryke/env/types'),exists=require('@stryke/fs/exists'),helpers$1=require('@stryke/fs/helpers'),isParentPath=require('@stryke/path/is-parent-path'),join=require('@stryke/path/join'),constantCase=require('@stryke/string-format/constant-case'),w=require('defu'),
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});require('./chunk-FBBMZ4NC.cjs');var jsxRuntime=require('@alloy-js/core/jsx-runtime'),createPlugin=require('@powerlines/alloy/create-plugin'),type=require('@powerlines/deepkit/vendor/type'),A=require('@powerlines/plugin-babel'),types$1=require('@storm-software/config-tools/types'),parseTypeDefinition=require('@stryke/convert/parse-type-definition'),toArray=require('@stryke/convert/to-array'),types$2=require('@stryke/env/types'),exists=require('@stryke/fs/exists'),helpers$1=require('@stryke/fs/helpers'),isParentPath=require('@stryke/path/is-parent-path'),join=require('@stryke/path/join'),constantCase=require('@stryke/string-format/constant-case'),w=require('defu'),plugin=require('./babel/plugin'),env=require('./components/env'),load=require('./helpers/load'),persistence=require('./helpers/persistence'),reflect=require('./helpers/reflect'),babel=require('./babel'),components=require('./components'),helpers=require('./helpers'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var A__default=/*#__PURE__*/_interopDefault(A);var w__default=/*#__PURE__*/_interopDefault(w);/*****************************************
|
|
2
2
|
*
|
|
3
3
|
* ⚡ Built by Storm Software
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const F=createPlugin.createAlloyPlugin((g={})=>({name:"env",dependsOn:[A__default.default(g.babel)],async config(){this.log(types$1.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");const e={env:w__default.default(g,{types:{},prefix:[]}),transform:{babel:{plugins:[plugin.envBabelPlugin]}}};if(e.env.types)e.env.types=parseTypeDefinition.parseTypeDefinition(e.env.types);else {this.log(types$1.LogLevelLabel.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");const t=await persistence.getEnvDefaultTypeDefinition(this);e.env.types=parseTypeDefinition.parseTypeDefinition(`${t.file}#${t.name}`);}if(e.env.secrets)e.env.secrets=parseTypeDefinition.parseTypeDefinition(e.env.secrets);else {const t=await persistence.getSecretsDefaultTypeDefinition(this);e.env.secrets=parseTypeDefinition.parseTypeDefinition(`${t.file}#${t.name}`);}return e.env.prefix=toArray.toArray(e.env.prefix??[]).reduce((t,n)=>{const i=constantCase.constantCase(n);return t.includes(i)||t.push(i),t},[...types$2.ENV_PREFIXES,"POWERLINES_"]),e.env.prefix=e.env.prefix.reduce((t,n)=>(t.includes(n.replace(/_$/g,""))||t.push(n.replace(/_$/g,"")),t),[]),e},async configResolved(){if(this.log(types$1.LogLevelLabel.TRACE,"Environment plugin configuration has been resolved for the Powerlines project."),this.config.env.inject??=this.config.projectType==="application",this.env=w__default.default({parsed:await load.loadEnv(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!=="prepare"&&this.persistedMeta?.checksum===this.meta.checksum&&exists.existsSync(persistence.getEnvTypeReflectionsPath(this,"env")))this.log(types$1.LogLevelLabel.TRACE,"Skipping reflection initialization as the meta checksum has not changed."),this.env.types.env=await persistence.readEnvTypeReflection(this,"env"),exists.existsSync(persistence.getEnvReflectionsPath(this,"env"))&&(this.env.used.env=await persistence.readEnvReflection(this)),exists.existsSync(persistence.getEnvTypeReflectionsPath(this,"secrets"))&&(this.env.types.secrets=await persistence.readEnvTypeReflection(this,"secrets")),exists.existsSync(persistence.getEnvReflectionsPath(this,"secrets"))&&(this.env.used.secrets=await persistence.readSecretsReflection(this));else {if(this.env.types.env=await reflect.reflectEnv(this,this.config.env.types?.file?isParentPath.isParentPath(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:join.joinPaths(this.config.projectRoot,this.config.env.types?.file):void 0,this.config.env.types?.name),!this.env.types.env)throw new Error("Failed to find the environment configuration type reflection in the context.");if(await persistence.writeEnvTypeReflection(this,this.env.types.env,"env"),this.env.types.secrets=await reflect.reflectSecrets(this,this.config.env.secrets?.file?isParentPath.isParentPath(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:join.joinPaths(this.config.projectRoot,this.config.env.secrets?.file):void 0,this.config.env.secrets?.name),!this.env.types.secrets)throw new Error("Failed to find the secrets configuration type reflection in the context.");await persistence.writeEnvTypeReflection(this,this.env.types.secrets,"secrets"),this.log(types$1.LogLevelLabel.TRACE,`Resolved ${this.env.types.env.getProperties().length??0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length??0} secret configuration parameters`);const e=this.env.types.env.getProperties().filter(t=>t.getAlias().length>0);Object.entries(await load.loadEnv(this,this.config.env)).forEach(([t,n])=>{const i=this.config.env.prefix.reduce((f,m)=>t.replace(/_$/g,"").startsWith(m)?t.replace(/_$/g,"").slice(m.length):f,t),c=e.find(f=>f?.getAlias().reverse().includes(i));(this.env.types.env?.hasProperty(i)||c)&&this.env.types.env.getProperty(i).setDefaultValue(n);}),this.env.used.env=new type.ReflectionClass({kind:type.ReflectionKind.objectLiteral,typeName:"Env",description:`An object containing the environment configuration parameters used by the ${this.config.name?`${this.config.name} application`:"application"}.`,types:[]},this.env.types.env),await persistence.writeEnvReflection(this,this.env.used.env,"env"),this.env.types.secrets&&(await persistence.writeEnvTypeReflection(this,this.env.types.secrets,"secrets"),this.env.used.secrets=new type.ReflectionClass({kind:type.ReflectionKind.objectLiteral,typeName:"Secrets",description:`An object containing the secret configuration parameters used by the ${this.config.name?`${this.config.name} application`:"application"}.`,types:[]},this.env.types.secrets),await persistence.writeEnvReflection(this,this.env.used.secrets,"secrets"));}},render(){const e=this;return this.log(types$1.LogLevelLabel.TRACE,"Preparing the Environment runtime artifacts for the Powerlines project."),jsxRuntime.createComponent(env.EnvBuiltin,{get defaultConfig(){return e.config.env.defaultConfig}})},async docs(){this.log(types$1.LogLevelLabel.TRACE,"Writing Environment documentation for the Powerlines project artifacts.");const e=join.joinPaths(this.config.projectRoot,"docs","generated");exists.existsSync(e)||await helpers$1.createDirectory(e);const t=await persistence.readEnvTypeReflection(this,"env"),n=join.joinPaths(e,"env.md");this.log(types$1.LogLevelLabel.TRACE,`Documenting environment variables configuration in "${n}"`),await this.fs.write(n,`<!-- Generated by Powerlines -->
|
|
8
8
|
|
|
9
9
|
# Environment variables configuration
|
|
10
10
|
|
|
@@ -19,4 +19,4 @@ const O=createPlugin.createAlloyPlugin((g={})=>({name:"env",dependsOn:[A__defaul
|
|
|
19
19
|
${t.getProperties().filter(i=>i.getNameAsString()!=="__STORM_INJECTED__").sort((i,c)=>i.getNameAsString().localeCompare(c.getNameAsString())).map(i=>`| ${i.getNameAsString().trim()} | ${(i.getDescription()?.replaceAll("\r","")?.replaceAll(`
|
|
20
20
|
`,"")??"").trim()} | ${type.stringifyType(i.getType()).trim().replaceAll(" | ",", or ")} | ${i.hasDefault()?String(i.getDefaultValue())?.includes('"')?i.getDefaultValue():`\`${i.getDefaultValue()}\``:""} | ${i.isValueRequired()?"":"\u2714"} |`).join(`
|
|
21
21
|
`)}
|
|
22
|
-
`);},async buildEnd(){const e=persistence.getEnvReflectionsPath(this,"env");this.log(types$1.LogLevelLabel.TRACE,`Writing env reflection types to ${e}.`),await persistence.writeEnvReflection(this,this.env.used.env,"env");}}));var
|
|
22
|
+
`);},async buildEnd(){const e=persistence.getEnvReflectionsPath(this,"env");this.log(types$1.LogLevelLabel.TRACE,`Writing env reflection types to ${e}.`),await persistence.writeEnvReflection(this,this.env.used.env,"env");}}));var oe=F;exports.default=oe;exports.plugin=F;Object.keys(babel).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return babel[k]}})});Object.keys(components).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return components[k]}})});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]}})});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PluginContext, b as Plugin } from './runtime-
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-
|
|
1
|
+
import { P as PluginContext, b as Plugin } from './runtime-DqYFxAEo.cjs';
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-DqYFxAEo.cjs';
|
|
3
3
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import { PrintTreeOptions } from '@alloy-js/core';
|
|
5
5
|
import { EnvPluginContext, EnvPluginResolvedConfig } from './types/plugin.cjs';
|
|
@@ -12,12 +12,15 @@ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflecti
|
|
|
12
12
|
export { formatEnvField, removeEnvPrefix } from './helpers/source-file-env.cjs';
|
|
13
13
|
export { createTemplateReflection } from './helpers/template-helpers.cjs';
|
|
14
14
|
import '@stryke/env/get-env-paths';
|
|
15
|
+
import '@stryke/http/fetch';
|
|
15
16
|
import '@stryke/types/base';
|
|
16
17
|
import '@stryke/types/package-json';
|
|
17
18
|
import 'jiti';
|
|
18
19
|
import 'magic-string';
|
|
20
|
+
import 'oxc-parser';
|
|
19
21
|
import 'semver';
|
|
20
22
|
import 'ts-morph';
|
|
23
|
+
import 'undici';
|
|
21
24
|
import 'unplugin';
|
|
22
25
|
import '@babel/core';
|
|
23
26
|
import '@storm-software/build-tools/types';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PluginContext, b as Plugin } from './runtime-
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-
|
|
1
|
+
import { P as PluginContext, b as Plugin } from './runtime-B75FziIk.js';
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from './runtime-B75FziIk.js';
|
|
3
3
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import { PrintTreeOptions } from '@alloy-js/core';
|
|
5
5
|
import { EnvPluginContext, EnvPluginResolvedConfig } from './types/plugin.js';
|
|
@@ -12,12 +12,15 @@ export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflecti
|
|
|
12
12
|
export { formatEnvField, removeEnvPrefix } from './helpers/source-file-env.js';
|
|
13
13
|
export { createTemplateReflection } from './helpers/template-helpers.js';
|
|
14
14
|
import '@stryke/env/get-env-paths';
|
|
15
|
+
import '@stryke/http/fetch';
|
|
15
16
|
import '@stryke/types/base';
|
|
16
17
|
import '@stryke/types/package-json';
|
|
17
18
|
import 'jiti';
|
|
18
19
|
import 'magic-string';
|
|
20
|
+
import 'oxc-parser';
|
|
19
21
|
import 'semver';
|
|
20
22
|
import 'ts-morph';
|
|
23
|
+
import 'undici';
|
|
21
24
|
import 'unplugin';
|
|
22
25
|
import '@babel/core';
|
|
23
26
|
import '@storm-software/build-tools/types';
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import'./chunk-UCUR73HG.js';import {createComponent}from'@alloy-js/core/jsx-runtime';import {createAlloyPlugin}from'@powerlines/alloy/create-plugin';import {stringifyType,ReflectionClass,ReflectionKind}from'@powerlines/deepkit/vendor/type';import A from'@powerlines/plugin-babel';import {LogLevelLabel}from'@storm-software/config-tools/types';import {parseTypeDefinition}from'@stryke/convert/parse-type-definition';import {toArray}from'@stryke/convert/to-array';import {ENV_PREFIXES}from'@stryke/env/types';import {existsSync}from'@stryke/fs/exists';import {createDirectory}from'@stryke/fs/helpers';import {isParentPath}from'@stryke/path/is-parent-path';import {joinPaths}from'@stryke/path/join';import {constantCase}from'@stryke/string-format/constant-case';import w from'defu';import {
|
|
1
|
+
import'./chunk-UCUR73HG.js';import {createComponent}from'@alloy-js/core/jsx-runtime';import {createAlloyPlugin}from'@powerlines/alloy/create-plugin';import {stringifyType,ReflectionClass,ReflectionKind}from'@powerlines/deepkit/vendor/type';import A from'@powerlines/plugin-babel';import {LogLevelLabel}from'@storm-software/config-tools/types';import {parseTypeDefinition}from'@stryke/convert/parse-type-definition';import {toArray}from'@stryke/convert/to-array';import {ENV_PREFIXES}from'@stryke/env/types';import {existsSync}from'@stryke/fs/exists';import {createDirectory}from'@stryke/fs/helpers';import {isParentPath}from'@stryke/path/is-parent-path';import {joinPaths}from'@stryke/path/join';import {constantCase}from'@stryke/string-format/constant-case';import w from'defu';import {envBabelPlugin}from'./babel/plugin';import {EnvBuiltin}from'./components/env';import {loadEnv}from'./helpers/load';import {getEnvReflectionsPath,writeEnvReflection,readEnvTypeReflection,getEnvTypeReflectionsPath,readEnvReflection,readSecretsReflection,writeEnvTypeReflection,getEnvDefaultTypeDefinition,getSecretsDefaultTypeDefinition}from'./helpers/persistence';import {reflectEnv,reflectSecrets}from'./helpers/reflect';export*from'./babel';export*from'./components';export*from'./helpers';export*from'./types';/*****************************************
|
|
2
2
|
*
|
|
3
3
|
* ⚡ Built by Storm Software
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const F=createAlloyPlugin((g={})=>({name:"env",dependsOn:[A(g.babel)],async config(){this.log(LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");const e={env:w(g,{types:{},prefix:[]}),transform:{babel:{plugins:[envBabelPlugin]}}};if(e.env.types)e.env.types=parseTypeDefinition(e.env.types);else {this.log(LogLevelLabel.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");const t=await getEnvDefaultTypeDefinition(this);e.env.types=parseTypeDefinition(`${t.file}#${t.name}`);}if(e.env.secrets)e.env.secrets=parseTypeDefinition(e.env.secrets);else {const t=await getSecretsDefaultTypeDefinition(this);e.env.secrets=parseTypeDefinition(`${t.file}#${t.name}`);}return e.env.prefix=toArray(e.env.prefix??[]).reduce((t,n)=>{const i=constantCase(n);return t.includes(i)||t.push(i),t},[...ENV_PREFIXES,"POWERLINES_"]),e.env.prefix=e.env.prefix.reduce((t,n)=>(t.includes(n.replace(/_$/g,""))||t.push(n.replace(/_$/g,"")),t),[]),e},async configResolved(){if(this.log(LogLevelLabel.TRACE,"Environment plugin configuration has been resolved for the Powerlines project."),this.config.env.inject??=this.config.projectType==="application",this.env=w({parsed:await loadEnv(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!=="prepare"&&this.persistedMeta?.checksum===this.meta.checksum&&existsSync(getEnvTypeReflectionsPath(this,"env")))this.log(LogLevelLabel.TRACE,"Skipping reflection initialization as the meta checksum has not changed."),this.env.types.env=await readEnvTypeReflection(this,"env"),existsSync(getEnvReflectionsPath(this,"env"))&&(this.env.used.env=await readEnvReflection(this)),existsSync(getEnvTypeReflectionsPath(this,"secrets"))&&(this.env.types.secrets=await readEnvTypeReflection(this,"secrets")),existsSync(getEnvReflectionsPath(this,"secrets"))&&(this.env.used.secrets=await readSecretsReflection(this));else {if(this.env.types.env=await reflectEnv(this,this.config.env.types?.file?isParentPath(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:joinPaths(this.config.projectRoot,this.config.env.types?.file):void 0,this.config.env.types?.name),!this.env.types.env)throw new Error("Failed to find the environment configuration type reflection in the context.");if(await writeEnvTypeReflection(this,this.env.types.env,"env"),this.env.types.secrets=await reflectSecrets(this,this.config.env.secrets?.file?isParentPath(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:joinPaths(this.config.projectRoot,this.config.env.secrets?.file):void 0,this.config.env.secrets?.name),!this.env.types.secrets)throw new Error("Failed to find the secrets configuration type reflection in the context.");await writeEnvTypeReflection(this,this.env.types.secrets,"secrets"),this.log(LogLevelLabel.TRACE,`Resolved ${this.env.types.env.getProperties().length??0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length??0} secret configuration parameters`);const e=this.env.types.env.getProperties().filter(t=>t.getAlias().length>0);Object.entries(await loadEnv(this,this.config.env)).forEach(([t,n])=>{const i=this.config.env.prefix.reduce((f,m)=>t.replace(/_$/g,"").startsWith(m)?t.replace(/_$/g,"").slice(m.length):f,t),c=e.find(f=>f?.getAlias().reverse().includes(i));(this.env.types.env?.hasProperty(i)||c)&&this.env.types.env.getProperty(i).setDefaultValue(n);}),this.env.used.env=new ReflectionClass({kind:ReflectionKind.objectLiteral,typeName:"Env",description:`An object containing the environment configuration parameters used by the ${this.config.name?`${this.config.name} application`:"application"}.`,types:[]},this.env.types.env),await writeEnvReflection(this,this.env.used.env,"env"),this.env.types.secrets&&(await writeEnvTypeReflection(this,this.env.types.secrets,"secrets"),this.env.used.secrets=new ReflectionClass({kind:ReflectionKind.objectLiteral,typeName:"Secrets",description:`An object containing the secret configuration parameters used by the ${this.config.name?`${this.config.name} application`:"application"}.`,types:[]},this.env.types.secrets),await writeEnvReflection(this,this.env.used.secrets,"secrets"));}},render(){const e=this;return this.log(LogLevelLabel.TRACE,"Preparing the Environment runtime artifacts for the Powerlines project."),createComponent(EnvBuiltin,{get defaultConfig(){return e.config.env.defaultConfig}})},async docs(){this.log(LogLevelLabel.TRACE,"Writing Environment documentation for the Powerlines project artifacts.");const e=joinPaths(this.config.projectRoot,"docs","generated");existsSync(e)||await createDirectory(e);const t=await readEnvTypeReflection(this,"env"),n=joinPaths(e,"env.md");this.log(LogLevelLabel.TRACE,`Documenting environment variables configuration in "${n}"`),await this.fs.write(n,`<!-- Generated by Powerlines -->
|
|
8
8
|
|
|
9
9
|
# Environment variables configuration
|
|
10
10
|
|
|
@@ -19,4 +19,4 @@ const O=createAlloyPlugin((g={})=>({name:"env",dependsOn:[A(g.babel)],async conf
|
|
|
19
19
|
${t.getProperties().filter(i=>i.getNameAsString()!=="__STORM_INJECTED__").sort((i,c)=>i.getNameAsString().localeCompare(c.getNameAsString())).map(i=>`| ${i.getNameAsString().trim()} | ${(i.getDescription()?.replaceAll("\r","")?.replaceAll(`
|
|
20
20
|
`,"")??"").trim()} | ${stringifyType(i.getType()).trim().replaceAll(" | ",", or ")} | ${i.hasDefault()?String(i.getDefaultValue())?.includes('"')?i.getDefaultValue():`\`${i.getDefaultValue()}\``:""} | ${i.isValueRequired()?"":"\u2714"} |`).join(`
|
|
21
21
|
`)}
|
|
22
|
-
`);},async buildEnd(){const e=getEnvReflectionsPath(this,"env");this.log(LogLevelLabel.TRACE,`Writing env reflection types to ${e}.`),await writeEnvReflection(this,this.env.used.env,"env");}}));var
|
|
22
|
+
`);},async buildEnd(){const e=getEnvReflectionsPath(this,"env");this.log(LogLevelLabel.TRACE,`Writing env reflection types to ${e}.`),await writeEnvReflection(this,this.env.used.env,"env");}}));var re=F;export{re as default,F as plugin};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
|
+
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
2
3
|
import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
|
|
3
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
4
5
|
import { Jiti } from 'jiti';
|
|
5
6
|
import { SourceMap } from 'magic-string';
|
|
7
|
+
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
6
8
|
import { Range } from 'semver';
|
|
7
9
|
import { Project } from 'ts-morph';
|
|
10
|
+
import { RequestInfo, Response } from 'undici';
|
|
8
11
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginMessage, UnpluginBuildContext } from 'unplugin';
|
|
9
12
|
import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
|
|
10
13
|
import { Format } from '@storm-software/build-tools/types';
|
|
@@ -205,7 +208,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
|
|
|
205
208
|
/**
|
|
206
209
|
* The resolved options for the Powerlines project configuration.
|
|
207
210
|
*/
|
|
208
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
|
|
211
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
209
212
|
/**
|
|
210
213
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
211
214
|
*/
|
|
@@ -579,6 +582,22 @@ type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
|
579
582
|
*/
|
|
580
583
|
presets?: BabelTransformPluginOptions[];
|
|
581
584
|
};
|
|
585
|
+
interface DeployConfig {
|
|
586
|
+
/**
|
|
587
|
+
* The deployment variant being used by the Powerlines engine.
|
|
588
|
+
*
|
|
589
|
+
* @example
|
|
590
|
+
* ```ts
|
|
591
|
+
* export default defineConfig({
|
|
592
|
+
* deploy: {
|
|
593
|
+
* variant: "cloudflare"
|
|
594
|
+
* }
|
|
595
|
+
* });
|
|
596
|
+
*
|
|
597
|
+
* ```
|
|
598
|
+
*/
|
|
599
|
+
variant?: string;
|
|
600
|
+
}
|
|
582
601
|
interface OutputConfig {
|
|
583
602
|
/**
|
|
584
603
|
* The path to output the final compiled files to
|
|
@@ -701,7 +720,7 @@ interface BaseConfig {
|
|
|
701
720
|
* @remarks
|
|
702
721
|
* If set to `false`, the deployment will be disabled.
|
|
703
722
|
*/
|
|
704
|
-
deploy?:
|
|
723
|
+
deploy?: DeployConfig | false;
|
|
705
724
|
/**
|
|
706
725
|
* The path to the tsconfig file to be used by the compiler
|
|
707
726
|
*
|
|
@@ -828,7 +847,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
828
847
|
*/
|
|
829
848
|
framework?: string;
|
|
830
849
|
}
|
|
831
|
-
|
|
850
|
+
interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
832
851
|
/**
|
|
833
852
|
* Configuration provided to build processes
|
|
834
853
|
*
|
|
@@ -848,7 +867,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
|
|
|
848
867
|
*/
|
|
849
868
|
override?: Partial<TBuildResolvedConfig>;
|
|
850
869
|
};
|
|
851
|
-
}
|
|
870
|
+
}
|
|
852
871
|
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
853
872
|
/**
|
|
854
873
|
* The configuration provided while executing Powerlines commands.
|
|
@@ -912,6 +931,18 @@ interface InitContextOptions {
|
|
|
912
931
|
*/
|
|
913
932
|
isHighPriority: boolean;
|
|
914
933
|
}
|
|
934
|
+
interface FetchOptions extends FetchRequestOptions {
|
|
935
|
+
/**
|
|
936
|
+
* An indicator specifying that the request should bypass any caching
|
|
937
|
+
*/
|
|
938
|
+
skipCache?: boolean;
|
|
939
|
+
}
|
|
940
|
+
interface ParseOptions extends ParserOptions {
|
|
941
|
+
/**
|
|
942
|
+
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
943
|
+
*/
|
|
944
|
+
allowReturnOutsideFunction?: boolean;
|
|
945
|
+
}
|
|
915
946
|
/**
|
|
916
947
|
* The unresolved Powerlines context.
|
|
917
948
|
*
|
|
@@ -928,6 +959,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
928
959
|
*/
|
|
929
960
|
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
930
961
|
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
962
|
+
sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
|
|
931
963
|
output: TResolvedConfig["output"];
|
|
932
964
|
};
|
|
933
965
|
/**
|
|
@@ -1047,6 +1079,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1047
1079
|
* This instance is created lazily on first access.
|
|
1048
1080
|
*/
|
|
1049
1081
|
program: Project;
|
|
1082
|
+
/**
|
|
1083
|
+
* A function to perform HTTP fetch requests
|
|
1084
|
+
*
|
|
1085
|
+
* @remarks
|
|
1086
|
+
* This function uses a caching layer to avoid duplicate requests during the Powerlines process.
|
|
1087
|
+
*
|
|
1088
|
+
* @example
|
|
1089
|
+
* ```ts
|
|
1090
|
+
* const response = await context.fetch("https://api.example.com/data");
|
|
1091
|
+
* const data = await response.json();
|
|
1092
|
+
* ```
|
|
1093
|
+
*
|
|
1094
|
+
* @see https://github.com/nodejs/undici
|
|
1095
|
+
*
|
|
1096
|
+
* @param input - The URL to fetch.
|
|
1097
|
+
* @param options - The fetch request options.
|
|
1098
|
+
* @returns A promise that resolves to a response returned by the fetch.
|
|
1099
|
+
*/
|
|
1100
|
+
fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1103
|
+
*
|
|
1104
|
+
* @remarks
|
|
1105
|
+
* This function can be used to parse TypeScript code into an AST for further analysis or transformation.
|
|
1106
|
+
*
|
|
1107
|
+
* @example
|
|
1108
|
+
* ```ts
|
|
1109
|
+
* const ast = context.parse("const x: number = 42;");
|
|
1110
|
+
* ```
|
|
1111
|
+
*
|
|
1112
|
+
* @see https://rollupjs.org/plugin-development/#this-parse
|
|
1113
|
+
* @see https://github.com/oxc/oxc
|
|
1114
|
+
*
|
|
1115
|
+
* @param code - The source code to parse.
|
|
1116
|
+
* @param options - The options to pass to the parser.
|
|
1117
|
+
* @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1118
|
+
*/
|
|
1119
|
+
parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
|
|
1050
1120
|
/**
|
|
1051
1121
|
* A helper function to resolve modules using the Jiti resolver
|
|
1052
1122
|
*
|
|
@@ -1146,7 +1216,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1146
1216
|
*/
|
|
1147
1217
|
logger: LogFn;
|
|
1148
1218
|
}
|
|
1149
|
-
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> =
|
|
1219
|
+
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
1150
1220
|
|
|
1151
1221
|
/**
|
|
1152
1222
|
* The base environment configuration used by Powerlines applications
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
|
+
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
2
3
|
import { NonUndefined, MaybePromise, FunctionLike } from '@stryke/types/base';
|
|
3
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
4
5
|
import { Jiti } from 'jiti';
|
|
5
6
|
import { SourceMap } from 'magic-string';
|
|
7
|
+
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
6
8
|
import { Range } from 'semver';
|
|
7
9
|
import { Project } from 'ts-morph';
|
|
10
|
+
import { RequestInfo, Response } from 'undici';
|
|
8
11
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginMessage, UnpluginBuildContext } from 'unplugin';
|
|
9
12
|
import { PluginItem, PluginObj, PluginPass, transformAsync } from '@babel/core';
|
|
10
13
|
import { Format } from '@storm-software/build-tools/types';
|
|
@@ -205,7 +208,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
|
|
|
205
208
|
/**
|
|
206
209
|
* The resolved options for the Powerlines project configuration.
|
|
207
210
|
*/
|
|
208
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
|
|
211
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
209
212
|
/**
|
|
210
213
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
211
214
|
*/
|
|
@@ -579,6 +582,22 @@ type BabelUserConfig = Parameters<typeof transformAsync>[1] & {
|
|
|
579
582
|
*/
|
|
580
583
|
presets?: BabelTransformPluginOptions[];
|
|
581
584
|
};
|
|
585
|
+
interface DeployConfig {
|
|
586
|
+
/**
|
|
587
|
+
* The deployment variant being used by the Powerlines engine.
|
|
588
|
+
*
|
|
589
|
+
* @example
|
|
590
|
+
* ```ts
|
|
591
|
+
* export default defineConfig({
|
|
592
|
+
* deploy: {
|
|
593
|
+
* variant: "cloudflare"
|
|
594
|
+
* }
|
|
595
|
+
* });
|
|
596
|
+
*
|
|
597
|
+
* ```
|
|
598
|
+
*/
|
|
599
|
+
variant?: string;
|
|
600
|
+
}
|
|
582
601
|
interface OutputConfig {
|
|
583
602
|
/**
|
|
584
603
|
* The path to output the final compiled files to
|
|
@@ -701,7 +720,7 @@ interface BaseConfig {
|
|
|
701
720
|
* @remarks
|
|
702
721
|
* If set to `false`, the deployment will be disabled.
|
|
703
722
|
*/
|
|
704
|
-
deploy?:
|
|
723
|
+
deploy?: DeployConfig | false;
|
|
705
724
|
/**
|
|
706
725
|
* The path to the tsconfig file to be used by the compiler
|
|
707
726
|
*
|
|
@@ -828,7 +847,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
828
847
|
*/
|
|
829
848
|
framework?: string;
|
|
830
849
|
}
|
|
831
|
-
|
|
850
|
+
interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
832
851
|
/**
|
|
833
852
|
* Configuration provided to build processes
|
|
834
853
|
*
|
|
@@ -848,7 +867,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
|
|
|
848
867
|
*/
|
|
849
868
|
override?: Partial<TBuildResolvedConfig>;
|
|
850
869
|
};
|
|
851
|
-
}
|
|
870
|
+
}
|
|
852
871
|
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
853
872
|
/**
|
|
854
873
|
* The configuration provided while executing Powerlines commands.
|
|
@@ -912,6 +931,18 @@ interface InitContextOptions {
|
|
|
912
931
|
*/
|
|
913
932
|
isHighPriority: boolean;
|
|
914
933
|
}
|
|
934
|
+
interface FetchOptions extends FetchRequestOptions {
|
|
935
|
+
/**
|
|
936
|
+
* An indicator specifying that the request should bypass any caching
|
|
937
|
+
*/
|
|
938
|
+
skipCache?: boolean;
|
|
939
|
+
}
|
|
940
|
+
interface ParseOptions extends ParserOptions {
|
|
941
|
+
/**
|
|
942
|
+
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
943
|
+
*/
|
|
944
|
+
allowReturnOutsideFunction?: boolean;
|
|
945
|
+
}
|
|
915
946
|
/**
|
|
916
947
|
* The unresolved Powerlines context.
|
|
917
948
|
*
|
|
@@ -928,6 +959,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
928
959
|
*/
|
|
929
960
|
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
930
961
|
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
962
|
+
sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
|
|
931
963
|
output: TResolvedConfig["output"];
|
|
932
964
|
};
|
|
933
965
|
/**
|
|
@@ -1047,6 +1079,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1047
1079
|
* This instance is created lazily on first access.
|
|
1048
1080
|
*/
|
|
1049
1081
|
program: Project;
|
|
1082
|
+
/**
|
|
1083
|
+
* A function to perform HTTP fetch requests
|
|
1084
|
+
*
|
|
1085
|
+
* @remarks
|
|
1086
|
+
* This function uses a caching layer to avoid duplicate requests during the Powerlines process.
|
|
1087
|
+
*
|
|
1088
|
+
* @example
|
|
1089
|
+
* ```ts
|
|
1090
|
+
* const response = await context.fetch("https://api.example.com/data");
|
|
1091
|
+
* const data = await response.json();
|
|
1092
|
+
* ```
|
|
1093
|
+
*
|
|
1094
|
+
* @see https://github.com/nodejs/undici
|
|
1095
|
+
*
|
|
1096
|
+
* @param input - The URL to fetch.
|
|
1097
|
+
* @param options - The fetch request options.
|
|
1098
|
+
* @returns A promise that resolves to a response returned by the fetch.
|
|
1099
|
+
*/
|
|
1100
|
+
fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1103
|
+
*
|
|
1104
|
+
* @remarks
|
|
1105
|
+
* This function can be used to parse TypeScript code into an AST for further analysis or transformation.
|
|
1106
|
+
*
|
|
1107
|
+
* @example
|
|
1108
|
+
* ```ts
|
|
1109
|
+
* const ast = context.parse("const x: number = 42;");
|
|
1110
|
+
* ```
|
|
1111
|
+
*
|
|
1112
|
+
* @see https://rollupjs.org/plugin-development/#this-parse
|
|
1113
|
+
* @see https://github.com/oxc/oxc
|
|
1114
|
+
*
|
|
1115
|
+
* @param code - The source code to parse.
|
|
1116
|
+
* @param options - The options to pass to the parser.
|
|
1117
|
+
* @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1118
|
+
*/
|
|
1119
|
+
parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
|
|
1050
1120
|
/**
|
|
1051
1121
|
* A helper function to resolve modules using the Jiti resolver
|
|
1052
1122
|
*
|
|
@@ -1146,7 +1216,7 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1146
1216
|
*/
|
|
1147
1217
|
logger: LogFn;
|
|
1148
1218
|
}
|
|
1149
|
-
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> =
|
|
1219
|
+
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
1150
1220
|
|
|
1151
1221
|
/**
|
|
1152
1222
|
* The base environment configuration used by Powerlines applications
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from './plugin.cjs';
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-DqYFxAEo.cjs';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@deepkit/type';
|
|
5
5
|
import '@stryke/capnp';
|
|
6
6
|
import '@stryke/env/types';
|
|
7
7
|
import '@stryke/types/configuration';
|
|
8
8
|
import '@stryke/env/get-env-paths';
|
|
9
|
+
import '@stryke/http/fetch';
|
|
9
10
|
import '@stryke/types/base';
|
|
10
11
|
import '@stryke/types/package-json';
|
|
11
12
|
import 'jiti';
|
|
12
13
|
import 'magic-string';
|
|
14
|
+
import 'oxc-parser';
|
|
13
15
|
import 'semver';
|
|
14
16
|
import 'ts-morph';
|
|
17
|
+
import 'undici';
|
|
15
18
|
import 'unplugin';
|
|
16
19
|
import '@babel/core';
|
|
17
20
|
import '@storm-software/build-tools/types';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from './plugin.js';
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-B75FziIk.js';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@deepkit/type';
|
|
5
5
|
import '@stryke/capnp';
|
|
6
6
|
import '@stryke/env/types';
|
|
7
7
|
import '@stryke/types/configuration';
|
|
8
8
|
import '@stryke/env/get-env-paths';
|
|
9
|
+
import '@stryke/http/fetch';
|
|
9
10
|
import '@stryke/types/base';
|
|
10
11
|
import '@stryke/types/package-json';
|
|
11
12
|
import 'jiti';
|
|
12
13
|
import 'magic-string';
|
|
14
|
+
import 'oxc-parser';
|
|
13
15
|
import 'semver';
|
|
14
16
|
import 'ts-morph';
|
|
17
|
+
import 'undici';
|
|
15
18
|
import 'unplugin';
|
|
16
19
|
import '@babel/core';
|
|
17
20
|
import '@storm-software/build-tools/types';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
2
2
|
import { ReflectionClass } from '@deepkit/type';
|
|
3
3
|
import * as $ from '@stryke/capnp';
|
|
4
|
-
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
4
|
+
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-DqYFxAEo.cjs';
|
|
5
5
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
6
6
|
import { DotenvConfiguration, TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
|
8
|
+
import '@stryke/http/fetch';
|
|
8
9
|
import '@stryke/types/base';
|
|
9
10
|
import '@stryke/types/package-json';
|
|
10
11
|
import 'jiti';
|
|
11
12
|
import 'magic-string';
|
|
13
|
+
import 'oxc-parser';
|
|
12
14
|
import 'semver';
|
|
13
15
|
import 'ts-morph';
|
|
16
|
+
import 'undici';
|
|
14
17
|
import 'unplugin';
|
|
15
18
|
import '@babel/core';
|
|
16
19
|
import '@storm-software/build-tools/types';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
2
2
|
import { ReflectionClass } from '@deepkit/type';
|
|
3
3
|
import * as $ from '@stryke/capnp';
|
|
4
|
-
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
4
|
+
import { B as BabelUserConfig, d as UserConfig, R as ResolvedConfig, e as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-B75FziIk.js';
|
|
5
5
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
6
6
|
import { DotenvConfiguration, TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
|
8
|
+
import '@stryke/http/fetch';
|
|
8
9
|
import '@stryke/types/base';
|
|
9
10
|
import '@stryke/types/package-json';
|
|
10
11
|
import 'jiti';
|
|
11
12
|
import 'magic-string';
|
|
13
|
+
import 'oxc-parser';
|
|
12
14
|
import 'semver';
|
|
13
15
|
import 'ts-morph';
|
|
16
|
+
import 'undici';
|
|
14
17
|
import 'unplugin';
|
|
15
18
|
import '@babel/core';
|
|
16
19
|
import '@storm-software/build-tools/types';
|
package/dist/types/runtime.d.cts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
1
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-DqYFxAEo.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@babel/core';
|
|
11
14
|
import '@storm-software/build-tools/types';
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-
|
|
1
|
+
export { E as EnvInterface, S as SecretsInterface, _ as __ΩEnvInterface, c as __ΩSecretsInterface } from '../runtime-B75FziIk.js';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@babel/core';
|
|
11
14
|
import '@storm-software/build-tools/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.53",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
|
|
6
6
|
"repository": {
|
|
@@ -179,23 +179,23 @@
|
|
|
179
179
|
"@alloy-js/typescript": "^0.20.0",
|
|
180
180
|
"@babel/core": "^7.28.5",
|
|
181
181
|
"@babel/types": "^7.28.5",
|
|
182
|
-
"@powerlines/alloy": "^0.11.
|
|
183
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
184
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
182
|
+
"@powerlines/alloy": "^0.11.56",
|
|
183
|
+
"@powerlines/plugin-babel": "^0.12.56",
|
|
184
|
+
"@powerlines/plugin-plugin": "^0.11.55",
|
|
185
185
|
"@storm-software/config-tools": "^1.188.50",
|
|
186
|
-
"@stryke/capnp": "^0.12.
|
|
187
|
-
"@stryke/env": "^0.20.
|
|
188
|
-
"@stryke/fs": "^0.33.
|
|
189
|
-
"@stryke/json": "^0.9.
|
|
190
|
-
"@stryke/string-format": "^0.12.
|
|
191
|
-
"@stryke/type-checks": "^0.3
|
|
192
|
-
"@stryke/types": "^0.10.
|
|
193
|
-
"powerlines": "^0.
|
|
186
|
+
"@stryke/capnp": "^0.12.32",
|
|
187
|
+
"@stryke/env": "^0.20.25",
|
|
188
|
+
"@stryke/fs": "^0.33.8",
|
|
189
|
+
"@stryke/json": "^0.9.15",
|
|
190
|
+
"@stryke/string-format": "^0.12.12",
|
|
191
|
+
"@stryke/type-checks": "^0.4.3",
|
|
192
|
+
"@stryke/types": "^0.10.12",
|
|
193
|
+
"powerlines": "^0.28.0"
|
|
194
194
|
},
|
|
195
195
|
"devDependencies": {
|
|
196
196
|
"@alloy-js/babel-preset": "^0.2.1",
|
|
197
197
|
"@babel/preset-typescript": "^7.28.5",
|
|
198
|
-
"@powerlines/nx": "^0.10.
|
|
198
|
+
"@powerlines/nx": "^0.10.47",
|
|
199
199
|
"@storm-software/tsup": "^0.2.48",
|
|
200
200
|
"@types/node": "^24.10.1",
|
|
201
201
|
"tsup": "8.4.0",
|
|
@@ -203,5 +203,5 @@
|
|
|
203
203
|
"vite": "^7.2.4"
|
|
204
204
|
},
|
|
205
205
|
"publishConfig": { "access": "public" },
|
|
206
|
-
"gitHead": "
|
|
206
|
+
"gitHead": "3feaa815e117c46d827eee84c3521e54670abb9b"
|
|
207
207
|
}
|