@liangmi/vp-config 0.3.2 → 0.4.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/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { UserConfig, defineConfig } from "vite-plus";
2
2
  import { PackUserConfig } from "vite-plus/pack";
3
-
4
3
  //#region src/entry.d.ts
5
4
  interface PresetConfig {
6
5
  fmt?: UserConfig['fmt'];
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as writeRuntimeInfo } from "./info-XwsgbUrs.mjs";
1
+ import { c as writeRuntimeInfo } from "./info-DJqaJFGi.mjs";
2
2
  import { defineConfig, mergeConfig } from "vite-plus";
3
3
  //#region src/base/fmt.ts
4
4
  const fmtBase = {
@@ -79,6 +79,7 @@ const style = {
79
79
  "init-declarations": "off",
80
80
  "import/no-anonymous-default-export": "off",
81
81
  "unicorn/no-await-expression-member": "off",
82
+ "unicorn/explicit-timer-delay": "off",
82
83
  "max-params": "off",
83
84
  "max-statements": "off",
84
85
  "no-continue": "off",
@@ -123,7 +124,6 @@ const restriction = {
123
124
  "oxc/no-const-enum": "error",
124
125
  "no-dynamic-require": "error",
125
126
  "no-empty": "error",
126
- "no-explicit-any": "error",
127
127
  "no-implicit-globals": "error",
128
128
  "typescript/no-import-type-side-effects": "error",
129
129
  "typescript/no-invalid-void-type": "error",
@@ -272,6 +272,7 @@ const lintBase = {
272
272
  "vitest/prefer-expect-assertions": "off",
273
273
  "vitest/prefer-importing-vitest-globals": "off",
274
274
  "vitest/no-importing-vitest-globals": "off",
275
+ "vitest/padding-around-test-blocks": "off",
275
276
  "vitest/no-large-snapshots": "off",
276
277
  "vitest/no-restricted-matchers": "off",
277
278
  "vitest/no-restricted-vi-methods": "off"
@@ -68,7 +68,8 @@ function cleanupRuntimeInfo(configDirectory) {
68
68
  function writeRuntimeInfoFile(configFile, input) {
69
69
  if (!hasConfigPackageJson(configFile)) return;
70
70
  const configDirectory = dirname(configFile);
71
- const createdNodeModules = !existsSync(join(configDirectory, "node_modules"));
71
+ const nodeModulesDirectory = join(configDirectory, "node_modules");
72
+ const createdNodeModules = !existsSync(nodeModulesDirectory);
72
73
  const infoPath = getInfoPath(configDirectory);
73
74
  rmSync(infoPath, { force: true });
74
75
  mkdirSync(dirname(infoPath), { recursive: true });
@@ -1,5 +1,7 @@
1
- import { t as ConfigName } from "../constants-D9DskZO3.mjs";
2
-
1
+ //#region src/oxlint-plugin/constants.d.ts
2
+ declare const configNames: readonly ["base", "cli", "lib", "website"];
3
+ type ConfigName = (typeof configNames)[number];
4
+ //#endregion
3
5
  //#region src/oxlint-plugin/project.d.ts
4
6
  declare function getAllowedConfigNames(filename: string): readonly ConfigName[];
5
7
  declare function isVpConfigImportAllowed(filename: string, importedNames: readonly string[]): boolean;
@@ -1,4 +1,4 @@
1
- import { a as isProject, c as writeRuntimeInfo, d as projectConfigNames, f as rootConfigNames, i as isLibProject, l as packageName, n as ensureRuntimeInfo, o as isWebsiteProject, p as viteConfigNames, r as getInfoPath, s as readRuntimeInfo, t as cleanupRuntimeInfo, u as pluginName } from "../info-XwsgbUrs.mjs";
1
+ import { a as isProject, c as writeRuntimeInfo, d as projectConfigNames, f as rootConfigNames, i as isLibProject, l as packageName, n as ensureRuntimeInfo, o as isWebsiteProject, p as viteConfigNames, r as getInfoPath, s as readRuntimeInfo, t as cleanupRuntimeInfo, u as pluginName } from "../info-DJqaJFGi.mjs";
2
2
  import { existsSync } from "node:fs";
3
3
  import { basename, dirname, join } from "node:path";
4
4
  import { definePlugin, defineRule } from "@oxlint/plugins";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liangmi/vp-config",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "Liang's JavaScript development toolchain config with Vite+.",
5
5
  "homepage": "https://github.com/liangmiQwQ/vp-config#readme",
6
6
  "bugs": {
@@ -29,11 +29,12 @@
29
29
  "@typescript/native-preview": "7.0.0-dev.20260702.3",
30
30
  "bumpp": "^11.1.0",
31
31
  "typescript": "^6.0.3",
32
- "vite-plus": "^0.2.2"
32
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.2.9",
33
+ "vite-plus": "0.2.9"
33
34
  },
34
35
  "peerDependencies": {
35
36
  "@oxlint/plugins": "1.61.0",
36
- "vite-plus": ">=0.2.0"
37
+ "vite-plus": "0.2.9"
37
38
  },
38
39
  "scripts": {
39
40
  "build": "vp run cpack",
@@ -1,5 +0,0 @@
1
- //#region src/oxlint-plugin/constants.d.ts
2
- declare const configNames: readonly ["base", "cli", "lib", "website"];
3
- type ConfigName = (typeof configNames)[number];
4
- //#endregion
5
- export { ConfigName as t };