2018-09-19 23:35:38 +08:00
|
|
|
{
|
|
|
|
"private": true,
|
2024-11-15 22:45:28 +08:00
|
|
|
"version": "3.5.13",
|
2025-03-04 20:15:44 +08:00
|
|
|
"packageManager": "pnpm@10.5.2",
|
2023-02-03 18:12:56 +08:00
|
|
|
"type": "module",
|
2018-09-19 23:35:38 +08:00
|
|
|
"scripts": {
|
2023-02-03 18:12:56 +08:00
|
|
|
"dev": "node scripts/dev.js",
|
|
|
|
"build": "node scripts/build.js",
|
2024-09-10 16:46:19 +08:00
|
|
|
"build-dts": "tsc -p tsconfig.build.json --noCheck && rollup -c rollup.dts.config.js",
|
2024-09-02 17:06:03 +08:00
|
|
|
"clean": "rimraf --glob packages/*/dist temp .eslintcache",
|
2024-09-10 19:13:42 +08:00
|
|
|
"size": "run-s \"size-*\" && node scripts/usage-size.js",
|
2023-08-21 11:33:51 +08:00
|
|
|
"size-global": "node scripts/build.js vue runtime-dom -f global -p --size",
|
|
|
|
"size-esm-runtime": "node scripts/build.js vue -f esm-bundler-runtime",
|
|
|
|
"size-esm": "node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler",
|
2023-02-02 16:36:07 +08:00
|
|
|
"check": "tsc --incremental --noEmit",
|
2024-04-17 21:58:35 +08:00
|
|
|
"lint": "eslint --cache .",
|
2023-08-11 17:30:04 +08:00
|
|
|
"format": "prettier --write --cache .",
|
|
|
|
"format-check": "prettier --check --cache .",
|
2023-01-26 22:53:39 +08:00
|
|
|
"test": "vitest",
|
2024-09-16 15:00:41 +08:00
|
|
|
"test-unit": "vitest --project unit",
|
|
|
|
"test-e2e": "node scripts/build.js vue -f global -d && vitest --project e2e",
|
2023-02-03 15:48:12 +08:00
|
|
|
"test-dts": "run-s build-dts test-dts-only",
|
2024-08-12 08:02:03 +08:00
|
|
|
"test-dts-only": "tsc -p packages-private/dts-built-test/tsconfig.json && tsc -p ./packages-private/dts-test/tsconfig.test.json",
|
2024-09-16 15:00:41 +08:00
|
|
|
"test-coverage": "vitest run --project unit --coverage",
|
2024-11-14 08:38:48 +08:00
|
|
|
"prebench": "node scripts/build.js -pf esm-browser reactivity",
|
|
|
|
"prebench-compare": "node scripts/build.js -pf esm-browser reactivity",
|
2024-11-13 14:13:32 +08:00
|
|
|
"bench": "vitest bench --project=unit --outputJson=temp/bench.json",
|
|
|
|
"bench-compare": "vitest bench --project=unit --compare=temp/bench.json",
|
2023-02-03 18:12:56 +08:00
|
|
|
"release": "node scripts/release.js",
|
2020-02-06 23:22:16 +08:00
|
|
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
2023-02-03 18:12:56 +08:00
|
|
|
"dev-esm": "node scripts/dev.js -if esm-bundler-runtime",
|
2021-09-24 02:46:16 +08:00
|
|
|
"dev-compiler": "run-p \"dev template-explorer\" serve",
|
2022-11-14 10:22:20 +08:00
|
|
|
"dev-sfc": "run-s dev-sfc-prepare dev-sfc-run",
|
2023-11-10 17:17:17 +08:00
|
|
|
"dev-sfc-prepare": "node scripts/pre-dev-sfc.js || npm run build-all-cjs",
|
2024-08-12 08:02:03 +08:00
|
|
|
"dev-sfc-serve": "vite packages-private/sfc-playground --host",
|
2023-11-12 16:30:30 +08:00
|
|
|
"dev-sfc-run": "run-p \"dev compiler-sfc -f esm-browser\" \"dev vue -if esm-bundler-runtime\" \"dev vue -ipf esm-browser-runtime\" \"dev server-renderer -if esm-bundler\" dev-sfc-serve",
|
2020-02-06 23:22:16 +08:00
|
|
|
"serve": "serve",
|
2024-08-28 17:52:07 +08:00
|
|
|
"open": "open http://localhost:3000/packages-private/template-explorer/local.html",
|
2023-12-05 03:08:21 +08:00
|
|
|
"build-sfc-playground": "run-s build-all-cjs build-runtime-esm build-browser-esm build-ssr-esm build-sfc-playground-self",
|
2023-11-21 18:06:42 +08:00
|
|
|
"build-all-cjs": "node scripts/build.js vue runtime compiler reactivity shared -af cjs",
|
2023-02-03 18:12:56 +08:00
|
|
|
"build-runtime-esm": "node scripts/build.js runtime reactivity shared -af esm-bundler && node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js vue -f esm-browser-runtime",
|
2023-12-05 03:08:21 +08:00
|
|
|
"build-browser-esm": "node scripts/build.js runtime reactivity shared -af esm-bundler && node scripts/build.js vue -f esm-bundler && node scripts/build.js vue -f esm-browser",
|
2023-02-03 18:12:56 +08:00
|
|
|
"build-ssr-esm": "node scripts/build.js compiler-sfc server-renderer -f esm-browser",
|
2024-08-12 08:02:03 +08:00
|
|
|
"build-sfc-playground-self": "cd packages-private/sfc-playground && npm run build",
|
2023-07-09 12:52:13 +08:00
|
|
|
"preinstall": "npx only-allow pnpm",
|
2022-11-09 21:14:59 +08:00
|
|
|
"postinstall": "simple-git-hooks"
|
2019-11-02 10:54:01 +08:00
|
|
|
},
|
2022-11-09 21:14:59 +08:00
|
|
|
"simple-git-hooks": {
|
2023-02-02 16:36:07 +08:00
|
|
|
"pre-commit": "pnpm lint-staged && pnpm check",
|
2023-12-26 14:59:34 +08:00
|
|
|
"commit-msg": "node scripts/verify-commit.js"
|
2018-09-19 23:37:18 +08:00
|
|
|
},
|
|
|
|
"lint-staged": {
|
2022-11-09 21:14:59 +08:00
|
|
|
"*.{js,json}": [
|
2020-06-17 00:09:20 +08:00
|
|
|
"prettier --write"
|
2018-09-19 23:37:18 +08:00
|
|
|
],
|
2019-10-15 03:07:43 +08:00
|
|
|
"*.ts?(x)": [
|
2023-12-26 22:13:50 +08:00
|
|
|
"eslint --fix",
|
2020-06-17 00:09:20 +08:00
|
|
|
"prettier --parser=typescript --write"
|
2018-09-19 23:37:18 +08:00
|
|
|
]
|
|
|
|
},
|
2020-03-25 21:44:19 +08:00
|
|
|
"engines": {
|
2023-10-20 10:43:54 +08:00
|
|
|
"node": ">=18.12.0"
|
2020-03-25 21:44:19 +08:00
|
|
|
},
|
2018-09-19 23:35:38 +08:00
|
|
|
"devDependencies": {
|
2024-07-08 20:06:37 +08:00
|
|
|
"@babel/parser": "catalog:",
|
|
|
|
"@babel/types": "catalog:",
|
2024-09-26 17:07:20 +08:00
|
|
|
"@rollup/plugin-alias": "^5.1.1",
|
2024-12-16 10:49:38 +08:00
|
|
|
"@rollup/plugin-commonjs": "^28.0.2",
|
2024-02-05 11:37:25 +08:00
|
|
|
"@rollup/plugin-json": "^6.1.0",
|
2024-12-23 11:17:34 +08:00
|
|
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
2024-02-05 12:14:28 +08:00
|
|
|
"@rollup/plugin-replace": "5.0.4",
|
2025-02-24 09:36:45 +08:00
|
|
|
"@swc/core": "^1.10.18",
|
2023-11-10 14:20:50 +08:00
|
|
|
"@types/hash-sum": "^1.0.2",
|
2025-03-04 20:15:44 +08:00
|
|
|
"@types/node": "^22.13.9",
|
2024-02-26 09:15:57 +08:00
|
|
|
"@types/semver": "^7.5.8",
|
2024-08-02 12:46:12 +08:00
|
|
|
"@types/serve-handler": "^6.1.4",
|
2025-03-04 08:26:16 +08:00
|
|
|
"@vitest/coverage-v8": "^3.0.7",
|
|
|
|
"@vitest/eslint-plugin": "^1.1.36",
|
2024-02-19 16:41:21 +08:00
|
|
|
"@vue/consolidate": "1.0.0",
|
2024-07-29 20:18:02 +08:00
|
|
|
"conventional-changelog-cli": "^5.0.0",
|
2023-09-19 15:33:33 +08:00
|
|
|
"enquirer": "^2.4.1",
|
2025-02-10 09:43:09 +08:00
|
|
|
"esbuild": "^0.25.0",
|
2023-09-19 16:32:31 +08:00
|
|
|
"esbuild-plugin-polyfill-node": "^0.3.0",
|
2025-02-17 14:26:56 +08:00
|
|
|
"eslint": "^9.20.1",
|
2024-12-23 11:14:51 +08:00
|
|
|
"eslint-plugin-import-x": "^4.6.1",
|
2024-07-15 16:31:27 +08:00
|
|
|
"estree-walker": "catalog:",
|
2025-01-14 10:15:44 +08:00
|
|
|
"jsdom": "^26.0.0",
|
2025-02-17 14:26:56 +08:00
|
|
|
"lint-staged": "^15.4.3",
|
2023-09-19 15:33:33 +08:00
|
|
|
"lodash": "^4.17.21",
|
2024-12-23 11:15:11 +08:00
|
|
|
"magic-string": "^0.30.17",
|
2024-10-28 09:17:49 +08:00
|
|
|
"markdown-table": "^3.0.4",
|
2024-08-12 09:33:56 +08:00
|
|
|
"marked": "13.0.3",
|
2024-12-23 11:05:25 +08:00
|
|
|
"npm-run-all2": "^7.0.2",
|
2024-10-22 09:53:31 +08:00
|
|
|
"picocolors": "^1.1.1",
|
2025-02-17 14:26:56 +08:00
|
|
|
"prettier": "^3.5.1",
|
2023-08-21 11:33:51 +08:00
|
|
|
"pretty-bytes": "^6.1.1",
|
2024-05-27 16:27:59 +08:00
|
|
|
"pug": "^3.0.3",
|
2025-03-04 08:26:16 +08:00
|
|
|
"puppeteer": "~24.3.1",
|
2024-08-05 14:06:57 +08:00
|
|
|
"rimraf": "^6.0.1",
|
2025-02-24 09:36:45 +08:00
|
|
|
"rollup": "^4.34.8",
|
2024-05-20 21:42:35 +08:00
|
|
|
"rollup-plugin-dts": "^6.1.1",
|
2025-02-10 09:43:09 +08:00
|
|
|
"rollup-plugin-esbuild": "^6.2.0",
|
2024-02-05 11:37:25 +08:00
|
|
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
2025-02-17 14:50:22 +08:00
|
|
|
"semver": "^7.7.1",
|
2024-10-22 09:53:31 +08:00
|
|
|
"serve": "^14.2.4",
|
|
|
|
"serve-handler": "^6.1.6",
|
2024-04-01 21:53:40 +08:00
|
|
|
"simple-git-hooks": "^2.11.1",
|
2023-10-23 15:55:23 +08:00
|
|
|
"todomvc-app-css": "^2.4.3",
|
2024-11-04 09:25:09 +08:00
|
|
|
"tslib": "^2.8.1",
|
2024-09-10 16:46:19 +08:00
|
|
|
"typescript": "~5.6.2",
|
2025-02-17 14:26:56 +08:00
|
|
|
"typescript-eslint": "^8.24.0",
|
2024-07-08 20:06:37 +08:00
|
|
|
"vite": "catalog:",
|
2025-03-04 08:26:16 +08:00
|
|
|
"vitest": "^3.0.7"
|
2024-04-17 21:58:35 +08:00
|
|
|
},
|
|
|
|
"pnpm": {
|
|
|
|
"peerDependencyRules": {
|
|
|
|
"allowedVersions": {
|
|
|
|
"typescript-eslint>eslint": "^9.0.0",
|
|
|
|
"@typescript-eslint/eslint-plugin>eslint": "^9.0.0",
|
|
|
|
"@typescript-eslint/parser>eslint": "^9.0.0",
|
|
|
|
"@typescript-eslint/type-utils>eslint": "^9.0.0",
|
|
|
|
"@typescript-eslint/utils>eslint": "^9.0.0"
|
|
|
|
}
|
2025-02-19 20:49:51 +08:00
|
|
|
},
|
|
|
|
"onlyBuiltDependencies": [
|
|
|
|
"@swc/core",
|
|
|
|
"esbuild",
|
|
|
|
"puppeteer",
|
|
|
|
"simple-git-hooks"
|
|
|
|
]
|
2018-09-19 23:35:38 +08:00
|
|
|
}
|
|
|
|
}
|