diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88a937a..d684bd8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,9 +44,6 @@ jobs: - name: Lint run: nr lint - - name: Prepare - run: nr dev:prepare - - name: Build run: nr build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d957bad..0157b4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,9 +33,6 @@ jobs: - name: Lint run: nr lint - - name: Prepare - run: nr dev:prepare - - name: Build run: nr build diff --git a/package.json b/package.json index bcc6e78..7f617a4 100644 --- a/package.json +++ b/package.json @@ -32,16 +32,19 @@ "dist" ], "scripts": { - "build": "nuxt-module-build build", + "stub": "nuxt-build-module build --stub", + "build": "pnpm dev:prepare && pnpm build:module && pnpm build:client", + "build:module": "nuxt-module-build build", + "build:client": "nuxi generate client", "prepack": "pnpm build", "dev": "nuxi dev playground", "dev:client": "nuxi dev client", "dev:build": "nuxi build playground", - "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare client", - "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags", + "dev:prepare": "pnpm stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare client", "lint": "eslint .", "test": "vitest run", - "test:watch": "vitest watch" + "test:watch": "vitest watch", + "release": "bumpp" }, "dependencies": { "@nuxt/kit": "^3.8.2", @@ -57,8 +60,8 @@ "@nuxt/schema": "^3.8.2", "@nuxt/test-utils": "^3.8.1", "@types/node": "^20.10.3", - "changelogen": "^0.5.5", "eslint": "^8.55.0", + "bumpp": "^9.2.1", "jiti": "^1.21.0", "nuxt": "^3.8.2", "vitest": "^1.0.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f39cac2..a7aae0d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,9 +42,9 @@ importers: '@types/node': specifier: ^20.10.3 version: 20.10.4 - changelogen: - specifier: ^0.5.5 - version: 0.5.5 + bumpp: + specifier: ^9.2.1 + version: 9.2.1 eslint: specifier: ^8.55.0 version: 8.55.0 @@ -1158,6 +1158,16 @@ packages: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 + /@jsdevtools/ez-spawn@3.0.4: + resolution: {integrity: sha512-f5DRIOZf7wxogefH03RjMPMdBF7ADTWUMoOs9kaJo06EfwF+aFhMZMDZxHg/Xe12hptN9xoZjGso2fdjapBRIA==} + engines: {node: '>=10'} + dependencies: + call-me-maybe: 1.0.2 + cross-spawn: 7.0.3 + string-argv: 0.3.2 + type-detect: 4.0.8 + dev: true + /@koa/router@12.0.1: resolution: {integrity: sha512-ribfPYfHb+Uw3b27Eiw6NPqjhIhTpVFzEWLwyc/1Xp+DCdwRRyIlAUODX+9bPARF6aQtUu1+/PHzdNvRzcs/+Q==} engines: {node: '>= 12'} @@ -3311,6 +3321,21 @@ packages: semver: 7.5.4 dev: true + /bumpp@9.2.1: + resolution: {integrity: sha512-mq6/e8+bnIsOMy1VceTLC49WucMIZqd2nYn0e7Et5LhTO3yYQ8OWJsTl/B+uJDs5eywZmJ4Yt1WTEd2HCI35pw==} + engines: {node: '>=10'} + hasBin: true + dependencies: + '@jsdevtools/ez-spawn': 3.0.4 + c12: 1.5.1 + cac: 6.7.14 + fast-glob: 3.3.2 + prompts: 2.4.2 + semver: 7.5.4 + transitivePeerDependencies: + - supports-color + dev: true + /bundle-name@3.0.0: resolution: {integrity: sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==} engines: {node: '>=12'} @@ -3366,6 +3391,10 @@ packages: ylru: 1.3.2 dev: true + /call-me-maybe@1.0.2: + resolution: {integrity: sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==} + dev: true + /callsites@3.1.0: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} @@ -3430,29 +3459,6 @@ packages: engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} dev: true - /changelogen@0.5.5: - resolution: {integrity: sha512-IzgToIJ/R9NhVKmL+PW33ozYkv53bXvufDNUSH3GTKXq1iCHGgkbgbtqEWbo8tnWNnt7nPDpjL8PwSG2iS8RVw==} - hasBin: true - dependencies: - c12: 1.5.1 - colorette: 2.0.20 - consola: 3.2.3 - convert-gitmoji: 0.1.3 - execa: 8.0.1 - mri: 1.2.0 - node-fetch-native: 1.4.1 - ofetch: 1.3.3 - open: 9.1.0 - pathe: 1.1.1 - pkg-types: 1.0.3 - scule: 1.1.1 - semver: 7.5.4 - std-env: 3.6.0 - yaml: 2.3.4 - transitivePeerDependencies: - - supports-color - dev: true - /character-entities-html4@2.1.0: resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} dev: true @@ -3669,10 +3675,6 @@ packages: engines: {node: '>= 0.6'} dev: true - /convert-gitmoji@0.1.3: - resolution: {integrity: sha512-t5yxPyI8h8KPvRwrS/sRrfIpT2gJbmBAY0TFokyUBy3PM44RuFRpZwHdACz+GTSPLRLo3s4qsscOMLjHiXBwzw==} - dev: true - /convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} @@ -8072,6 +8074,11 @@ packages: queue-tick: 1.0.1 dev: true + /string-argv@0.3.2: + resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} + engines: {node: '>=0.6.19'} + dev: true + /string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} diff --git a/src/module.ts b/src/module.ts index c515586..9786a3b 100644 --- a/src/module.ts +++ b/src/module.ts @@ -53,7 +53,6 @@ export default defineNuxtModule({ nuxt.options.runtimeConfig.public.vueEmail = defu(nuxt.options.runtimeConfig.public.vueEmail, options) - // if (!nuxt.options.build.transpile) nuxt.options.build.transpile = [] // const transpileList = ['vue-email'] // transpileList.forEach((pkgName) => {