Skip to content
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
5 changes: 5 additions & 0 deletions .github/workflows/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ jobs:
- run: pnpm install
- run: pnpm dev:prepare
- run: pnpm prepack
- name: verify packed runtime files
run: |
test ! -L dist/runtime
test -f dist/runtime/composables/useSafeRuntimeConfig.js
test -f dist/runtime/utils/transform.js
- run: pnpm dlx pkg-pr-new publish --pnpm
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ export function getPrivateConfig() {
}
```

If your editor runs type-checking outside Nuxt's auto-import context, import it explicitly:

```ts
import { useSafeRuntimeConfig } from '#imports'
```

## Configuration Options

| Option | Type | Default | Description |
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"dist"
],
"scripts": {
"prepack": "nuxt-module-build build && unbuild",
"clean:dist": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
"prepack": "pnpm clean:dist && nuxt-module-build build && unbuild",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxi prepare playground",
Expand Down
Loading