UNPKG

@nuxt/scripts

Version:

Load third-party scripts with better performance, privacy and DX in Nuxt Apps.

142 lines 3.93 kB
{ "name": "@nuxt/scripts", "type": "module", "version": "0.11.1", "description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.", "author": { "website": "https://harlanzw.com", "name": "Harlan Wilton", "url": "harlan@harlanzw.com" }, "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/nuxt/scripts.git" }, "bugs": { "url": "https://github.com/nuxt/scripts/issues" }, "sideEffects": false, "exports": { ".": { "types": "./dist/types.d.ts", "import": "./dist/module.mjs", "require": "./dist/module.cjs" }, "./registry": { "types": "./dist/registry.d.ts", "import": "./dist/registry.mjs" } }, "main": "./dist/module.cjs", "types": "./dist/types.d.ts", "files": [ "dist" ], "build": { "externals": [ "@unhead/vue", "@unhead/schema", "knitwork", "estree-walker", "#build/modules/nuxt-scripts-gtm", "#build/modules/nuxt-scripts-ga", "@vimeo/player", "esbuild", "unimport", "#nuxt-scripts/types", "#nuxt-scripts-validator" ] }, "peerDependencies": { "@stripe/stripe-js": "^5.10.0", "@types/google.maps": "^3.58.1", "@types/vimeo__player": "^2.18.3", "@types/youtube": "^0.1.0", "@unhead/vue": "^2.0.0-rc.8", "nuxt": "^3.16.0" }, "peerDependenciesMeta": { "@stripe/stripe-js": { "optional": true }, "@types/google.maps": { "optional": true }, "@types/vimeo__player": { "optional": true }, "@types/youtube": { "optional": true } }, "dependencies": { "@nuxt/kit": "^3.16.0", "@vueuse/core": "^12.8.2", "consola": "^3.4.0", "defu": "^6.1.4", "h3": "^1.15.1", "magic-string": "^0.30.17", "ofetch": "^1.4.1", "ohash": "^2.0.11", "pathe": "^2.0.3", "pkg-types": "^2.1.0", "sirv": "^3.0.1", "std-env": "^3.8.1", "ufo": "^1.5.4", "unplugin": "^2.2.0", "unstorage": "^1.15.0", "valibot": "^1.0.0-rc.3" }, "devDependencies": { "@nuxt/devtools-kit": "^2.2.1", "@nuxt/devtools-ui-kit": "^2.2.1", "@nuxt/eslint-config": "^1.1.0", "@nuxt/module-builder": "^0.8.4", "@nuxt/test-utils": "3.17.1", "@types/semver": "^7.5.8", "@typescript-eslint/typescript-estree": "^8.26.0", "@unhead/ssr": "^1.11.20", "acorn-loose": "^8.4.0", "bumpp": "^10.0.3", "changelogen": "^0.6.1", "eslint": "9.21.0", "eslint-plugin-n": "^17.16.2", "happy-dom": "^17.4.0", "knitwork": "^1.2.0", "nuxt": "^3.16.0", "playwright-core": "^1.51.0", "shiki": "2.5.0", "typescript": "5.8.2", "vitest": "^3.0.8", "vue": "^3.5.13", "vue-router": "^4.5.0", "vue-tsc": "^2.2.8", "@nuxt/scripts": "0.11.1" }, "resolutions": { "@nuxt/schema": "catalog:", "@nuxt/scripts": "workspace:*", "@unhead/vue": "2.0.0-rc.8", "nuxt": "catalog:", "typescript": "5.8.2", "vue": "^3.5.13", "vue-router": "^4.5.0" }, "scripts": { "build": "pnpm dev:prepare && pnpm prepack", "client:build": "nuxi generate client", "client:dev": "nuxi dev client --port 3300", "dev": "nuxi dev playground", "dev:ssl": "nuxi dev playground --https", "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground", "typecheck": "vue-tsc --noEmit", "bump": "bumpp package.json --commit --push --tag", "release": "pnpm build && pnpm bump && pnpm publish --tag latest -r --no-git-checks", "lint": "eslint .", "lint:fix": "eslint . --fix", "test": "pnpm dev:prepare && vitest --run --exclude **/__runtime__ && pnpm test:runtime", "test:runtime": "cd test/fixtures/basic && vitest --run", "test:types": "echo 'broken due to type regeneration, use pnpm typecheck' && npx nuxi typecheck" } }