Skip to content

Commit 94846cc

Browse files
committed
refactor: Update configuration and improve code formatting
1 parent f9baf2f commit 94846cc

File tree

6 files changed

+9306
-527
lines changed

6 files changed

+9306
-527
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"dev": "nuxi dev playground",
2323
"dev:build": "nuxi build playground",
2424
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
25-
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
25+
"release": "pnpm run lint && pnpm run prepack && changelogen --release && pnpm publish && git push --follow-tags",
2626
"lint": "eslint .",
2727
"test": "vitest run",
2828
"test:watch": "vitest watch",

playground/app.vue

+10-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33
Nuxt module playground!
44

55
<p>{{ status }}</p>
6-
<p v-if="status === 'success'">Your country is: {{ data }}</p>
7-
<p v-if="status === 'error'">Error: {{ data }}</p>
8-
<button @click="refresh">Refresh</button>
6+
<p v-if="status === 'success'">
7+
Your country is: {{ data }}
8+
</p>
9+
<p v-if="status === 'error'">
10+
Error: {{ data }}
11+
</p>
12+
<button @click="refresh">
13+
Refresh
14+
</button>
915
</div>
1016
</template>
1117

1218
<script setup>
13-
const { data, refresh, status } = await useUserCountry();
19+
const { data, refresh, status } = await useUserCountry()
1420
</script>

playground/nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ export default defineNuxtConfig({
22
modules: ['../src/module'],
33
devtools: { enabled: true },
44
compatibilityDate: '2024-11-15',
5-
})
5+
})

0 commit comments

Comments
 (0)