@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.
- package/dist/index.cjs +3 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/package.json +4 -4
- package/dist/deepkit/schemas/reflection.d.cts +0 -1560
- package/dist/deepkit/src/types.d.cts +0 -10
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -42
- package/dist/packages/deepkit/schemas/reflection.d.mts +0 -1560
- package/dist/packages/deepkit/src/types.d.mts +0 -10
- package/dist/packages/plugin-alloy/src/types/plugin.d.mts +0 -36
- package/dist/packages/plugin-automd/src/types/plugin.d.mts +0 -38
- package/dist/packages/plugin-automd/src/types/toc.d.mts +0 -33
- package/dist/packages/plugin-babel/src/types/plugin.d.mts +0 -15
- package/dist/packages/plugin-env/src/types/plugin.d.mts +0 -148
- package/dist/packages/plugin-env/src/types/runtime.d.mts +0 -789
- package/dist/packages/powerlines/src/internal/helpers/hooks.d.mts +0 -47
- package/dist/packages/powerlines/src/types/api.d.mts +0 -104
- package/dist/packages/powerlines/src/types/babel.d.mts +0 -22
- package/dist/packages/powerlines/src/types/build.d.mts +0 -185
- package/dist/packages/powerlines/src/types/commands.d.mts +0 -8
- package/dist/packages/powerlines/src/types/config.d.mts +0 -435
- package/dist/packages/powerlines/src/types/context.d.mts +0 -514
- package/dist/packages/powerlines/src/types/fs.d.mts +0 -486
- package/dist/packages/powerlines/src/types/hooks.d.mts +0 -32
- package/dist/packages/powerlines/src/types/plugin.d.mts +0 -205
- package/dist/packages/powerlines/src/types/resolved.d.mts +0 -94
- package/dist/packages/powerlines/src/types/tsconfig.d.mts +0 -69
- package/dist/packages/powerlines/src/types/unplugin.d.mts +0 -22
- package/dist/plugin-alloy/src/types/plugin.d.cts +0 -36
- package/dist/plugin-automd/src/types/plugin.d.cts +0 -38
- package/dist/plugin-automd/src/types/toc.d.cts +0 -33
- package/dist/plugin-babel/src/types/plugin.d.cts +0 -15
- package/dist/plugin-env/src/types/plugin.d.cts +0 -148
- package/dist/plugin-env/src/types/runtime.d.cts +0 -789
- package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
- package/dist/powerlines/src/types/api.d.cts +0 -104
- package/dist/powerlines/src/types/babel.d.cts +0 -22
- package/dist/powerlines/src/types/build.d.cts +0 -185
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/config.d.cts +0 -435
- package/dist/powerlines/src/types/context.d.cts +0 -514
- package/dist/powerlines/src/types/fs.d.cts +0 -486
- package/dist/powerlines/src/types/hooks.d.cts +0 -32
- package/dist/powerlines/src/types/plugin.d.cts +0 -205
- package/dist/powerlines/src/types/resolved.d.cts +0 -94
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- 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:
|
|
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
|
/**
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "
|
|
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/dist/types/plugin.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig } from "
|
|
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.
|
|
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.
|
|
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.
|
|
137
|
+
"@powerlines/plugin-plugin": "^0.12.175",
|
|
138
138
|
"@types/node": "^24.10.9"
|
|
139
139
|
},
|
|
140
140
|
"publishConfig": { "access": "public" },
|
|
141
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "f153baa7a374fe331eeb1b8ea37c30c379c5efce"
|
|
142
142
|
}
|