diff --git a/assets/features.png b/assets/features.png index f5344b91c..eb9863935 100644 Binary files a/assets/features.png and b/assets/features.png differ diff --git a/configs/setup.ts b/configs/setup.ts index 0540c3939..2e9c73645 100644 --- a/configs/setup.ts +++ b/configs/setup.ts @@ -6,7 +6,7 @@ beforeAll(() => { if (globalThis.Bun) { /** @type {import('bun:jsc')} */ const jsc = require('bun:jsc') - const http = require('http') + const http = require('node:http') const source = globalThis.Bun.fileURLToPath(jsc.callerSourceOrigin()) const bunTest = globalThis.Bun.jest(source) diff --git a/docs/plugins/unplugin/index.md b/docs/plugins/unplugin/index.md index f055e7ff7..a9db4cb10 100644 --- a/docs/plugins/unplugin/index.md +++ b/docs/plugins/unplugin/index.md @@ -105,11 +105,11 @@ export default defineConfig({ ```ts // vite.config.ts -import Plugin from 'unplugin-kubb/vite' +import kubb from 'unplugin-kubb/vite' export default defineConfig({ plugins: [ - Plugin({/* options */}), + kubb({/* options */}), ], }) ``` @@ -118,11 +118,11 @@ export default defineConfig({ ```ts // rollup.config.js -import Plugin from 'unplugin-kubb/rollup' +import kubb from 'unplugin-kubb/rollup' export default { plugins: [ - Plugin({/* options */}), + kubb({/* options */}), ], } ``` @@ -170,10 +170,10 @@ module.exports = { ```ts // esbuild.config.js import { build } from 'esbuild' -import Plugin from 'unplugin-kubb/esbuild' +import kubb from 'unplugin-kubb/esbuild' build({ - plugins: [Plugin()], + plugins: [kubb()], }) ``` diff --git a/examples/vue-query-v5/kubb.config.js b/examples/vue-query-v5/kubb.config.js deleted file mode 100644 index c5b516d6b..000000000 --- a/examples/vue-query-v5/kubb.config.js +++ /dev/null @@ -1,31 +0,0 @@ -import { defineConfig } from '@kubb/core' -import { definePlugin as createSwagger } from '@kubb/swagger' -import { definePlugin as createSwaggerTanstackQuery } from '@kubb/swagger-tanstack-query' -import { definePlugin as createSwaggerTS } from '@kubb/swagger-ts' - -export default defineConfig({ - root: '.', - input: { - path: './petStore.yaml', - }, - output: { - path: './src/gen', - clean: true, - }, - plugins: [ - createSwagger({ - output: false, - }), - createSwaggerTS({ - output: { - path: 'models', - }, - }), - createSwaggerTanstackQuery({ - output: { - path: './hooks', - }, - framework: 'vue', - }), - ], -}) diff --git a/examples/vue-query-v5/package.json b/examples/vue-query-v5/package.json index 830f7dbb5..f618fc859 100644 --- a/examples/vue-query-v5/package.json +++ b/examples/vue-query-v5/package.json @@ -16,7 +16,7 @@ "build": "vite build", "clean": "npx rimraf ./dist", "dev": "vite", - "generate": "kubb generate", + "generate": "vite build", "start": "tsup --watch", "test": "vitest", "typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false" @@ -31,6 +31,7 @@ "@kubb/swagger-zod": "workspace:*", "@tanstack/vue-query": "^5.28.9", "axios": "^1.6.8", + "unplugin-kubb": "workspace:*", "vue": "^3.4.21" }, "devDependencies": { diff --git a/examples/vue-query-v5/vite.config.ts b/examples/vue-query-v5/vite.config.ts index 2cd4cfb5e..7a4ffd671 100644 --- a/examples/vue-query-v5/vite.config.ts +++ b/examples/vue-query-v5/vite.config.ts @@ -1,9 +1,43 @@ +import { definePlugin as createSwagger } from '@kubb/swagger' +import { definePlugin as createSwaggerTanstackQuery } from '@kubb/swagger-tanstack-query' +import { definePlugin as createSwaggerTS } from '@kubb/swagger-ts' import vue from '@vitejs/plugin-vue' +import kubb from 'unplugin-kubb/vite' import { defineConfig } from 'vite' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [vue()], + plugins: [ + vue(), + kubb({ + config: { + root: '.', + input: { + path: './petStore.yaml', + }, + output: { + path: './src/gen', + clean: true, + }, + plugins: [ + createSwagger({ + output: false, + }), + createSwaggerTS({ + output: { + path: 'models', + }, + }), + createSwaggerTanstackQuery({ + output: { + path: './hooks', + }, + framework: 'vue', + }), + ], + }, + }), + ], optimizeDeps: { include: ['axios'], }, diff --git a/packages/cli/package.json b/packages/cli/package.json index 56ac8c8e0..074e3df78 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -2,13 +2,7 @@ "name": "@kubb/cli", "version": "2.12.2", "description": "Generator cli", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen", - "cli" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen", "cli"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -31,13 +25,7 @@ "bin": { "kubb": "bin/kubb.cjs" }, - "files": [ - "src", - "dist", - "bin", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "bin", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/core/package.json b/packages/core/package.json index b9e71d346..f270ed31a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -2,12 +2,7 @@ "name": "@kubb/core", "version": "2.12.2", "description": "Generator core", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -59,32 +54,14 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "utils": [ - "./dist/utils.d.ts" - ], - "transformers": [ - "./dist/transformers.d.ts" - ], - "logger": [ - "./dist/logger.d.ts" - ], - "fs": [ - "./dist/fs.d.ts" - ], - "mocks": [ - "./dist/mocks.d.ts" - ] + "utils": ["./dist/utils.d.ts"], + "transformers": ["./dist/transformers.d.ts"], + "logger": ["./dist/logger.d.ts"], + "fs": ["./dist/fs.d.ts"], + "mocks": ["./dist/mocks.d.ts"] } }, - "files": [ - "src", - "dist", - "*.d.ts", - "*.d.cts", - "schema.json", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "*.d.ts", "*.d.cts", "schema.json", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/kubb/package.json b/packages/kubb/package.json index 45bd806f6..a569b03a9 100644 --- a/packages/kubb/package.json +++ b/packages/kubb/package.json @@ -2,13 +2,7 @@ "name": "kubb", "version": "2.0.0-beta.2", "description": "OpenAPI to TypeScript, React-Query, Zod, Zodios, Faker.js, MSW and Axios.", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen", - "cli" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen", "cli"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -24,13 +18,7 @@ "bin": { "kubb": "bin/kubb.js" }, - "files": [ - "src", - "dist", - "bin", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "bin", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/parser/package.json b/packages/parser/package.json index ecf36c4ce..cb96f7ff8 100644 --- a/packages/parser/package.json +++ b/packages/parser/package.json @@ -2,12 +2,7 @@ "name": "@kubb/parser", "version": "2.12.2", "description": "Generator parser", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -36,17 +31,10 @@ "types": "./dist/index.d.cts", "typesVersions": { "*": { - "factory": [ - "./dist/factory.d.ts" - ] + "factory": ["./dist/factory.d.ts"] } }, - "files": [ - "src", - "dist", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/react/package.json b/packages/react/package.json index 39d0d1e7d..7eef0eb07 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -2,12 +2,7 @@ "name": "@kubb/react", "version": "2.12.2", "description": "Generator react", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -51,22 +46,11 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "client": [ - "./dist/client.d.ts" - ], - "server": [ - "./dist/server.d.ts" - ] + "client": ["./dist/client.d.ts"], + "server": ["./dist/server.d.ts"] } }, - "files": [ - "src", - "dist", - "*.d.ts", - "*.d.cts", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "*.d.ts", "*.d.cts", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/swagger-client/package.json b/packages/swagger-client/package.json index 50c9885c6..57964a5e0 100644 --- a/packages/swagger-client/package.json +++ b/packages/swagger-client/package.json @@ -2,15 +2,7 @@ "name": "@kubb/swagger-client", "version": "2.12.2", "description": "Generator swagger-client", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen", - "swagger", - "openapi", - "axios" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen", "swagger", "openapi", "axios"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -49,20 +41,10 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "components": [ - "./dist/components.d.ts" - ] + "components": ["./dist/components.d.ts"] } }, - "files": [ - "src", - "dist", - "client.ts", - "*.d.ts", - "*.d.cts", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "client.ts", "*.d.ts", "*.d.cts", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/swagger-faker/package.json b/packages/swagger-faker/package.json index ef765571e..dd6f9cb79 100644 --- a/packages/swagger-faker/package.json +++ b/packages/swagger-faker/package.json @@ -2,17 +2,7 @@ "name": "@kubb/swagger-faker", "version": "2.12.2", "description": "Generator swagger-faker", - "keywords": [ - "faker", - "faker.js", - "mock", - "mocking", - "plugins", - "kubb", - "codegen", - "swagger", - "openapi" - ], + "keywords": ["faker", "faker.js", "mock", "mocking", "plugins", "kubb", "codegen", "swagger", "openapi"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -41,17 +31,10 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "components": [ - "./dist/components.d.ts" - ] + "components": ["./dist/components.d.ts"] } }, - "files": [ - "src", - "dist", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/swagger-msw/package.json b/packages/swagger-msw/package.json index 8c8b5a87b..5c03ef62b 100644 --- a/packages/swagger-msw/package.json +++ b/packages/swagger-msw/package.json @@ -2,18 +2,7 @@ "name": "@kubb/swagger-msw", "version": "2.12.2", "description": "Generator swagger-msw", - "keywords": [ - "faker", - "faker.js", - "msw", - "mock", - "mocking", - "plugins", - "kubb", - "codegen", - "swagger", - "openapi" - ], + "keywords": ["faker", "faker.js", "msw", "mock", "mocking", "plugins", "kubb", "codegen", "swagger", "openapi"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -42,17 +31,10 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "components": [ - "./dist/components.d.ts" - ] + "components": ["./dist/components.d.ts"] } }, - "files": [ - "src", - "dist", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/swagger-swr/package.json b/packages/swagger-swr/package.json index ec4d08696..0fde2c992 100644 --- a/packages/swagger-swr/package.json +++ b/packages/swagger-swr/package.json @@ -2,19 +2,7 @@ "name": "@kubb/swagger-swr", "version": "2.12.2", "description": "Generator swagger-swr", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen", - "swagger", - "openapi", - "swr", - "vercel", - "nextjs", - "next", - "axios" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen", "swagger", "openapi", "swr", "vercel", "nextjs", "next", "axios"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -43,17 +31,10 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "components": [ - "./dist/components.d.ts" - ] + "components": ["./dist/components.d.ts"] } }, - "files": [ - "src", - "dist", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "rimraf ./dist", diff --git a/packages/swagger-tanstack-query/package.json b/packages/swagger-tanstack-query/package.json index e1b610d7a..e7626b925 100644 --- a/packages/swagger-tanstack-query/package.json +++ b/packages/swagger-tanstack-query/package.json @@ -2,18 +2,7 @@ "name": "@kubb/swagger-tanstack-query", "version": "2.12.2", "description": "Generator swagger-tanstack-query", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen", - "swagger", - "openapi", - "tanstack", - "react-query", - "@tanstack", - "axios" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen", "swagger", "openapi", "tanstack", "react-query", "@tanstack", "axios"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -42,17 +31,10 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "components": [ - "./dist/components.d.ts" - ] + "components": ["./dist/components.d.ts"] } }, - "files": [ - "src", - "dist", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/swagger-ts/package.json b/packages/swagger-ts/package.json index 6026c9725..e6d5a172e 100644 --- a/packages/swagger-ts/package.json +++ b/packages/swagger-ts/package.json @@ -2,14 +2,7 @@ "name": "@kubb/swagger-ts", "version": "2.12.2", "description": "Generator swagger-ts", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen", - "swagger", - "openapi" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen", "swagger", "openapi"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -41,20 +34,11 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "components": [ - "./dist/components.d.ts" - ], - "oas": [ - "./dist/oas.d.ts" - ] + "components": ["./dist/components.d.ts"], + "oas": ["./dist/oas.d.ts"] } }, - "files": [ - "src", - "dist", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/swagger-zod/package.json b/packages/swagger-zod/package.json index 3b7396b78..665ca6f11 100644 --- a/packages/swagger-zod/package.json +++ b/packages/swagger-zod/package.json @@ -2,14 +2,7 @@ "name": "@kubb/swagger-zod", "version": "2.12.2", "description": "Generator swagger-zod", - "keywords": [ - "zod", - "plugins", - "kubb", - "codegen", - "swagger", - "openapi" - ], + "keywords": ["zod", "plugins", "kubb", "codegen", "swagger", "openapi"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -38,17 +31,10 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "components": [ - "./dist/components.d.ts" - ] + "components": ["./dist/components.d.ts"] } }, - "files": [ - "src", - "dist", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/swagger-zodios/package.json b/packages/swagger-zodios/package.json index e6acf9152..5bba77929 100644 --- a/packages/swagger-zodios/package.json +++ b/packages/swagger-zodios/package.json @@ -2,15 +2,7 @@ "name": "@kubb/swagger-zodios", "version": "2.12.2", "description": "Generator swagger-zodios", - "keywords": [ - "zod", - "zodios", - "plugins", - "kubb", - "codegen", - "swagger", - "openapi" - ], + "keywords": ["zod", "zodios", "plugins", "kubb", "codegen", "swagger", "openapi"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -39,17 +31,10 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "components": [ - "./dist/components.d.ts" - ] + "components": ["./dist/components.d.ts"] } }, - "files": [ - "src", - "dist", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/swagger/package.json b/packages/swagger/package.json index f8895bd1e..7e81b15aa 100644 --- a/packages/swagger/package.json +++ b/packages/swagger/package.json @@ -2,14 +2,7 @@ "name": "@kubb/swagger", "version": "2.12.2", "description": "Generator swagger", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen", - "swagger", - "openapi" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen", "swagger", "openapi"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -53,26 +46,13 @@ "types": "./dist/index.d.ts", "typesVersions": { "*": { - "utils": [ - "./dist/utils.d.ts" - ], - "hooks": [ - "./dist/hooks.d.ts" - ], - "oas": [ - "./dist/oas.d.ts" - ], - "components": [ - "./dist/components.d.ts" - ] + "utils": ["./dist/utils.d.ts"], + "hooks": ["./dist/hooks.d.ts"], + "oas": ["./dist/oas.d.ts"], + "components": ["./dist/components.d.ts"] } }, - "files": [ - "src", - "dist", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/types/package.json b/packages/types/package.json index d39a00330..4c89c2484 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -2,12 +2,7 @@ "name": "@kubb/types", "version": "2.12.2", "description": "Generator types", - "keywords": [ - "typescript", - "plugins", - "kubb", - "codegen" - ], + "keywords": ["typescript", "plugins", "kubb", "codegen"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -29,14 +24,7 @@ "main": "dist/index.cjs", "module": "dist/index.js", "types": "./dist/index.d.ts", - "files": [ - "src", - "dist", - "*.d.ts", - "*.d.cts", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "*.d.ts", "*.d.cts", "!/**/**.test.**", "!/**/__tests__/**"], "scripts": { "build": "tsup", "clean": "npx rimraf ./dist", diff --git a/packages/unplugin/README.md b/packages/unplugin/README.md index 79b4219ce..c821a8d2e 100644 --- a/packages/unplugin/README.md +++ b/packages/unplugin/README.md @@ -39,11 +39,11 @@ npm i -D unplugin-kubb @kubb/core ```ts // vite.config.ts -import Plugin from 'unplugin-kubb/vite' +import kubb from 'unplugin-kubb/vite' export default defineConfig({ plugins: [ - Plugin({/* options */}), + kubb({/* options */}), ], }) ``` @@ -55,11 +55,11 @@ export default defineConfig({ ```ts // rollup.config.js -import Plugin from 'unplugin-kubb/rollup' +import kubb from 'unplugin-kubb/rollup' export default { plugins: [ - Plugin({/* options */}), + kubb({/* options */}), ], } ``` @@ -119,10 +119,10 @@ module.exports = { ```ts // esbuild.config.js import { build } from 'esbuild' -import Plugin from 'unplugin-kubb/esbuild' +import kubb from 'unplugin-kubb/esbuild' build({ - plugins: [Plugin()], + plugins: [kubb()], }) ``` diff --git a/packages/unplugin/package.json b/packages/unplugin/package.json index 1ce429002..e053507fa 100644 --- a/packages/unplugin/package.json +++ b/packages/unplugin/package.json @@ -2,20 +2,7 @@ "name": "unplugin-kubb", "version": "0.1.26", "description": "Unplugin for Kubb", - "keywords": [ - "unplugin", - "vite", - "webpack", - "rollup", - "transform", - "astro", - "kubb", - "swagger", - "OpenAPI", - "rspack", - "nuxt", - "esbuild" - ], + "keywords": ["unplugin", "vite", "webpack", "rollup", "transform", "astro", "kubb", "swagger", "OpenAPI", "rspack", "nuxt", "esbuild"], "repository": { "type": "git", "url": "git://github.com/kubb-project/kubb.git", @@ -77,18 +64,10 @@ "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/index.d.ts", - "files": [ - "src", - "dist", - "!/**/**.test.**", - "!/**/__tests__/**" - ], + "files": ["src", "dist", "!/**/**.test.**", "!/**/__tests__/**"], "typesVersions": { "*": { - "*": [ - "./dist/*", - "./*" - ] + "*": ["./dist/*", "./*"] } }, "scripts": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c9b3b39a6..f0bf3abd4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -855,6 +855,9 @@ importers: axios: specifier: ^1.6.8 version: 1.6.8 + unplugin-kubb: + specifier: workspace:* + version: link:../../packages/unplugin vue: specifier: ^3.4.21 version: 3.4.21(typescript@5.2.2) diff --git a/scripts/build.js b/scripts/build.js index a54feeec3..98d72fe43 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -9,7 +9,7 @@ try { const oldVersion = 'workspace:*' const newVersion = ['latest', 'canary', 'alpha'].includes(tag) ? tag : pkg.version - const content = JSON.stringify(pkg, null, '\t') + '\n' + const content = `${JSON.stringify(pkg, null, '\t')}\n` const newContent = content // @ts-ignore .replaceAll(`"${oldVersion}"`, `"${newVersion}"`)