unplugin-version-injector 1.1.1-alpha.5 → 1.1.2-beta.0

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/vite.js ADDED
@@ -0,0 +1,64 @@
1
+ 'use strict';
2
+
3
+ var fs = require('fs');
4
+ var path = require('path');
5
+
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+
8
+ var fs__default = /*#__PURE__*/_interopDefault(fs);
9
+ var path__default = /*#__PURE__*/_interopDefault(path);
10
+
11
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
12
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
13
+ }) : x)(function(x) {
14
+ if (typeof require !== "undefined") return require.apply(this, arguments);
15
+ throw Error('Dynamic require of "' + x + '" is not supported');
16
+ });
17
+ function getPackageVersion() {
18
+ try {
19
+ const packageJsonPath = path__default.default.resolve(process.cwd(), "package.json");
20
+ if (fs__default.default.existsSync(packageJsonPath)) {
21
+ return __require(packageJsonPath).version;
22
+ }
23
+ } catch (error) {
24
+ console.warn("[VersionInjector] Failed to read package.json:", error);
25
+ }
26
+ return "0.0.0";
27
+ }
28
+ function defaultFormatDate(date) {
29
+ return date.toISOString();
30
+ }
31
+
32
+ // src/core.ts
33
+ function createVersionInjector(options = {}) {
34
+ var _a, _b;
35
+ const version = (_a = options.version) != null ? _a : getPackageVersion();
36
+ ((_b = options.formatDate) != null ? _b : defaultFormatDate)(/* @__PURE__ */ new Date());
37
+ const metaTag = `<meta name="version" content="${version}">
38
+ `;
39
+ const logScript = `<script data-injected="unplugin-version-injector">console.log(...)</script>`;
40
+ return function processHtml(html) {
41
+ if (!html.includes('<meta name="version"')) {
42
+ html = html.replace(/<head>/, `<head>
43
+ ${metaTag}`);
44
+ }
45
+ if (!html.includes('<script data-injected="unplugin-version-injector"')) {
46
+ html = html.replace("</body>", ` ${logScript}
47
+ </body>`);
48
+ }
49
+ return html;
50
+ };
51
+ }
52
+
53
+ // src/vite.ts
54
+ function versionInjectorPlugin(options = {}) {
55
+ const inject = createVersionInjector(options);
56
+ return {
57
+ name: "vite-version-injector",
58
+ transformIndexHtml(html) {
59
+ return inject(html);
60
+ }
61
+ };
62
+ }
63
+
64
+ module.exports = versionInjectorPlugin;
package/dist/vite.mjs ADDED
@@ -0,0 +1,57 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+
4
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
5
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
6
+ }) : x)(function(x) {
7
+ if (typeof require !== "undefined") return require.apply(this, arguments);
8
+ throw Error('Dynamic require of "' + x + '" is not supported');
9
+ });
10
+ function getPackageVersion() {
11
+ try {
12
+ const packageJsonPath = path.resolve(process.cwd(), "package.json");
13
+ if (fs.existsSync(packageJsonPath)) {
14
+ return __require(packageJsonPath).version;
15
+ }
16
+ } catch (error) {
17
+ console.warn("[VersionInjector] Failed to read package.json:", error);
18
+ }
19
+ return "0.0.0";
20
+ }
21
+ function defaultFormatDate(date) {
22
+ return date.toISOString();
23
+ }
24
+
25
+ // src/core.ts
26
+ function createVersionInjector(options = {}) {
27
+ var _a, _b;
28
+ const version = (_a = options.version) != null ? _a : getPackageVersion();
29
+ ((_b = options.formatDate) != null ? _b : defaultFormatDate)(/* @__PURE__ */ new Date());
30
+ const metaTag = `<meta name="version" content="${version}">
31
+ `;
32
+ const logScript = `<script data-injected="unplugin-version-injector">console.log(...)</script>`;
33
+ return function processHtml(html) {
34
+ if (!html.includes('<meta name="version"')) {
35
+ html = html.replace(/<head>/, `<head>
36
+ ${metaTag}`);
37
+ }
38
+ if (!html.includes('<script data-injected="unplugin-version-injector"')) {
39
+ html = html.replace("</body>", ` ${logScript}
40
+ </body>`);
41
+ }
42
+ return html;
43
+ };
44
+ }
45
+
46
+ // src/vite.ts
47
+ function versionInjectorPlugin(options = {}) {
48
+ const inject = createVersionInjector(options);
49
+ return {
50
+ name: "vite-version-injector",
51
+ transformIndexHtml(html) {
52
+ return inject(html);
53
+ }
54
+ };
55
+ }
56
+
57
+ export { versionInjectorPlugin as default };
@@ -1,6 +1,7 @@
1
- import * as webpack from 'webpack';
2
- import { V as VersionInjectorOptions } from './types-DEOBLqEx.mjs';
1
+ import { Compiler } from 'webpack';
3
2
 
4
- declare function versionInjector(options?: VersionInjectorOptions): webpack.WebpackPluginInstance;
3
+ declare function versionInjectorPlugin(options?: {}): {
4
+ apply(compiler: Compiler): void;
5
+ };
5
6
 
6
- export { versionInjector as default };
7
+ export { versionInjectorPlugin as default };
package/dist/webpack.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import * as webpack from 'webpack';
2
- import { V as VersionInjectorOptions } from './types-DEOBLqEx.js';
1
+ import { Compiler } from 'webpack';
3
2
 
4
- declare function versionInjector(options?: VersionInjectorOptions): webpack.WebpackPluginInstance;
3
+ declare function versionInjectorPlugin(options?: {}): {
4
+ apply(compiler: Compiler): void;
5
+ };
5
6
 
6
- export { versionInjector as default };
7
+ export { versionInjectorPlugin as default };
package/dist/webpack.js CHANGED
@@ -1,146 +1,81 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
29
2
 
30
- // src/webpack.ts
31
- var webpack_exports = {};
32
- __export(webpack_exports, {
33
- default: () => webpack_default
34
- });
35
- module.exports = __toCommonJS(webpack_exports);
3
+ var fs = require('fs');
4
+ var path = require('path');
36
5
 
37
- // src/core.ts
38
- var import_unplugin = require("unplugin");
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
39
7
 
40
- // src/utils.ts
41
- var import_node_fs = __toESM(require("fs"));
42
- var import_node_path = __toESM(require("path"));
43
- var import_node_url = require("url");
44
- var import_meta = {};
45
- function getCurrentDir() {
46
- try {
47
- return import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
48
- } catch (e) {
49
- return process.cwd();
50
- }
51
- }
8
+ var fs__default = /*#__PURE__*/_interopDefault(fs);
9
+ var path__default = /*#__PURE__*/_interopDefault(path);
10
+
11
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
12
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
13
+ }) : x)(function(x) {
14
+ if (typeof require !== "undefined") return require.apply(this, arguments);
15
+ throw Error('Dynamic require of "' + x + '" is not supported');
16
+ });
52
17
  function getPackageVersion() {
53
- var _a;
54
18
  try {
55
- let dir = getCurrentDir();
56
- while (dir !== import_node_path.default.parse(dir).root) {
57
- const pkgPath = import_node_path.default.join(dir, "package.json");
58
- if (import_node_fs.default.existsSync(pkgPath)) {
59
- const content = import_node_fs.default.readFileSync(pkgPath, "utf-8");
60
- const pkg = JSON.parse(content);
61
- return (_a = pkg.version) != null ? _a : "0.0.0";
62
- }
63
- dir = import_node_path.default.dirname(dir);
19
+ const packageJsonPath = path__default.default.resolve(process.cwd(), "package.json");
20
+ if (fs__default.default.existsSync(packageJsonPath)) {
21
+ return __require(packageJsonPath).version;
64
22
  }
65
- console.warn("[VersionInjector] package.json not found");
66
- return "0.0.0";
67
- } catch (err) {
68
- console.warn("[VersionInjector] Failed to read package.json:", err);
69
- return "0.0.0";
23
+ } catch (error) {
24
+ console.warn("[VersionInjector] Failed to read package.json:", error);
70
25
  }
26
+ return "0.0.0";
71
27
  }
72
28
  function defaultFormatDate(date) {
73
29
  return date.toISOString();
74
30
  }
75
31
 
76
32
  // src/core.ts
77
- var dayjs;
78
- var versionInjectorPlugin = (0, import_unplugin.createUnplugin)((options = {}) => {
79
- const {
80
- version = getPackageVersion(),
81
- formatDate,
82
- dateFormat,
83
- injectToHead = true,
84
- injectToBody = true
85
- } = options;
86
- let resolvedFormatDate = defaultFormatDate;
87
- if (typeof formatDate === "function") {
88
- resolvedFormatDate = formatDate;
89
- } else if (typeof dateFormat === "string") {
90
- try {
91
- dayjs = require("dayjs");
92
- resolvedFormatDate = (d) => dayjs(d).format(dateFormat);
93
- } catch (err) {
94
- console.warn("[unplugin-version-injector] To use `dateFormat`, please install `dayjs` manually.");
95
- }
96
- }
97
- if (!injectToHead && !injectToBody) {
98
- return { name: "unplugin-version-injector" };
99
- }
100
- const buildTime = resolvedFormatDate(/* @__PURE__ */ new Date());
33
+ function createVersionInjector(options = {}) {
34
+ var _a, _b;
35
+ const version = (_a = options.version) != null ? _a : getPackageVersion();
36
+ ((_b = options.formatDate) != null ? _b : defaultFormatDate)(/* @__PURE__ */ new Date());
101
37
  const metaTag = `<meta name="version" content="${version}">
102
38
  `;
103
- const logScript = `
104
- <script>
105
- console.log("%c Version: ${version} ", "background: #222; color: #00ff00; font-size: 12px; padding: 4px; border-radius: 4px;");
106
- console.log("%c Build Time: ${buildTime} ", "background: #222; color: #ffcc00; font-size: 12px; padding: 4px; border-radius: 4px;");
107
- </script>`;
108
- function processHtml(html) {
109
- if (injectToHead && !html.includes('<meta name="version"')) {
39
+ const logScript = `<script data-injected="unplugin-version-injector">console.log(...)</script>`;
40
+ return function processHtml(html) {
41
+ if (!html.includes('<meta name="version"')) {
110
42
  html = html.replace(/<head>/, `<head>
111
43
  ${metaTag}`);
112
44
  }
113
- if (injectToBody && !html.includes('<script>console.log("%c Version:')) {
45
+ if (!html.includes('<script data-injected="unplugin-version-injector"')) {
114
46
  html = html.replace("</body>", ` ${logScript}
115
47
  </body>`);
116
48
  }
117
49
  return html;
118
- }
50
+ };
51
+ }
52
+
53
+ // src/webpack.ts
54
+ function versionInjectorPlugin(options = {}) {
55
+ const inject = createVersionInjector(options);
119
56
  return {
120
- name: "unplugin-version-injector",
121
- vite: {
122
- transformIndexHtml(html) {
123
- return processHtml(html);
124
- }
125
- },
126
- rollup: {
127
- generateBundle(_, bundle) {
128
- for (const file of Object.values(bundle)) {
129
- if (file.type === "asset" && file.fileName.endsWith(".html")) {
130
- file.source = processHtml(file.source);
131
- }
57
+ apply(compiler) {
58
+ var _a, _b;
59
+ const isWebpack5 = (_b = (_a = compiler.webpack) == null ? void 0 : _a.version) == null ? void 0 : _b.startsWith("5");
60
+ compiler.hooks.compilation.tap("webpack-version-injector", (compilation) => {
61
+ if (isWebpack5) {
62
+ const { Compilation, sources } = compiler.webpack;
63
+ compilation.hooks.processAssets.tap(
64
+ { name: "webpack-version-injector", stage: Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE },
65
+ (assets) => {
66
+ for (const name in assets) {
67
+ if (name.endsWith(".html")) {
68
+ const html = assets[name].source().toString();
69
+ const result = inject(html);
70
+ compilation.updateAsset(name, new sources.RawSource(result));
71
+ }
72
+ }
73
+ }
74
+ );
132
75
  }
133
- }
76
+ });
134
77
  }
135
78
  };
136
- });
137
-
138
- // src/webpack.ts
139
- function versionInjector(options = {}) {
140
- return versionInjectorPlugin.webpack(options);
141
- }
142
- var webpack_default = versionInjector;
143
- if (typeof module !== "undefined") {
144
- module.exports = versionInjector;
145
- module.exports.default = versionInjector;
146
79
  }
80
+
81
+ module.exports = versionInjectorPlugin;
package/dist/webpack.mjs CHANGED
@@ -1,120 +1,74 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+
1
4
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
5
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
6
  }) : x)(function(x) {
4
7
  if (typeof require !== "undefined") return require.apply(this, arguments);
5
8
  throw Error('Dynamic require of "' + x + '" is not supported');
6
9
  });
7
-
8
- // src/core.ts
9
- import { createUnplugin } from "unplugin";
10
-
11
- // src/utils.ts
12
- import fs from "node:fs";
13
- import path from "node:path";
14
- import { fileURLToPath } from "node:url";
15
- var import_meta = {};
16
- function getCurrentDir() {
17
- try {
18
- return path.dirname(fileURLToPath(import_meta.url));
19
- } catch (e) {
20
- return process.cwd();
21
- }
22
- }
23
10
  function getPackageVersion() {
24
- var _a;
25
11
  try {
26
- let dir = getCurrentDir();
27
- while (dir !== path.parse(dir).root) {
28
- const pkgPath = path.join(dir, "package.json");
29
- if (fs.existsSync(pkgPath)) {
30
- const content = fs.readFileSync(pkgPath, "utf-8");
31
- const pkg = JSON.parse(content);
32
- return (_a = pkg.version) != null ? _a : "0.0.0";
33
- }
34
- dir = path.dirname(dir);
12
+ const packageJsonPath = path.resolve(process.cwd(), "package.json");
13
+ if (fs.existsSync(packageJsonPath)) {
14
+ return __require(packageJsonPath).version;
35
15
  }
36
- console.warn("[VersionInjector] package.json not found");
37
- return "0.0.0";
38
- } catch (err) {
39
- console.warn("[VersionInjector] Failed to read package.json:", err);
40
- return "0.0.0";
16
+ } catch (error) {
17
+ console.warn("[VersionInjector] Failed to read package.json:", error);
41
18
  }
19
+ return "0.0.0";
42
20
  }
43
21
  function defaultFormatDate(date) {
44
22
  return date.toISOString();
45
23
  }
46
24
 
47
25
  // src/core.ts
48
- var dayjs;
49
- var versionInjectorPlugin = createUnplugin((options = {}) => {
50
- const {
51
- version = getPackageVersion(),
52
- formatDate,
53
- dateFormat,
54
- injectToHead = true,
55
- injectToBody = true
56
- } = options;
57
- let resolvedFormatDate = defaultFormatDate;
58
- if (typeof formatDate === "function") {
59
- resolvedFormatDate = formatDate;
60
- } else if (typeof dateFormat === "string") {
61
- try {
62
- dayjs = __require("dayjs");
63
- resolvedFormatDate = (d) => dayjs(d).format(dateFormat);
64
- } catch (err) {
65
- console.warn("[unplugin-version-injector] To use `dateFormat`, please install `dayjs` manually.");
66
- }
67
- }
68
- if (!injectToHead && !injectToBody) {
69
- return { name: "unplugin-version-injector" };
70
- }
71
- const buildTime = resolvedFormatDate(/* @__PURE__ */ new Date());
26
+ function createVersionInjector(options = {}) {
27
+ var _a, _b;
28
+ const version = (_a = options.version) != null ? _a : getPackageVersion();
29
+ ((_b = options.formatDate) != null ? _b : defaultFormatDate)(/* @__PURE__ */ new Date());
72
30
  const metaTag = `<meta name="version" content="${version}">
73
31
  `;
74
- const logScript = `
75
- <script>
76
- console.log("%c Version: ${version} ", "background: #222; color: #00ff00; font-size: 12px; padding: 4px; border-radius: 4px;");
77
- console.log("%c Build Time: ${buildTime} ", "background: #222; color: #ffcc00; font-size: 12px; padding: 4px; border-radius: 4px;");
78
- </script>`;
79
- function processHtml(html) {
80
- if (injectToHead && !html.includes('<meta name="version"')) {
32
+ const logScript = `<script data-injected="unplugin-version-injector">console.log(...)</script>`;
33
+ return function processHtml(html) {
34
+ if (!html.includes('<meta name="version"')) {
81
35
  html = html.replace(/<head>/, `<head>
82
36
  ${metaTag}`);
83
37
  }
84
- if (injectToBody && !html.includes('<script>console.log("%c Version:')) {
38
+ if (!html.includes('<script data-injected="unplugin-version-injector"')) {
85
39
  html = html.replace("</body>", ` ${logScript}
86
40
  </body>`);
87
41
  }
88
42
  return html;
89
- }
43
+ };
44
+ }
45
+
46
+ // src/webpack.ts
47
+ function versionInjectorPlugin(options = {}) {
48
+ const inject = createVersionInjector(options);
90
49
  return {
91
- name: "unplugin-version-injector",
92
- vite: {
93
- transformIndexHtml(html) {
94
- return processHtml(html);
95
- }
96
- },
97
- rollup: {
98
- generateBundle(_, bundle) {
99
- for (const file of Object.values(bundle)) {
100
- if (file.type === "asset" && file.fileName.endsWith(".html")) {
101
- file.source = processHtml(file.source);
102
- }
50
+ apply(compiler) {
51
+ var _a, _b;
52
+ const isWebpack5 = (_b = (_a = compiler.webpack) == null ? void 0 : _a.version) == null ? void 0 : _b.startsWith("5");
53
+ compiler.hooks.compilation.tap("webpack-version-injector", (compilation) => {
54
+ if (isWebpack5) {
55
+ const { Compilation, sources } = compiler.webpack;
56
+ compilation.hooks.processAssets.tap(
57
+ { name: "webpack-version-injector", stage: Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE },
58
+ (assets) => {
59
+ for (const name in assets) {
60
+ if (name.endsWith(".html")) {
61
+ const html = assets[name].source().toString();
62
+ const result = inject(html);
63
+ compilation.updateAsset(name, new sources.RawSource(result));
64
+ }
65
+ }
66
+ }
67
+ );
103
68
  }
104
- }
69
+ });
105
70
  }
106
71
  };
107
- });
108
-
109
- // src/webpack.ts
110
- function versionInjector(options = {}) {
111
- return versionInjectorPlugin.webpack(options);
112
72
  }
113
- var webpack_default = versionInjector;
114
- if (typeof module !== "undefined") {
115
- module.exports = versionInjector;
116
- module.exports.default = versionInjector;
117
- }
118
- export {
119
- webpack_default as default
120
- };
73
+
74
+ export { versionInjectorPlugin as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-version-injector",
3
- "version": "1.1.1-alpha.5",
3
+ "version": "1.1.2-beta.0",
4
4
  "author": "Nian Yi <nianyi778@gmail.com>",
5
5
  "license": "MIT",
6
6
  "description": "A universal plugin to inject version and build time into HTML (supports Webpack, Vite, Rollup)",
@@ -9,43 +9,52 @@
9
9
  "url": "https://github.com/nianyi778/unplugin-version-injector.git"
10
10
  },
11
11
  "keywords": [
12
- "unplugin",
13
12
  "version",
14
13
  "injector",
15
14
  "webpack",
16
15
  "vite",
17
16
  "rollup"
18
17
  ],
19
- "main": "./dist/core.js",
20
- "module": "./dist/core.mjs",
21
- "types": "./dist/core.d.ts",
18
+ "typesVersions": {
19
+ "*": {
20
+ "vite": [
21
+ "./dist/vite.d.ts"
22
+ ],
23
+ "webpack": [
24
+ "./dist/webpack.d.ts"
25
+ ],
26
+ "rollup": [
27
+ "./dist/rollup.d.ts"
28
+ ]
29
+ }
30
+ },
22
31
  "exports": {
23
- ".": {
24
- "import": "./dist/core.mjs",
25
- "require": "./dist/core.js"
26
- },
27
32
  "./vite": {
28
- "import": "./dist/core.mjs",
29
- "require": "./dist/core.js"
30
- },
31
- "./rollup": {
32
- "import": "./dist/core.mjs",
33
- "require": "./dist/core.js"
33
+ "import": "./dist/vite.mjs",
34
+ "require": "./dist/vite.js"
34
35
  },
35
36
  "./webpack": {
36
37
  "import": "./dist/webpack.mjs",
37
38
  "require": "./dist/webpack.js"
39
+ },
40
+ "./rollup": {
41
+ "import": "./dist/rollup.mjs",
42
+ "require": "./dist/rollup.js"
38
43
  }
39
44
  },
45
+ "scripts": {
46
+ "clean": "rm -rf dist",
47
+ "build": "tsup",
48
+ "prepublishOnly": "npm run build"
49
+ },
40
50
  "dependencies": {
41
- "tsup": "^8.4.0",
42
- "unplugin": "^1.0.0"
51
+ "tsup": "^8.4.0"
43
52
  },
44
53
  "devDependencies": {
45
- "rollup": "^3",
46
54
  "typescript": "^4.9.5",
55
+ "webpack": "^5",
47
56
  "vite": "^4",
48
- "webpack": "^5"
57
+ "rollup": "^3"
49
58
  },
50
59
  "publishConfig": {
51
60
  "access": "public"
@@ -55,9 +64,5 @@
55
64
  "README.md",
56
65
  "README.zh-CN.md"
57
66
  ],
58
- "scripts": {
59
- "clean": "rm -rf dist",
60
- "build": "tsup",
61
- "dev": "tsup --watch"
62
- }
63
- }
67
+ "packageManager": "pnpm@10.5.2+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b"
68
+ }
package/dist/core.d.mts DELETED
@@ -1,6 +0,0 @@
1
- import * as unplugin from 'unplugin';
2
- import { V as VersionInjectorOptions } from './types-DEOBLqEx.mjs';
3
-
4
- declare const versionInjectorPlugin: unplugin.UnpluginInstance<VersionInjectorOptions | undefined, boolean>;
5
-
6
- export { versionInjectorPlugin as default, versionInjectorPlugin };
package/dist/core.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import * as unplugin from 'unplugin';
2
- import { V as VersionInjectorOptions } from './types-DEOBLqEx.js';
3
-
4
- declare const versionInjectorPlugin: unplugin.UnpluginInstance<VersionInjectorOptions | undefined, boolean>;
5
-
6
- export { versionInjectorPlugin as default, versionInjectorPlugin };