@powerlines/plugin-date 0.12.227 → 0.12.229

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.
@@ -13,7 +13,7 @@ function dateFnsModule(context) {
13
13
  /**
14
14
  * The Date module provides utility functions for date manipulation and formatting
15
15
  *
16
- * @module ${context.config.output.builtinPrefix}:date
16
+ * @module ${context.config.framework}:date
17
17
  */
18
18
 
19
19
  ${(0, powerlines_lib_utilities_file_header.getFileHeader)(context)}
@@ -12,7 +12,7 @@ function dateFnsModule(context) {
12
12
  /**
13
13
  * The Date module provides utility functions for date manipulation and formatting
14
14
  *
15
- * @module ${context.config.output.builtinPrefix}:date
15
+ * @module ${context.config.framework}:date
16
16
  */
17
17
 
18
18
  ${getFileHeader(context)}
@@ -13,7 +13,7 @@ function dayjsModule(context) {
13
13
  /**
14
14
  * The Date module provides utility functions for date manipulation and formatting
15
15
  *
16
- * @module ${context.config.output.builtinPrefix}:date
16
+ * @module ${context.config.framework}:date
17
17
  */
18
18
 
19
19
  ${(0, powerlines_lib_utilities_file_header.getFileHeader)(context)}
@@ -12,7 +12,7 @@ function dayjsModule(context) {
12
12
  /**
13
13
  * The Date module provides utility functions for date manipulation and formatting
14
14
  *
15
- * @module ${context.config.output.builtinPrefix}:date
15
+ * @module ${context.config.framework}:date
16
16
  */
17
17
 
18
18
  ${getFileHeader(context)}
@@ -13,7 +13,7 @@ function luxonModule(context) {
13
13
  /**
14
14
  * The Date module provides utility functions for date manipulation and formatting
15
15
  *
16
- * @module ${context.config.output.builtinPrefix}:date
16
+ * @module ${context.config.framework}:date
17
17
  */
18
18
 
19
19
  ${(0, powerlines_lib_utilities_file_header.getFileHeader)(context)}
@@ -12,7 +12,7 @@ function luxonModule(context) {
12
12
  /**
13
13
  * The Date module provides utility functions for date manipulation and formatting
14
14
  *
15
- * @module ${context.config.output.builtinPrefix}:date
15
+ * @module ${context.config.framework}:date
16
16
  */
17
17
 
18
18
  ${getFileHeader(context)}
@@ -13,7 +13,7 @@ function momentModule(context) {
13
13
  /**
14
14
  * The Date module provides utility functions for date manipulation and formatting
15
15
  *
16
- * @module ${context.config.output.builtinPrefix}:date
16
+ * @module ${context.config.framework}:date
17
17
  */
18
18
 
19
19
  ${(0, powerlines_lib_utilities_file_header.getFileHeader)(context)}
@@ -12,7 +12,7 @@ function momentModule(context) {
12
12
  /**
13
13
  * The Date module provides utility functions for date manipulation and formatting
14
14
  *
15
- * @module ${context.config.output.builtinPrefix}:date
15
+ * @module ${context.config.framework}:date
16
16
  */
17
17
 
18
18
  ${getFileHeader(context)}
@@ -102,15 +102,6 @@ interface OutputConfig {
102
102
  * @defaultValue "\{projectRoot\}/powerlines.d.ts"
103
103
  */
104
104
  dts?: string | false;
105
- /**
106
- * A prefix to use for identifying builtin modules
107
- *
108
- * @remarks
109
- * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
110
- *
111
- * @defaultValue "powerlines"
112
- */
113
- builtinPrefix?: string;
114
105
  /**
115
106
  * The module format of the output files
116
107
  *
@@ -346,7 +337,7 @@ interface CommonUserConfig extends BaseConfig {
346
337
  * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
347
338
  *
348
339
  * @remarks
349
- * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
340
+ * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
350
341
  *
351
342
  * @defaultValue "powerlines"
352
343
  */
@@ -226,6 +226,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
226
226
  * The builtin module id that exist in the Powerlines virtual file system
227
227
  */
228
228
  builtins: string[];
229
+ /**
230
+ * The alias mappings for the project used during module resolution
231
+ *
232
+ * @remarks
233
+ * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
234
+ */
235
+ alias: Record<string, string>;
229
236
  /**
230
237
  * The {@link Project} instance used for type reflection and module manipulation
231
238
  *
@@ -102,15 +102,6 @@ interface OutputConfig {
102
102
  * @defaultValue "\{projectRoot\}/powerlines.d.ts"
103
103
  */
104
104
  dts?: string | false;
105
- /**
106
- * A prefix to use for identifying builtin modules
107
- *
108
- * @remarks
109
- * This prefix will be used to identify all builtin modules generated during the "prepare" phase. An example builtin ID for a module called `"utils"` would be `"{builtinPrefix}:utils"`.
110
- *
111
- * @defaultValue "powerlines"
112
- */
113
- builtinPrefix?: string;
114
105
  /**
115
106
  * The module format of the output files
116
107
  *
@@ -346,7 +337,7 @@ interface CommonUserConfig extends BaseConfig {
346
337
  * A string identifier that allows a child framework or tool to identify itself when using Powerlines.
347
338
  *
348
339
  * @remarks
349
- * If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
340
+ * If no values are provided for {@link OutputConfig.dts | output.dts} or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
350
341
  *
351
342
  * @defaultValue "powerlines"
352
343
  */
@@ -226,6 +226,13 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
226
226
  * The builtin module id that exist in the Powerlines virtual file system
227
227
  */
228
228
  builtins: string[];
229
+ /**
230
+ * The alias mappings for the project used during module resolution
231
+ *
232
+ * @remarks
233
+ * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
234
+ */
235
+ alias: Record<string, string>;
229
236
  /**
230
237
  * The {@link Project} instance used for type reflection and module manipulation
231
238
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-date",
3
- "version": "0.12.227",
3
+ "version": "0.12.229",
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.89",
131
+ "@powerlines/plugin-env": "^0.15.91",
132
132
  "@storm-software/config-tools": "^1.188.80",
133
133
  "@stryke/path": "^0.26.0",
134
- "powerlines": "^0.37.70"
134
+ "powerlines": "^0.37.72"
135
135
  },
136
136
  "devDependencies": {
137
- "@powerlines/plugin-plugin": "^0.12.148",
137
+ "@powerlines/plugin-plugin": "^0.12.150",
138
138
  "@types/node": "^24.10.9"
139
139
  },
140
140
  "publishConfig": { "access": "public" },
141
- "gitHead": "49824cd670e66c1adee0b6da4008c3d8aed5a8a4"
141
+ "gitHead": "458556ca7def9536d1c1fbd770e005a004d0a513"
142
142
  }