@powerlines/plugin-date 0.12.148 → 0.12.150

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.
@@ -19,7 +19,9 @@ let __stryke_type_checks_is_empty_object = require("@stryke/type-checks/is-empty
19
19
  * @returns The runtime type definition file for the environment variables.
20
20
  */
21
21
  async function resolveRuntimeTypeFile(context) {
22
- return context.resolver.esmResolve("@powerlines/plugin-env/types/runtime");
22
+ const resolved = await context.fs.resolve("@powerlines/plugin-env/types/runtime");
23
+ if (!resolved) throw new Error(`Failed to resolve the runtime type definition file for the environment variables. Please ensure that the "@powerlines/plugin-env" package is installed.`);
24
+ return resolved;
23
25
  }
24
26
  /**
25
27
  * Gets the default type definition for the environment variables.
@@ -17,7 +17,9 @@ import { isEmptyObject } from "@stryke/type-checks/is-empty-object";
17
17
  * @returns The runtime type definition file for the environment variables.
18
18
  */
19
19
  async function resolveRuntimeTypeFile(context) {
20
- return context.resolver.esmResolve("@powerlines/plugin-env/types/runtime");
20
+ const resolved = await context.fs.resolve("@powerlines/plugin-env/types/runtime");
21
+ if (!resolved) throw new Error(`Failed to resolve the runtime type definition file for the environment variables. Please ensure that the "@powerlines/plugin-env" package is installed.`);
22
+ return resolved;
21
23
  }
22
24
  /**
23
25
  * Gets the default type definition for the environment variables.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-date",
3
- "version": "0.12.148",
3
+ "version": "0.12.150",
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": {
@@ -128,15 +128,15 @@
128
128
  "files": ["dist/**/*"],
129
129
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
130
130
  "dependencies": {
131
- "@powerlines/plugin-env": "^0.15.10",
131
+ "@powerlines/plugin-env": "^0.15.12",
132
132
  "@storm-software/config-tools": "^1.188.75",
133
133
  "@stryke/path": "^0.24.1",
134
- "powerlines": "^0.37.0"
134
+ "powerlines": "^0.37.1"
135
135
  },
136
136
  "devDependencies": {
137
- "@powerlines/nx": "^0.11.56",
137
+ "@powerlines/nx": "^0.11.57",
138
138
  "@types/node": "^24.10.4"
139
139
  },
140
140
  "publishConfig": { "access": "public" },
141
- "gitHead": "00141b82214ec2772cec7ec7873aba06f593289b"
141
+ "gitHead": "9567467b551ffd217efb054b6eee482a880bc672"
142
142
  }