@powerlines/plugin-date 0.12.259 → 0.12.261

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.
Files changed (51) hide show
  1. package/dist/index.cjs +3 -2
  2. package/dist/index.d.cts +1 -1
  3. package/dist/index.d.mts +1 -1
  4. package/dist/index.mjs +1 -1
  5. package/dist/types/plugin.d.cts +1 -1
  6. package/dist/types/plugin.d.mts +1 -1
  7. package/package.json +4 -4
  8. package/dist/deepkit/schemas/reflection.d.cts +0 -1560
  9. package/dist/deepkit/src/types.d.cts +0 -10
  10. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
  11. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -42
  12. package/dist/packages/deepkit/schemas/reflection.d.mts +0 -1560
  13. package/dist/packages/deepkit/src/types.d.mts +0 -10
  14. package/dist/packages/plugin-alloy/src/types/plugin.d.mts +0 -36
  15. package/dist/packages/plugin-automd/src/types/plugin.d.mts +0 -38
  16. package/dist/packages/plugin-automd/src/types/toc.d.mts +0 -33
  17. package/dist/packages/plugin-babel/src/types/plugin.d.mts +0 -15
  18. package/dist/packages/plugin-env/src/types/plugin.d.mts +0 -148
  19. package/dist/packages/plugin-env/src/types/runtime.d.mts +0 -789
  20. package/dist/packages/powerlines/src/internal/helpers/hooks.d.mts +0 -47
  21. package/dist/packages/powerlines/src/types/api.d.mts +0 -104
  22. package/dist/packages/powerlines/src/types/babel.d.mts +0 -22
  23. package/dist/packages/powerlines/src/types/build.d.mts +0 -185
  24. package/dist/packages/powerlines/src/types/commands.d.mts +0 -8
  25. package/dist/packages/powerlines/src/types/config.d.mts +0 -435
  26. package/dist/packages/powerlines/src/types/context.d.mts +0 -514
  27. package/dist/packages/powerlines/src/types/fs.d.mts +0 -486
  28. package/dist/packages/powerlines/src/types/hooks.d.mts +0 -32
  29. package/dist/packages/powerlines/src/types/plugin.d.mts +0 -205
  30. package/dist/packages/powerlines/src/types/resolved.d.mts +0 -94
  31. package/dist/packages/powerlines/src/types/tsconfig.d.mts +0 -69
  32. package/dist/packages/powerlines/src/types/unplugin.d.mts +0 -22
  33. package/dist/plugin-alloy/src/types/plugin.d.cts +0 -36
  34. package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
  35. package/dist/plugin-automd/src/types/toc.d.cts +0 -33
  36. package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
  37. package/dist/plugin-env/src/types/plugin.d.cts +0 -148
  38. package/dist/plugin-env/src/types/runtime.d.cts +0 -789
  39. package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
  40. package/dist/powerlines/src/types/api.d.cts +0 -104
  41. package/dist/powerlines/src/types/babel.d.cts +0 -22
  42. package/dist/powerlines/src/types/build.d.cts +0 -185
  43. package/dist/powerlines/src/types/commands.d.cts +0 -8
  44. package/dist/powerlines/src/types/config.d.cts +0 -435
  45. package/dist/powerlines/src/types/context.d.cts +0 -514
  46. package/dist/powerlines/src/types/fs.d.cts +0 -486
  47. package/dist/powerlines/src/types/hooks.d.cts +0 -32
  48. package/dist/powerlines/src/types/plugin.d.cts +0 -205
  49. package/dist/powerlines/src/types/resolved.d.cts +0 -94
  50. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  51. package/dist/powerlines/src/types/unplugin.d.cts +0 -22
package/dist/index.cjs CHANGED
@@ -1,6 +1,5 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_defu = require('./node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs');
4
3
  const require_date_fns = require('./components/date-fns.cjs');
5
4
  const require_dayjs = require('./components/dayjs.cjs');
6
5
  const require_luxon = require('./components/luxon.cjs');
@@ -8,6 +7,8 @@ const require_moment = require('./components/moment.cjs');
8
7
  require('./components/index.cjs');
9
8
  let __powerlines_plugin_env = require("@powerlines/plugin-env");
10
9
  __powerlines_plugin_env = require_rolldown_runtime.__toESM(__powerlines_plugin_env);
10
+ let defu = require("defu");
11
+ defu = require_rolldown_runtime.__toESM(defu);
11
12
 
12
13
  //#region src/index.ts
13
14
  /**
@@ -18,7 +19,7 @@ function plugin(options = {}) {
18
19
  name: "date",
19
20
  async config() {
20
21
  this.debug("Providing default configuration for the Powerlines `date` build plugin.");
21
- const config = { date: require_defu.defu(options, { type: "date-fns" }) };
22
+ const config = { date: (0, defu.default)(options, { type: "date-fns" }) };
22
23
  if (!config.date.type || ![
23
24
  "date-fns",
24
25
  "dayjs",
package/dist/index.d.cts CHANGED
@@ -1,4 +1,3 @@
1
- import { Plugin } from "./powerlines/src/types/plugin.cjs";
2
1
  import { DateLibraryType, DatePluginContext, DatePluginOptions, DatePluginResolvedConfig, DatePluginUserConfig, __ΩDateLibraryType, __ΩDatePluginContext, __ΩDatePluginOptions, __ΩDatePluginResolvedConfig, __ΩDatePluginUserConfig } from "./types/plugin.cjs";
3
2
  import { dateFnsModule } from "./components/date-fns.cjs";
4
3
  import { dayjsModule } from "./components/dayjs.cjs";
@@ -7,6 +6,7 @@ import { momentModule } from "./components/moment.cjs";
7
6
  import "./components/index.cjs";
8
7
  import { DateFormats, StormDateInterface, TimeUnit, __ΩDateFormats, __ΩStormDateInterface, __ΩTimeUnit } from "./types/runtime.cjs";
9
8
  import "./types/index.cjs";
9
+ import { Plugin } from "powerlines/types/plugin";
10
10
 
11
11
  //#region src/index.d.ts
12
12
  /**
package/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- import { Plugin } from "./packages/powerlines/src/types/plugin.mjs";
2
1
  import { DateLibraryType, DatePluginContext, DatePluginOptions, DatePluginResolvedConfig, DatePluginUserConfig, __ΩDateLibraryType, __ΩDatePluginContext, __ΩDatePluginOptions, __ΩDatePluginResolvedConfig, __ΩDatePluginUserConfig } from "./types/plugin.mjs";
3
2
  import { dateFnsModule } from "./components/date-fns.mjs";
4
3
  import { dayjsModule } from "./components/dayjs.mjs";
@@ -7,6 +6,7 @@ import { momentModule } from "./components/moment.mjs";
7
6
  import "./components/index.mjs";
8
7
  import { DateFormats, StormDateInterface, TimeUnit, __ΩDateFormats, __ΩStormDateInterface, __ΩTimeUnit } from "./types/runtime.mjs";
9
8
  import "./types/index.mjs";
9
+ import { Plugin } from "powerlines/types/plugin";
10
10
 
11
11
  //#region src/index.d.ts
12
12
  /**
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { defu } from "./node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs";
2
1
  import { dateFnsModule } from "./components/date-fns.mjs";
3
2
  import { dayjsModule } from "./components/dayjs.mjs";
4
3
  import { luxonModule } from "./components/luxon.mjs";
5
4
  import { momentModule } from "./components/moment.mjs";
6
5
  import "./components/index.mjs";
7
6
  import env from "@powerlines/plugin-env";
7
+ import defu from "defu";
8
8
 
9
9
  //#region src/index.ts
10
10
  /**
@@ -1,4 +1,4 @@
1
- import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "../plugin-env/src/types/plugin.cjs";
1
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "@powerlines/plugin-env/types/plugin";
2
2
 
3
3
  //#region src/types/plugin.d.ts
4
4
  type DateLibraryType = "date-fns" | "dayjs" | "luxon" | "moment";
@@ -1,4 +1,4 @@
1
- import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "../packages/plugin-env/src/types/plugin.mjs";
1
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "@powerlines/plugin-env/types/plugin";
2
2
 
3
3
  //#region src/types/plugin.d.ts
4
4
  type DateLibraryType = "date-fns" | "dayjs" | "luxon" | "moment";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-date",
3
- "version": "0.12.259",
3
+ "version": "0.12.261",
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.121",
131
+ "@powerlines/plugin-env": "^0.15.123",
132
132
  "@storm-software/config-tools": "^1.189.0",
133
133
  "@stryke/path": "^0.26.0",
134
134
  "powerlines": "^0.37.95"
135
135
  },
136
136
  "devDependencies": {
137
- "@powerlines/plugin-plugin": "^0.12.173",
137
+ "@powerlines/plugin-plugin": "^0.12.175",
138
138
  "@types/node": "^24.10.9"
139
139
  },
140
140
  "publishConfig": { "access": "public" },
141
- "gitHead": "e16caf75f522908b123bf7941a1f0f658fe4ba7b"
141
+ "gitHead": "f153baa7a374fe331eeb1b8ea37c30c379c5efce"
142
142
  }