Skip to content

Commit f789045

Browse files
committed
feat(utils-env): Added the env runtime checks helpers
1 parent 56fb887 commit f789045

27 files changed

+394
-93
lines changed

build/plugin/src/core/ctx.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ export function createContext(
136136
addons: [
137137
resolversAddon(resolvers as Resolver[]),
138138
{
139-
name: "unplugin-storm-stack:dts",
139+
name: "storm-stack:dts",
140140
declaration(dts) {
141141
return `${`
142142
/* eslint-disable */
143143
/* prettier-ignore */
144144
// @ts-nocheck
145145
// noinspection JSUnusedGlobalSymbols
146-
// Generated by unplugin-storm-stack
146+
// Generated by Storm Stack
147147
// biome-ignore lint: disable
148148
149149
${dts}

build/plugin/src/core/eslint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function generateESLintrcConfigs(
5353
}
5454

5555
return `
56-
// Generated by unplugin-storm-stack
56+
// Generated by Storm Stack
5757
5858
${exportStatement} ${JSON.stringify(
5959
{ globals: getESLintGlobals(imports, eslint, globals) },
@@ -84,7 +84,7 @@ export function generateESLintFlatConfigs(imports: Import[], eslint: ESLint) {
8484
const userConfigs = eslint.userConfigs ?? [];
8585

8686
return `
87-
// Generated by @storm-stack/build-plugin
87+
// Generated by Storm Stack
8888
8989
import { getStormConfig } from "@storm-software/eslint";
9090

build/plugin/src/core/resolvers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export async function firstMatchedResolver(
7676

7777
export function resolversAddon(resolvers: Resolver[]): Addon {
7878
return {
79-
name: "unplugin-storm-stack:resolvers",
79+
name: "storm-stack:resolvers",
8080
async matchImports(names, matched) {
8181
if (resolvers.length === 0) return;
8282
const dynamic: ImportExtended[] = [];

build/plugin/src/core/unplugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const unpluginFactory: UnpluginFactory<Options | undefined, false> = (
120120
};
121121

122122
return {
123-
name: "unplugin-storm-stack",
123+
name: "storm-stack",
124124
enforce: "post",
125125
transformInclude,
126126
transform,

build/plugin/src/presets/storm-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import type { ImportsMap } from "../types";
1919

2020
export default <ImportsMap>{
21-
"@storm-stack/env": ["StormEnv"],
21+
"@storm-stack/runtime": ["StormRuntime"],
2222
"@storm-stack/logging": ["StormLog"],
2323
"@storm-stack/trace": ["StormTrace"],
2424
"@storm-stack/date-time": ["StormDateTime", "StormDate", "StormTime"],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
"@storm-stack/hooks": "0.25.1",
192192
"@storm-stack/env": "0.1.0",
193193
"@storm-stack/build-plugin": "0.2.1",
194-
"@storm-stack/build-nx": "0.0.0",
194+
"@storm-stack/build-nx": "1.4.2",
195195
"@storm-stack/build-core": "0.1.1",
196196
"@storm-stack/tools-config": "0.0.1",
197197
"@storm-stack/cli-helpers": "0.0.1",

packages/base/env/jest.config.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/base/env/project.json

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
22
"extends": "../../../tsconfig.base.json",
33
"compilerOptions": {
4-
"outDir": "../../../dist/out-tsc",
5-
"noEmit": true
4+
"outDir": "../../../dist/out-tsc"
65
},
7-
"files": [],
86
"include": ["src/**/*.ts", "src/**/*.js", "bin/**/*"],
9-
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
10-
"composite": true
7+
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
118
}
File renamed without changes.

0 commit comments

Comments
 (0)