diff --git a/.changeset/quiet-bananas-reflect.md b/.changeset/quiet-bananas-reflect.md new file mode 100644 index 0000000..41226df --- /dev/null +++ b/.changeset/quiet-bananas-reflect.md @@ -0,0 +1,5 @@ +--- +"@kucrut/vite-for-wp": patch +--- + +Update deps: Vite 5.4 diff --git a/package.json b/package.json index 56ce3f6..67294d5 100644 --- a/package.json +++ b/package.json @@ -24,19 +24,19 @@ "@eslint/js": "^9.15.0", "@kucrut/eslint-config": "^0.3.1", "@types/eslint": "^9.6.1", - "@types/node": "^20.14.2", - "dts-buddy": "^0.4.7", + "@types/node": "^22.9.3", + "dts-buddy": "^0.5.3", "eslint": "^9.15.0", "globals": "^15.12.0", - "rollup-plugin-external-globals": "^0.10.0", - "typescript": "^5.4.5", + "rollup-plugin-external-globals": "^0.13.0", + "typescript": "5.5.4", "typescript-eslint": "^8.15.0", - "vite": "^5.3.0", + "vite": "^5.4.11", "vite-plugin-external": "^4.0.1" }, "peerDependencies": { - "rollup-plugin-external-globals": "^0.10.0", - "vite": "^5.3.0", + "rollup-plugin-external-globals": "^0.13.0", + "vite": "^5.4.11", "vite-plugin-external": "^4.0.1" }, "peerDependenciesMeta": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c89c2c3..43fea84 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,16 +16,16 @@ importers: version: 9.15.0 '@kucrut/eslint-config': specifier: ^0.3.1 - version: 0.3.1(eslint@9.15.0)(typescript@5.7.2) + version: 0.3.1(eslint@9.15.0)(typescript@5.5.4) '@types/eslint': specifier: ^9.6.1 version: 9.6.1 '@types/node': - specifier: ^20.14.2 - version: 20.17.7 + specifier: ^22.9.3 + version: 22.9.3 dts-buddy: - specifier: ^0.4.7 - version: 0.4.7(typescript@5.7.2) + specifier: ^0.5.3 + version: 0.5.3(typescript@5.5.4) eslint: specifier: ^9.15.0 version: 9.15.0 @@ -33,17 +33,17 @@ importers: specifier: ^15.12.0 version: 15.12.0 rollup-plugin-external-globals: - specifier: ^0.10.0 - version: 0.10.0(rollup@4.27.4) + specifier: ^0.13.0 + version: 0.13.0(rollup@4.27.4) typescript: - specifier: ^5.4.5 - version: 5.7.2 + specifier: 5.5.4 + version: 5.5.4 typescript-eslint: specifier: ^8.15.0 - version: 8.15.0(eslint@9.15.0)(typescript@5.7.2) + version: 8.15.0(eslint@9.15.0)(typescript@5.5.4) vite: - specifier: ^5.3.0 - version: 5.4.11(@types/node@20.17.7) + specifier: ^5.4.11 + version: 5.4.11(@types/node@22.9.3) vite-plugin-external: specifier: ^4.0.1 version: 4.3.1 @@ -481,8 +481,8 @@ packages: '@types/node@14.18.63': resolution: {integrity: sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==} - '@types/node@20.17.7': - resolution: {integrity: sha512-sZXXnpBFMKbao30dUAvzKbdwA2JM1fwUtVEq/kxKuPI5mMwZiRElCpTXb0Biq/LMEVpXDZL5G5V0RPnxKeyaYg==} + '@types/node@22.9.3': + resolution: {integrity: sha512-F3u1fs/fce3FFk+DAxbxc78DF8x0cY09RRL8GnXLmkJ1jvx3TtPdWoTT5/NiYfI5ASqXBmfqJi9dZ3gxMx4lzw==} '@typescript-eslint/eslint-plugin@8.15.0': resolution: {integrity: sha512-+zkm9AR1Ds9uLWN3fkoeXgFppaQ+uEVtfOV62dDmsy9QCNqlRHWNEck4yarvRNrvRcHQLGfqBNui3cimoz8XAg==} @@ -647,11 +647,11 @@ packages: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} - dts-buddy@0.4.7: - resolution: {integrity: sha512-trSY5EWkWWKov9uf9nTPjmEoiIcrYPpNEVCu75drPX9Fus3OwQzN/WNXyO+w7cMteBrUqSoExAAud1KCzYv0SQ==} + dts-buddy@0.5.3: + resolution: {integrity: sha512-wS2DC5T+F6R+sG/YNlJ21yn8CKVhy1QQlpKA34G+uO4PUXkwz+JQWbGcIryUByxoJgbH98O0dTGzE2RqsRR3KA==} hasBin: true peerDependencies: - typescript: '>=5.0.4 <5.5' + typescript: '>=5.0.4 <5.6' enquirer@2.4.1: resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} @@ -1059,8 +1059,8 @@ packages: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} - rollup-plugin-external-globals@0.10.0: - resolution: {integrity: sha512-RXlupZrmn97AaaS5dWnktkjM+Iy+od0E+8L0mUkMIs3iuoUXNJebueQocQKV7Ircd54fSGGmkBaXwNzY05J1yQ==} + rollup-plugin-external-globals@0.13.0: + resolution: {integrity: sha512-wBS3hmoF0OtEnA0lWsmTC6Nhnkk2zjZbfhaX2gLo8VnfNGFdGhiYKwMpIPQPrYbAw+mAYUYmoHYktAl1eZHgVw==} peerDependencies: rollup: ^2.25.0 || ^3.3.0 || ^4.1.4 @@ -1161,8 +1161,8 @@ packages: typescript: optional: true - typescript@5.7.2: - resolution: {integrity: sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==} + typescript@5.5.4: + resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} engines: {node: '>=14.17'} hasBin: true @@ -1519,10 +1519,10 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@kucrut/eslint-config@0.3.1(eslint@9.15.0)(typescript@5.7.2)': + '@kucrut/eslint-config@0.3.1(eslint@9.15.0)(typescript@5.5.4)': dependencies: '@eslint/js': 9.15.0 - '@stylistic/eslint-plugin': 2.11.0(eslint@9.15.0)(typescript@5.7.2) + '@stylistic/eslint-plugin': 2.11.0(eslint@9.15.0)(typescript@5.5.4) eslint: 9.15.0 transitivePeerDependencies: - supports-color @@ -1618,9 +1618,9 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.27.4': optional: true - '@stylistic/eslint-plugin@2.11.0(eslint@9.15.0)(typescript@5.7.2)': + '@stylistic/eslint-plugin@2.11.0(eslint@9.15.0)(typescript@5.5.4)': dependencies: - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0)(typescript@5.7.2) + '@typescript-eslint/utils': 8.15.0(eslint@9.15.0)(typescript@5.5.4) eslint: 9.15.0 eslint-visitor-keys: 4.2.0 espree: 10.3.0 @@ -1640,50 +1640,50 @@ snapshots: '@types/fs-extra@11.0.4': dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 20.17.7 + '@types/node': 22.9.3 '@types/json-schema@7.0.15': {} '@types/jsonfile@6.1.4': dependencies: - '@types/node': 20.17.7 + '@types/node': 22.9.3 '@types/node@12.20.55': {} '@types/node@14.18.63': {} - '@types/node@20.17.7': + '@types/node@22.9.3': dependencies: undici-types: 6.19.8 - '@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0)(typescript@5.7.2))(eslint@9.15.0)(typescript@5.7.2)': + '@typescript-eslint/eslint-plugin@8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0)(typescript@5.5.4))(eslint@9.15.0)(typescript@5.5.4)': dependencies: '@eslint-community/regexpp': 4.12.1 - '@typescript-eslint/parser': 8.15.0(eslint@9.15.0)(typescript@5.7.2) + '@typescript-eslint/parser': 8.15.0(eslint@9.15.0)(typescript@5.5.4) '@typescript-eslint/scope-manager': 8.15.0 - '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0)(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0)(typescript@5.7.2) + '@typescript-eslint/type-utils': 8.15.0(eslint@9.15.0)(typescript@5.5.4) + '@typescript-eslint/utils': 8.15.0(eslint@9.15.0)(typescript@5.5.4) '@typescript-eslint/visitor-keys': 8.15.0 eslint: 9.15.0 graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.4.1(typescript@5.7.2) + ts-api-utils: 1.4.1(typescript@5.5.4) optionalDependencies: - typescript: 5.7.2 + typescript: 5.5.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.15.0(eslint@9.15.0)(typescript@5.7.2)': + '@typescript-eslint/parser@8.15.0(eslint@9.15.0)(typescript@5.5.4)': dependencies: '@typescript-eslint/scope-manager': 8.15.0 '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) + '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.5.4) '@typescript-eslint/visitor-keys': 8.15.0 debug: 4.3.7 eslint: 9.15.0 optionalDependencies: - typescript: 5.7.2 + typescript: 5.5.4 transitivePeerDependencies: - supports-color @@ -1692,21 +1692,21 @@ snapshots: '@typescript-eslint/types': 8.15.0 '@typescript-eslint/visitor-keys': 8.15.0 - '@typescript-eslint/type-utils@8.15.0(eslint@9.15.0)(typescript@5.7.2)': + '@typescript-eslint/type-utils@8.15.0(eslint@9.15.0)(typescript@5.5.4)': dependencies: - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0)(typescript@5.7.2) + '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.5.4) + '@typescript-eslint/utils': 8.15.0(eslint@9.15.0)(typescript@5.5.4) debug: 4.3.7 eslint: 9.15.0 - ts-api-utils: 1.4.1(typescript@5.7.2) + ts-api-utils: 1.4.1(typescript@5.5.4) optionalDependencies: - typescript: 5.7.2 + typescript: 5.5.4 transitivePeerDependencies: - supports-color '@typescript-eslint/types@8.15.0': {} - '@typescript-eslint/typescript-estree@8.15.0(typescript@5.7.2)': + '@typescript-eslint/typescript-estree@8.15.0(typescript@5.5.4)': dependencies: '@typescript-eslint/types': 8.15.0 '@typescript-eslint/visitor-keys': 8.15.0 @@ -1715,21 +1715,21 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.4.1(typescript@5.7.2) + ts-api-utils: 1.4.1(typescript@5.5.4) optionalDependencies: - typescript: 5.7.2 + typescript: 5.5.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.15.0(eslint@9.15.0)(typescript@5.7.2)': + '@typescript-eslint/utils@8.15.0(eslint@9.15.0)(typescript@5.5.4)': dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.15.0) '@typescript-eslint/scope-manager': 8.15.0 '@typescript-eslint/types': 8.15.0 - '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.7.2) + '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.5.4) eslint: 9.15.0 optionalDependencies: - typescript: 5.7.2 + typescript: 5.5.4 transitivePeerDependencies: - supports-color @@ -1823,7 +1823,7 @@ snapshots: dependencies: path-type: 4.0.0 - dts-buddy@0.4.7(typescript@5.7.2): + dts-buddy@0.5.3(typescript@5.5.4): dependencies: '@jridgewell/source-map': 0.3.6 '@jridgewell/sourcemap-codec': 1.5.0 @@ -1833,8 +1833,8 @@ snapshots: magic-string: 0.30.13 sade: 1.8.1 tiny-glob: 0.2.9 - ts-api-utils: 1.4.1(typescript@5.7.2) - typescript: 5.7.2 + ts-api-utils: 1.4.1(typescript@5.5.4) + typescript: 5.5.4 enquirer@2.4.1: dependencies: @@ -2244,7 +2244,7 @@ snapshots: reusify@1.0.4: {} - rollup-plugin-external-globals@0.10.0(rollup@4.27.4): + rollup-plugin-external-globals@0.13.0(rollup@4.27.4): dependencies: '@rollup/pluginutils': 5.1.3(rollup@4.27.4) estree-walker: 3.0.3 @@ -2334,26 +2334,26 @@ snapshots: dependencies: is-number: 7.0.0 - ts-api-utils@1.4.1(typescript@5.7.2): + ts-api-utils@1.4.1(typescript@5.5.4): dependencies: - typescript: 5.7.2 + typescript: 5.5.4 type-check@0.4.0: dependencies: prelude-ls: 1.2.1 - typescript-eslint@8.15.0(eslint@9.15.0)(typescript@5.7.2): + typescript-eslint@8.15.0(eslint@9.15.0)(typescript@5.5.4): dependencies: - '@typescript-eslint/eslint-plugin': 8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0)(typescript@5.7.2))(eslint@9.15.0)(typescript@5.7.2) - '@typescript-eslint/parser': 8.15.0(eslint@9.15.0)(typescript@5.7.2) - '@typescript-eslint/utils': 8.15.0(eslint@9.15.0)(typescript@5.7.2) + '@typescript-eslint/eslint-plugin': 8.15.0(@typescript-eslint/parser@8.15.0(eslint@9.15.0)(typescript@5.5.4))(eslint@9.15.0)(typescript@5.5.4) + '@typescript-eslint/parser': 8.15.0(eslint@9.15.0)(typescript@5.5.4) + '@typescript-eslint/utils': 8.15.0(eslint@9.15.0)(typescript@5.5.4) eslint: 9.15.0 optionalDependencies: - typescript: 5.7.2 + typescript: 5.5.4 transitivePeerDependencies: - supports-color - typescript@5.7.2: {} + typescript@5.5.4: {} undici-types@6.19.8: {} @@ -2371,13 +2371,13 @@ snapshots: '@types/node': 14.18.63 fs-extra: 11.2.0 - vite@5.4.11(@types/node@20.17.7): + vite@5.4.11(@types/node@22.9.3): dependencies: esbuild: 0.21.5 postcss: 8.4.49 rollup: 4.27.4 optionalDependencies: - '@types/node': 20.17.7 + '@types/node': 22.9.3 fsevents: 2.3.3 which@2.0.2: diff --git a/types/index.d.ts b/types/index.d.ts index a1a9b4c..14464f7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,10 +1,10 @@ declare module '@kucrut/vite-for-wp' { export function v4wp(options?: V4wpOptions): Plugin; export default function create_config(input: Input, out_dir: string, extra_config?: UserConfig): UserConfig; - export type UserConfig = import('vite').UserConfig; - export type Input = import('vite').ResolvedConfig['build']['rollupOptions']['input']; - export type OutDir = import('vite').ResolvedConfig['build']['outDir']; - export type Plugin = import('vite').PluginOption; + export type UserConfig = import("vite").UserConfig; + export type Input = import("vite").ResolvedConfig["build"]["rollupOptions"]["input"]; + export type OutDir = import("vite").ResolvedConfig["build"]["outDir"]; + export type Plugin = import("vite").PluginOption; /** * v4wp options */ @@ -18,10 +18,12 @@ declare module '@kucrut/vite-for-wp' { */ outDir?: OutDir | undefined; }; + + export {}; } declare module '@kucrut/vite-for-wp/plugins' { - export function dev_server(options?: DevServerOptions): import('vite').Plugin; + export function dev_server(options?: DevServerOptions): import("vite").Plugin; /** * Dev Server Options */ @@ -32,7 +34,7 @@ declare module '@kucrut/vite-for-wp/plugins' { manifest_dir?: string | undefined; }; export function wp_scripts(options?: WPScriptsOptions): Plugin; - type Plugin = import('vite').PluginOption; + type Plugin = import("vite").PluginOption; /** * WPScriptsOptions */ @@ -44,6 +46,8 @@ declare module '@kucrut/vite-for-wp/plugins' { [k: string]: string; } | undefined; }; + + export {}; } declare module '@kucrut/vite-for-wp/utils' { @@ -63,6 +67,8 @@ declare module '@kucrut/vite-for-wp/utils' { port?: number | undefined; }; export function wp_globals(): Record; + + export {}; } //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/types/index.d.ts.map b/types/index.d.ts.map index a68961a..6c56329 100644 --- a/types/index.d.ts.map +++ b/types/index.d.ts.map @@ -5,18 +5,16 @@ "UserConfig", "Input", "OutDir", - "Plugin", - "WPScriptsOptions" + "Plugin" ], "sources": [ "../src/exports/index.js", - "../src/exports/plugins/wp-scripts.js", - "../src/exports/plugins/wp-scripts.d.ts" + "../src/exports/plugins/wp-scripts.js" ], "sourcesContent": [ - null, null, null ], - "mappings": ";;;aAG6BA,UAAUA;aACyCC,KAAKA;aACrBC,MAAMA;aAC3BC,MAAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;MCJNA,MAAMA;;;;MCGrCC,gBAAgBA" + "mappings": ";;;aAG6BA,UAAUA;aACyCC,KAAKA;aACrBC,MAAMA;aAC3BC,MAAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MCJNA,MAAMA", + "ignoreList": [] } \ No newline at end of file