UNPKG

nuxt-safe-runtime-config

Version:

Validate Nuxt runtime config with Standard Schema at build time

84 lines 2.23 kB
{ "name": "nuxt-safe-runtime-config", "type": "module", "version": "0.0.3", "description": "Validate Nuxt runtime config with Standard Schema at build time", "author": { "name": "onmax" }, "license": "MIT", "repository": "onmax/nuxt-safe-runtime-config", "keywords": [ "nuxt", "nuxt-module", "runtime-config", "validation", "standard-schema", "valibot", "zod", "arktype", "build-time" ], "exports": { ".": { "types": "./dist/types.d.mts", "import": "./dist/module.mjs" } }, "main": "./dist/module.mjs", "typesVersions": { "*": { ".": [ "./dist/types.d.mts" ] } }, "files": [ "dist" ], "dependencies": { "@nuxt/kit": "^3.17.4", "@standard-schema/spec": "^1.0.0", "consola": "^3.4.2" }, "devDependencies": { "@antfu/eslint-config": "^4.13.3", "@antfu/ni": "^25.0.0", "@nuxt/devtools": "^2.4.1", "@nuxt/eslint": "^1.4.1", "@nuxt/eslint-config": "^1.4.1", "@nuxt/module-builder": "^1.0.1", "@nuxt/schema": "^3.17.4", "@nuxt/test-utils": "^3.19.1", "@types/node": "latest", "bumpp": "^10.1.1", "changelogen": "^0.6.1", "eslint": "^9.28.0", "eslint-plugin-format": "^1.0.1", "lint-staged": "^16.1.0", "nuxt": "^3.17.4", "simple-git-hooks": "^2.13.0", "typescript": "~5.8.3", "valibot": "^1.1.0", "vitest": "^3.2.0", "vue-tsc": "^2.2.10" }, "simple-git-hooks": { "pre-commit": "pnpm lint-staged" }, "lint-staged": { "*": "eslint --fix" }, "scripts": { "dev": "nuxi dev playground", "dev:build": "nuxi build playground", "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && pnpm -C test/fixtures/validation-failure prepare && pnpm -C test/fixtures/validation-success prepare", "release": "nr lint && nr typecheck && nr test && nr prepack && bumpp && pnpm publish", "typecheck": "nuxt typecheck && pnpm -C playground typecheck", "lint": "eslint .", "lint:fix": "eslint . --fix", "test": "vitest run", "test:watch": "vitest watch", "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit" } }