UNPKG

nuxt-safe-runtime-config

Version:

Validate Nuxt runtime config with Standard Schema at build time

144 lines 3.75 kB
{ "name": "nuxt-safe-runtime-config", "type": "module", "version": "0.2.1", "description": "Validate Nuxt runtime config with Standard Schema at build time", "author": { "name": "onmax" }, "license": "MIT", "homepage": "https://nuxt-safe-runtime-config.onmax.me", "docs": "https://nuxt-safe-runtime-config.onmax.me", "repository": "onmax/nuxt-safe-runtime-config", "keywords": [ "nuxt", "nuxt-module", "runtime-config", "validation", "standard-schema", "valibot", "zod", "arktype", "build-time", "shelve", "secrets" ], "sideEffects": false, "exports": { ".": { "types": "./dist/types.d.mts", "import": "./dist/module.mjs" }, "./nuxt": { "types": "./dist/types.d.mts", "import": "./dist/module.mjs" }, "./nitro": { "types": "./dist/nitro.d.mts", "import": "./dist/nitro.mjs" }, "./eslint": { "types": "./dist/eslint.d.mts", "import": "./dist/eslint.mjs" } }, "main": "./dist/module.mjs", "typesVersions": { "*": { ".": [ "./dist/types.d.mts" ], "nuxt": [ "./dist/types.d.mts" ], "nitro": [ "./dist/nitro.d.mts" ], "eslint": [ "./dist/eslint.d.mts" ] } }, "files": [ "dist" ], "peerDependencies": { "@nuxt/kit": "^3.0.0 || ^4.0.0 || ^5.0.0-0", "eslint": ">=9.0.0", "nitropack": "^2.13.0" }, "peerDependenciesMeta": { "@nuxt/kit": { "optional": true }, "eslint": { "optional": true }, "nitropack": { "optional": true } }, "dependencies": { "@cfworker/json-schema": "^4.1.1", "@standard-community/standard-json": "^0.3.0", "@standard-schema/spec": "^1.1.0", "@typescript-eslint/utils": "^8.50.0", "@valibot/to-json-schema": "1.3.0", "consola": "^3.4.0", "defu": "^6.1.4", "jiti": "^2.6.1", "magicast": "^0.3.5", "ofetch": "^1.4.1", "std-env": "^3.9.0", "zod-to-json-schema": "^3.25.0" }, "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.2", "@nuxt/nitro-server": "^4.4.2", "@nuxt/schema": "^4.4.2", "@nuxt/test-utils": "^3.19.1", "@types/node": "latest", "@typescript-eslint/parser": "^8.50.0", "@typescript-eslint/rule-tester": "^8.50.0", "arktype": "^2.2.0", "bumpp": "^10.1.1", "changelogen": "^0.6.1", "eslint": "^9.28.0", "eslint-plugin-format": "^1.0.1", "lint-staged": "^16.1.0", "nitro": "3.0.260429-beta", "nuxt": "^4.4.2", "simple-git-hooks": "^2.13.0", "typescript": "~5.8.3", "unbuild": "^3.5.0", "valibot": "^1.1.0", "vitest": "^3.2.0", "vue-tsc": "^2.2.10", "zod": "^4.2.0" }, "simple-git-hooks": { "pre-commit": "pnpm lint-staged" }, "lint-staged": { "*": "eslint --fix" }, "scripts": { "clean:dist": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"", "dev": "nuxi dev playground", "dev:build": "nuxi build playground", "dev:prepare": "nuxt-module-build build --stub && nuxi prepare playground", "clean:runtime-stubs": "find src/runtime -type f \\( -name '*.js' -o -name '*.d.ts' \\) -delete", "release": "bumpp && git push --follow-tags", "typecheck": "pnpm clean:runtime-stubs && 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" } }