Skip to content

chore: upgrade nuxt module builder to v1 #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: prepare
run: pnpm dev:prepare

- name: Release PR version
run: pnpm dlx [email protected] publish

- name: Lint (code)
run: pnpm lint --fix

Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ concurrency:

jobs:
lint:
# autofix workflow will be triggered instead for PRs
if: github.event_name == 'push'
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -69,8 +67,10 @@ jobs:

- name: Run test suite
run: pnpm test
release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

# - name: Run types tests
# run: pnpm test:types
publish:
needs: [lint, test]
runs-on: ubuntu-latest
steps:
Expand All @@ -85,8 +85,7 @@ jobs:
run: pnpm install
- name: Prepare environment
run: pnpm dev:prepare
- name: Release Nightly
run: pnpm changelogen --bump --canary --publish --publishTag nightly
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
- name: Build package
run: pnpm prepack
- name: Publish
run: pnpx pkg-pr-new publish --compact --no-template --pnpm
3 changes: 0 additions & 3 deletions .nuxtrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
imports.autoImport=false
typescript.includeWorkspace=true

# enable TypeScript bundler module resolution - https://www.typescriptlang.org/docs/handbook/modules/reference.html#bundler
experimental.typescriptBundlerResolution=true
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"@rollup/plugin-yaml": "^4.1.2",
"@tsparticles/engine": "^3.8.1",
"@tsparticles/slim": "^3.8.1",
"@vueuse/core": "^13.0.0",
"@vueuse/nuxt": "^13.0.0",
"@vueuse/core": "^13.1.0",
"@vueuse/nuxt": "^13.1.0",
"feed": "^4.2.2",
"medium-zoom": "^1.1.0",
"nuxt": "^3.16.2",
Expand Down
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,23 @@
"type": "git",
"url": "git+https://github.com/nuxt-hub/core.git"
},
"homepage": "https://hub.nuxt.com",
"license": "Apache-2.0",
"type": "module",
"exports": {
".": {
"types": "./dist/types.d.ts",
"import": "./dist/module.mjs",
"require": "./dist/module.cjs"
"types": "./dist/types.d.mts",
"import": "./dist/module.mjs"
}
},
"main": "./dist/module.mjs",
"typesVersions": {
"*": {
".": [
"./dist/types.d.mts"
]
}
},
"main": "./dist/module.cjs",
"types": "./dist/types.d.ts",
"homepage": "https://hub.nuxt.com",
"files": [
"dist"
],
Expand All @@ -32,7 +37,7 @@
],
"scripts": {
"prepack": "nuxt-module-build build",
"dev:prepare": "nuxt-module-build build --stub; nuxt-module-build prepare; nuxi prepare playground",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"docs": "PORT=4000 nuxi dev docs",
Expand All @@ -41,7 +46,8 @@
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest run --test-timeout=60000",
"test:watch": "vitest watch"
"test:watch": "vitest watch",
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
},
"dependencies": {
"@cloudflare/workers-types": "^4.20250407.0",
Expand All @@ -67,22 +73,19 @@
"devDependencies": {
"@nuxt/devtools": "^2.3.2",
"@nuxt/eslint-config": "^1.3.0",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/module-builder": "^1.0.0",
"@nuxt/schema": "^3.16.2",
"@nuxt/test-utils": "^3.17.2",
"@nuxthub/core": "link:",
"@types/node": "^22.14.0",
"changelogen": "^0.6.1",
"eslint": "^9.24.0",
"nuxt": "^3.16.2",
"typescript": "5.6.3",
"typescript": "~5.8.3",
"vitest": "^3.1.1",
"vue-tsc": "^2.2.8",
"wrangler": "^4.9.0"
},
"resolutions": {
"h3": "^1.14.0",
"@nuxtjs/mdc": "https://pkg.pr.new/@nuxtjs/mdc@cd1c4fd"
},
"packageManager": "[email protected]",
"pnpm": {
"onlyBuiltDependencies": [
Expand Down
2 changes: 1 addition & 1 deletion playground/app/pages/browser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const capture = async () => {
</div>
</template>
<UAlert v-if="!image" :title="loading ? 'Capturing...' : 'No screenshot captured'" color="neutral" variant="outline" icon="i-lucide-info" />
<img v-if="image" :src="image" class="rounded border dark:border-gray-800" style="aspect-ratio: 16/9;" :class="{ 'animate-pulse': loading }">
<img v-if="image" :src="image" class="rounded border border-(--ui-border)" style="aspect-ratio: 16/9;" :class="{ 'animate-pulse': loading }">
<UAlert v-if="framework" class="mt-4" :class="{ 'animate-pulse': loading }" :title="`This website is made with ${framework}`" color="neutral" variant="outline" icon="i-lucide-code-xml" />
<div class="mt-4">
Or open our <UButtonGroup>
Expand Down
22 changes: 11 additions & 11 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@
"preview": "nuxi preview"
},
"dependencies": {
"@ai-sdk/vue": "^1.2.2",
"@cloudflare/puppeteer": "^0.0.15",
"@iconify-json/simple-icons": "^1.2.29",
"@ai-sdk/vue": "^1.2.7",
"@cloudflare/puppeteer": "^1.0.1",
"@iconify-json/simple-icons": "^1.2.31",
"@kgierke/nuxt-basic-auth": "^1.7.0",
"@nuxt/ui": "3.0.2",
"@nuxthub/core": "latest",
"@nuxtjs/mdc": "^0.16.1",
"@vueuse/core": "^13.0.0",
"@vueuse/nuxt": "^13.0.0",
"ai": "^4.2.8",
"@vueuse/core": "^13.1.0",
"@vueuse/nuxt": "^13.1.0",
"ai": "^4.3.4",
"aws4fetch": "^1.0.20",
"drizzle-orm": "^0.41.0",
"nuxt": "^3.16.1",
"nuxt-auth-utils": "^0.5.17",
"nuxt": "^3.16.2",
"nuxt-auth-utils": "^0.5.19",
"postgres": "^3.4.5",
"puppeteer": "^24.4.0",
"tailwindcss": "^4.0.17",
"workers-ai-provider": "^0.2.1",
"puppeteer": "^24.6.0",
"tailwindcss": "^4.1.3",
"workers-ai-provider": "^0.3.0",
"zod": "^3.24.2"
},
"devDependencies": {
Expand Down
Loading