From 61d4a5be8fdd94f39956ed185ddc1d10b401c62b Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 13 May 2022 09:44:48 +0800 Subject: [PATCH 01/10] chore: use `esno` to replace `ts-node` --- package.json | 8 +- packages/plugin-react/package.json | 2 +- packages/plugin-vue/package.json | 2 +- packages/vite/package.json | 2 +- packages/vite/rollup.config.js | 2 +- playground/tailwind/package.json | 3 +- pnpm-lock.yaml | 191 ++++++++--------------------- 7 files changed, 57 insertions(+), 153 deletions(-) diff --git a/package.json b/package.json index 92a5fd2ee871b5..4439f434cfbdfa 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "docs": "vitepress dev docs", "build-docs": "vitepress build docs", "serve-docs": "vitepress serve docs", - "release": "ts-node scripts/release.ts", - "ci-publish": "ts-node scripts/publishCI.ts", + "release": "esno scripts/release.ts", + "ci-publish": "esno scripts/publishCI.ts", "typecheck": "tsc -p scripts --noEmit && tsc -p playground --noEmit", "build": "run-s build-vite build-plugin-vue build-plugin-react", "build-vite": "cd packages/vite && npm run build", @@ -65,6 +65,7 @@ "eslint-define-config": "^1.4.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-node": "^11.1.0", + "esno": "^0.15.0", "execa": "^5.1.1", "fs-extra": "^10.1.0", "kill-port": "^1.6.1", @@ -81,7 +82,6 @@ "semver": "^7.3.7", "simple-git-hooks": "^2.7.0", "sirv": "^2.0.2", - "ts-node": "^10.7.0", "typescript": "^4.6.4", "vite": "workspace:*", "vitepress": "^0.22.4", @@ -90,7 +90,7 @@ }, "simple-git-hooks": { "pre-commit": "pnpm exec lint-staged --concurrent false", - "commit-msg": "pnpm exec ts-node scripts/verifyCommit.ts $1" + "commit-msg": "pnpm exec esno scripts/verifyCommit.ts $1" }, "lint-staged": { "*": [ diff --git a/packages/plugin-react/package.json b/packages/plugin-react/package.json index ca8b1d78752b69..b3b68b4da5ee67 100644 --- a/packages/plugin-react/package.json +++ b/packages/plugin-react/package.json @@ -16,7 +16,7 @@ "dev": "tsc -p . -w --incremental", "build": "rimraf dist && run-s build-bundle build-types", "build-bundle": "esbuild src/index.ts --bundle --platform=node --target=node12 --external:@babel/* --external:@rollup/* --external:resolve --external:react-refresh/* --outfile=dist/index.js && npm run patch-dist", - "patch-dist": "ts-node ../../scripts/patchEsbuildDist.ts dist/index.js viteReact", + "patch-dist": "esno ../../scripts/patchEsbuildDist.ts dist/index.js viteReact", "build-types": "tsc -p . --emitDeclarationOnly --outDir temp && api-extractor run && rimraf temp", "prepublishOnly": "(cd ../vite && npm run build) && npm run build" }, diff --git a/packages/plugin-vue/package.json b/packages/plugin-vue/package.json index 22ce5ad55ab68b..749b4e7fe631c6 100644 --- a/packages/plugin-vue/package.json +++ b/packages/plugin-vue/package.json @@ -14,7 +14,7 @@ "dev-watch": "esbuild src/index.ts --watch --bundle --platform=node --target=node12 --external:@vue/compiler-sfc --external:vue/compiler-sfc --external:vite --outfile=dist/index.js", "build": "rimraf dist && run-s build-bundle build-types", "build-bundle": "esbuild src/index.ts --bundle --platform=node --target=node12 --external:@vue/compiler-sfc --external:vue/compiler-sfc --external:vite --outfile=dist/index.js & npm run patch-dist", - "patch-dist": "ts-node ../../scripts/patchEsbuildDist.ts dist/index.js vuePlugin", + "patch-dist": "esno ../../scripts/patchEsbuildDist.ts dist/index.js vuePlugin", "build-types": "tsc -p . --emitDeclarationOnly --outDir temp && api-extractor run && rimraf temp", "prepublishOnly": "(cd ../vite && npm run build) && npm run build" }, diff --git a/packages/vite/package.json b/packages/vite/package.json index b4a9147951bf7a..21191241e4c8e8 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -35,7 +35,7 @@ "build-types": "run-s build-temp-types patch-types roll-types", "build-temp-types": "tsc --emitDeclarationOnly --outDir temp/node -p src/node", "ci-build": "rimraf dist && run-s build-bundle build-types", - "patch-types": "ts-node scripts/patchTypes.ts", + "patch-types": "esno scripts/patchTypes.ts", "roll-types": "api-extractor run && rimraf temp", "lint": "eslint --ext .ts src/**", "format": "prettier --write --parser typescript \"src/**/*.ts\"", diff --git a/packages/vite/rollup.config.js b/packages/vite/rollup.config.js index 93f4f33bdec398..292cd5f16bc819 100644 --- a/packages/vite/rollup.config.js +++ b/packages/vite/rollup.config.js @@ -172,7 +172,7 @@ const createNodeConfig = (isProduction) => { pattern: /: require,/g, replacement: `: eval('require'),` }, - // postcss-load-config calls require after register ts-node + // postcss-load-config calls require after register esno 'postcss-load-config/src/index.js': { src: `require(configFile)`, replacement: `eval('require')(configFile)` diff --git a/playground/tailwind/package.json b/playground/tailwind/package.json index 9bf1b1fbe5fff2..bde1d50d873ac8 100644 --- a/playground/tailwind/package.json +++ b/playground/tailwind/package.json @@ -15,7 +15,6 @@ "vue-router": "^4.0.15" }, "devDependencies": { - "@vitejs/plugin-vue": "workspace:*", - "ts-node": "^10.7.0" + "@vitejs/plugin-vue": "workspace:*" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 56e40b2c545599..78c53a716421ca 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -39,6 +39,7 @@ importers: eslint-define-config: ^1.4.0 eslint-plugin-import: ^2.26.0 eslint-plugin-node: ^11.1.0 + esno: ^0.15.0 execa: ^5.1.1 fs-extra: ^10.1.0 kill-port: ^1.6.1 @@ -55,7 +56,6 @@ importers: semver: ^7.3.7 simple-git-hooks: ^2.7.0 sirv: ^2.0.2 - ts-node: ^10.7.0 typescript: ^4.6.4 vite: workspace:* vitepress: ^0.22.4 @@ -91,6 +91,7 @@ importers: eslint-define-config: 1.4.0 eslint-plugin-import: 2.26.0_doddzorl55y6dbr5ij3nshfl64 eslint-plugin-node: 11.1.0_eslint@8.15.0 + esno: 0.15.0 execa: 5.1.1 fs-extra: 10.1.0 kill-port: 1.6.1 @@ -107,7 +108,6 @@ importers: semver: 7.3.7 simple-git-hooks: 2.7.0 sirv: 2.0.2 - ts-node: 10.7.0_sm5zkxj4s52nbddwl76qwfh6ya typescript: 4.6.4 vite: link:packages/vite vitepress: 0.22.4 @@ -892,17 +892,15 @@ importers: '@vitejs/plugin-vue': workspace:* autoprefixer: ^10.4.7 tailwindcss: ^2.2.19 - ts-node: ^10.7.0 vue: ^3.2.33 vue-router: ^4.0.15 dependencies: autoprefixer: 10.4.7 - tailwindcss: 2.2.19_eq6rdkkr572vfnsce6ssjbbos4 + tailwindcss: 2.2.19_autoprefixer@10.4.7 vue: 3.2.33 vue-router: 4.0.15_vue@3.2.33 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue - ts-node: 10.7.0 playground/tailwind-sourcemap: specifiers: @@ -1468,18 +1466,6 @@ packages: resolution: {integrity: sha512-kaMn2rueJ0PL1TYVGknTCh0X0x0d9G+FNXAFep7/4uqecEZoQb/63o6rOmMuiqI09zLuHV6xhKRXinokV/MY9A==} dev: true - /@cspotcode/source-map-consumer/0.8.0: - resolution: {integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==} - engines: {node: '>= 12'} - dev: true - - /@cspotcode/source-map-support/0.7.0: - resolution: {integrity: sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==} - engines: {node: '>=12'} - dependencies: - '@cspotcode/source-map-consumer': 0.8.0 - dev: true - /@docsearch/css/3.0.0: resolution: {integrity: sha512-1kkV7tkAsiuEd0shunYRByKJe3xQDG2q7wYg24SOw1nV9/2lwEd4WrUYRJC/ukGTl2/kHeFxsaUvtiOy0y6fFA==} dev: true @@ -1590,6 +1576,27 @@ packages: resolution: {integrity: sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==} dev: false + /@esbuild-kit/cjs-loader/1.0.0: + resolution: {integrity: sha512-6oPhu5QcuTsU5nO3hBCd6OdfeaGsheU6OZrQSAzBsXOiZQ+lB2Zy1bAeAPKqzVGz16kBbheW+OuL54gLD79HdA==} + dependencies: + '@esbuild-kit/core-utils': 1.0.0 + get-tsconfig: 3.0.1 + dev: true + + /@esbuild-kit/core-utils/1.0.0: + resolution: {integrity: sha512-OpBaYYkCxIFnTjk46dYaZplHrLXkYZvw0FporqTEPEWNJV8k2/+LTIZ1U49NdEBB33A3Ke/78KG78EoDnLENcg==} + dependencies: + esbuild: 0.14.38 + dev: true + + /@esbuild-kit/esm-loader/1.0.0: + resolution: {integrity: sha512-fZtvhHmO0fKNHszwb9GtBr4eaBA4ZAPxDpV/oWLh0R45IgMNz7lDIGeqsDHFTwQ4LeFgOMjzRIH0JapX8FUQmQ==} + dependencies: + '@esbuild-kit/core-utils': 1.0.0 + es-module-lexer: 0.10.5 + get-tsconfig: 3.0.1 + dev: true + /@eslint/eslintrc/1.2.3: resolution: {integrity: sha512-uGo44hIwoLGNyduRpjdEpovcbMdd+Nv7amtmJxnKmI8xj6yd5LncmSwDa5NgX/41lIFJtkjD6YdVfgEzPfJ5UA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -1897,22 +1904,6 @@ packages: string-argv: 0.3.1 dev: true - /@tsconfig/node10/1.0.8: - resolution: {integrity: sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==} - dev: true - - /@tsconfig/node12/1.0.9: - resolution: {integrity: sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==} - dev: true - - /@tsconfig/node14/1.0.1: - resolution: {integrity: sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==} - dev: true - - /@tsconfig/node16/1.0.2: - resolution: {integrity: sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==} - dev: true - /@types/argparse/1.0.38: resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} dev: true @@ -2371,11 +2362,6 @@ packages: engines: {node: '>=0.4.0'} dev: false - /acorn-walk/8.2.0: - resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} - engines: {node: '>=0.4.0'} - dev: true - /acorn/7.4.1: resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} engines: {node: '>=0.4.0'} @@ -2487,10 +2473,6 @@ packages: readable-stream: 3.6.0 dev: false - /arg/4.1.3: - resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - dev: true - /arg/5.0.1: resolution: {integrity: sha512-e0hDa9H2Z9AwFkk2qDlwhoMYE4eToKarchkQHovNdLTCYMHZHeRjI71crOh+dio4K6u1IcwubQqo79Ga4CyAQA==} dev: false @@ -2939,6 +2921,7 @@ packages: /commander/2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} + requiresBuild: true dev: true /commander/7.2.0: @@ -3261,10 +3244,6 @@ packages: yaml: 1.10.2 dev: false - /create-require/1.1.1: - resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - dev: true - /cross-env/7.0.3: resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} @@ -3516,11 +3495,6 @@ packages: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} dev: false - /diff/4.0.2: - resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} - engines: {node: '>=0.3.1'} - dev: true - /dir-glob/3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -4088,6 +4062,13 @@ packages: - supports-color dev: true + /esno/0.15.0: + resolution: {integrity: sha512-Wws1YgB/PBUtc/Pq755Crv2r5XIcSZyqC/9qyiczzQoDNNIUdxQ75uSd6gaMJFJ+pieljcH3f9JawmrHk0vLXw==} + hasBin: true + dependencies: + tsx: 2.0.1 + dev: true + /espree/9.3.2: resolution: {integrity: sha512-D211tC7ZwouTIuY5x9XnS0E9sWNChB7IYKX/Xp5eQj3nFXhqmiUDB9q27y76oFl8jTg3pXcQx/bpxMfs3CIZbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -4490,6 +4471,10 @@ packages: resolution: {integrity: sha1-dKILqKSr7OWuGZrQPyvMaP38m6U=} dev: true + /get-tsconfig/3.0.1: + resolution: {integrity: sha512-+m30eQjbcf3xMNdnacXH5IDAKUMbI7Mhbf3e1BHif1FzBlUhBzBlmOVc7kL4+kB035l8OCyBdI3dNXZ3of9HqA==} + dev: true + /git-raw-commits/2.0.11: resolution: {integrity: sha512-VnctFhw+xfj8Va1xtfEqCUD2XDrbAPSJx+hSrE5K7fGdjZruW7XV+QOrN7LF/RJyvspRiD2I0asWsxFp0ya26A==} engines: {node: '>=10'} @@ -5392,10 +5377,6 @@ packages: semver: 6.3.0 dev: false - /make-error/1.3.6: - resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - dev: true - /map-obj/1.0.1: resolution: {integrity: sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=} engines: {node: '>=0.10.0'} @@ -6196,23 +6177,6 @@ packages: postcss: 8.4.13 yaml: 1.10.2 - /postcss-load-config/3.1.4_ts-node@10.7.0: - resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} - engines: {node: '>= 10'} - peerDependencies: - postcss: '>=8.0.9' - ts-node: '>=9.0.0' - peerDependenciesMeta: - postcss: - optional: true - ts-node: - optional: true - dependencies: - lilconfig: 2.0.5 - ts-node: 10.7.0 - yaml: 1.10.2 - dev: false - /postcss-modules-extract-imports/3.0.0_postcss@8.4.13: resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==} engines: {node: ^10 || ^12 || >= 14} @@ -7437,7 +7401,7 @@ packages: - ts-node dev: false - /tailwindcss/2.2.19_eq6rdkkr572vfnsce6ssjbbos4: + /tailwindcss/2.2.19_autoprefixer@10.4.7: resolution: {integrity: sha512-6Ui7JSVtXadtTUo2NtkBBacobzWiQYVjYW0ZnKaP9S1ZCKQ0w7KVNz+YSDI/j7O7KCMHbOkz94ZMQhbT9pOqjw==} engines: {node: '>=12.13.0'} hasBin: true @@ -7468,7 +7432,7 @@ packages: normalize-path: 3.0.0 object-hash: 2.2.0 postcss-js: 3.0.3 - postcss-load-config: 3.1.4_ts-node@10.7.0 + postcss-load-config: 3.1.4 postcss-nested: 5.0.6 postcss-selector-parser: 6.0.10 postcss-value-parser: 4.2.0 @@ -7658,66 +7622,6 @@ packages: utf8-byte-length: 1.0.4 dev: true - /ts-node/10.7.0: - resolution: {integrity: sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - dependencies: - '@cspotcode/source-map-support': 0.7.0 - '@tsconfig/node10': 1.0.8 - '@tsconfig/node12': 1.0.9 - '@tsconfig/node14': 1.0.1 - '@tsconfig/node16': 1.0.2 - acorn: 8.7.1 - acorn-walk: 8.2.0 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - dev: true - - /ts-node/10.7.0_sm5zkxj4s52nbddwl76qwfh6ya: - resolution: {integrity: sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - dependencies: - '@cspotcode/source-map-support': 0.7.0 - '@tsconfig/node10': 1.0.8 - '@tsconfig/node12': 1.0.9 - '@tsconfig/node14': 1.0.1 - '@tsconfig/node16': 1.0.2 - '@types/node': 17.0.32 - acorn: 8.7.1 - acorn-walk: 8.2.0 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 4.6.4 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - dev: true - /tsconfck/2.0.0: resolution: {integrity: sha512-GVDTXF4MdNBBxKfUfjs/wkb7LHd8Ho8WLavESCddTFQFG9AUZOZEm6kODBGmQopQ9OG+EHpkT6dBaIIGhYVt+Q==} engines: {node: ^14.13.1 || ^16 || >=18, pnpm: ^7.0.1} @@ -7756,6 +7660,16 @@ packages: typescript: 4.6.4 dev: true + /tsx/2.0.1: + resolution: {integrity: sha512-qOzBwD5DkUodG7PjIUTPmRdAknYHC4jh7cOchnUScJCyayI8Cy8WqoD1rc7+zhM6x5a4YDoE5CJ+t3a92K4j2w==} + hasBin: true + dependencies: + '@esbuild-kit/cjs-loader': 1.0.0 + '@esbuild-kit/esm-loader': 1.0.0 + optionalDependencies: + fsevents: 2.3.2 + dev: true + /type-check/0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -7899,10 +7813,6 @@ packages: hasBin: true dev: true - /v8-compile-cache-lib/3.0.1: - resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - dev: true - /v8-compile-cache/2.3.0: resolution: {integrity: sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==} dev: true @@ -8213,11 +8123,6 @@ packages: buffer-crc32: 0.2.13 dev: true - /yn/3.1.1: - resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} - engines: {node: '>=6'} - dev: true - /youch/2.2.2: resolution: {integrity: sha512-/FaCeG3GkuJwaMR34GHVg0l8jCbafZLHiFowSjqLlqhC6OMyf2tPJBu8UirF7/NI9X/R5ai4QfEKUCOxMAGxZQ==} dependencies: From 6da949a0a1b07739e1f801d237b210ccd77dbca8 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 13 May 2022 09:59:02 +0800 Subject: [PATCH 02/10] chore: update --- packages/vite/scripts/patchTypes.ts | 10 ++++++---- scripts/patchEsbuildDist.ts | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/vite/scripts/patchTypes.ts b/packages/vite/scripts/patchTypes.ts index ec5ade0224391c..e31f3a39e82325 100644 --- a/packages/vite/scripts/patchTypes.ts +++ b/packages/vite/scripts/patchTypes.ts @@ -1,13 +1,15 @@ +import { readFileSync, readdirSync, statSync, writeFileSync } from 'fs' +import { dirname, relative, resolve } from 'path' +import { fileURLToPath } from 'url' import type { ParseResult } from '@babel/parser' import { parse } from '@babel/parser' import type { File } from '@babel/types' import colors from 'picocolors' -import { readdirSync, readFileSync, statSync, writeFileSync } from 'fs' import MagicString from 'magic-string' -import { dirname, relative, resolve } from 'path' -const tempDir = resolve(__dirname, '../temp/node') -const typesDir = resolve(__dirname, '../types') +const dir = dirname(fileURLToPath(import.meta.url)) +const tempDir = resolve(dir, '../temp/node') +const typesDir = resolve(dir, '../types') // walk through the temp dts dir, find all import/export of types/* // and rewrite them into relative imports - so that api-extractor actually diff --git a/scripts/patchEsbuildDist.ts b/scripts/patchEsbuildDist.ts index 6ad2803c741346..9ddb6d31c60d6c 100644 --- a/scripts/patchEsbuildDist.ts +++ b/scripts/patchEsbuildDist.ts @@ -4,7 +4,7 @@ // continue using it. import { readFileSync, writeFileSync } from 'fs' -import { bold, red } from 'picocolors' +import colors from 'picocolors' const indexPath = process.argv[2] const varName = process.argv[3] @@ -24,8 +24,8 @@ ${varName}['default'] = ${varName};` writeFileSync(indexPath, code) console.log( - bold(`${indexPath} patched with overwrite for cjs require('...')()`) + colors.bold(`${indexPath} patched with overwrite for cjs require('...')()`) ) } else { - console.error(red(`${indexPath} post-esbuild bundling patch failed`)) + console.error(colors.red(`${indexPath} post-esbuild bundling patch failed`)) } From fb7e89c316aecd17d25912d60da8fe1cde6c2af7 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 13 May 2022 10:47:18 +0800 Subject: [PATCH 03/10] chore: update --- package.json | 1 + pnpm-lock.yaml | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/package.json b/package.json index 4439f434cfbdfa..df68b93f3e74da 100644 --- a/package.json +++ b/package.json @@ -82,6 +82,7 @@ "semver": "^7.3.7", "simple-git-hooks": "^2.7.0", "sirv": "^2.0.2", + "ts-node": "^10.7.0", "typescript": "^4.6.4", "vite": "workspace:*", "vitepress": "^0.22.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 78c53a716421ca..dfe2936e521c97 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,6 +56,7 @@ importers: semver: ^7.3.7 simple-git-hooks: ^2.7.0 sirv: ^2.0.2 + ts-node: ^10.7.0 typescript: ^4.6.4 vite: workspace:* vitepress: ^0.22.4 @@ -108,6 +109,7 @@ importers: semver: 7.3.7 simple-git-hooks: 2.7.0 sirv: 2.0.2 + ts-node: 10.7.0_sm5zkxj4s52nbddwl76qwfh6ya typescript: 4.6.4 vite: link:packages/vite vitepress: 0.22.4 @@ -1466,6 +1468,18 @@ packages: resolution: {integrity: sha512-kaMn2rueJ0PL1TYVGknTCh0X0x0d9G+FNXAFep7/4uqecEZoQb/63o6rOmMuiqI09zLuHV6xhKRXinokV/MY9A==} dev: true + /@cspotcode/source-map-consumer/0.8.0: + resolution: {integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==} + engines: {node: '>= 12'} + dev: true + + /@cspotcode/source-map-support/0.7.0: + resolution: {integrity: sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==} + engines: {node: '>=12'} + dependencies: + '@cspotcode/source-map-consumer': 0.8.0 + dev: true + /@docsearch/css/3.0.0: resolution: {integrity: sha512-1kkV7tkAsiuEd0shunYRByKJe3xQDG2q7wYg24SOw1nV9/2lwEd4WrUYRJC/ukGTl2/kHeFxsaUvtiOy0y6fFA==} dev: true @@ -1904,6 +1918,22 @@ packages: string-argv: 0.3.1 dev: true + /@tsconfig/node10/1.0.8: + resolution: {integrity: sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==} + dev: true + + /@tsconfig/node12/1.0.9: + resolution: {integrity: sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==} + dev: true + + /@tsconfig/node14/1.0.1: + resolution: {integrity: sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==} + dev: true + + /@tsconfig/node16/1.0.2: + resolution: {integrity: sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==} + dev: true + /@types/argparse/1.0.38: resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} dev: true @@ -2362,6 +2392,11 @@ packages: engines: {node: '>=0.4.0'} dev: false + /acorn-walk/8.2.0: + resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} + engines: {node: '>=0.4.0'} + dev: true + /acorn/7.4.1: resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} engines: {node: '>=0.4.0'} @@ -2473,6 +2508,10 @@ packages: readable-stream: 3.6.0 dev: false + /arg/4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + dev: true + /arg/5.0.1: resolution: {integrity: sha512-e0hDa9H2Z9AwFkk2qDlwhoMYE4eToKarchkQHovNdLTCYMHZHeRjI71crOh+dio4K6u1IcwubQqo79Ga4CyAQA==} dev: false @@ -3244,6 +3283,10 @@ packages: yaml: 1.10.2 dev: false + /create-require/1.1.1: + resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} + dev: true + /cross-env/7.0.3: resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} @@ -3495,6 +3538,11 @@ packages: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} dev: false + /diff/4.0.2: + resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} + engines: {node: '>=0.3.1'} + dev: true + /dir-glob/3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -5377,6 +5425,10 @@ packages: semver: 6.3.0 dev: false + /make-error/1.3.6: + resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} + dev: true + /map-obj/1.0.1: resolution: {integrity: sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=} engines: {node: '>=0.10.0'} @@ -7622,6 +7674,37 @@ packages: utf8-byte-length: 1.0.4 dev: true + /ts-node/10.7.0_sm5zkxj4s52nbddwl76qwfh6ya: + resolution: {integrity: sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.7.0 + '@tsconfig/node10': 1.0.8 + '@tsconfig/node12': 1.0.9 + '@tsconfig/node14': 1.0.1 + '@tsconfig/node16': 1.0.2 + '@types/node': 17.0.32 + acorn: 8.7.1 + acorn-walk: 8.2.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 4.6.4 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: true + /tsconfck/2.0.0: resolution: {integrity: sha512-GVDTXF4MdNBBxKfUfjs/wkb7LHd8Ho8WLavESCddTFQFG9AUZOZEm6kODBGmQopQ9OG+EHpkT6dBaIIGhYVt+Q==} engines: {node: ^14.13.1 || ^16 || >=18, pnpm: ^7.0.1} @@ -7813,6 +7896,10 @@ packages: hasBin: true dev: true + /v8-compile-cache-lib/3.0.1: + resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} + dev: true + /v8-compile-cache/2.3.0: resolution: {integrity: sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==} dev: true @@ -8123,6 +8210,11 @@ packages: buffer-crc32: 0.2.13 dev: true + /yn/3.1.1: + resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} + engines: {node: '>=6'} + dev: true + /youch/2.2.2: resolution: {integrity: sha512-/FaCeG3GkuJwaMR34GHVg0l8jCbafZLHiFowSjqLlqhC6OMyf2tPJBu8UirF7/NI9X/R5ai4QfEKUCOxMAGxZQ==} dependencies: From 6a624db4ff932e80423795306f9eb7e261323291 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 13 May 2022 10:47:40 +0800 Subject: [PATCH 04/10] chore: update --- packages/vite/rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/rollup.config.js b/packages/vite/rollup.config.js index 292cd5f16bc819..93f4f33bdec398 100644 --- a/packages/vite/rollup.config.js +++ b/packages/vite/rollup.config.js @@ -172,7 +172,7 @@ const createNodeConfig = (isProduction) => { pattern: /: require,/g, replacement: `: eval('require'),` }, - // postcss-load-config calls require after register esno + // postcss-load-config calls require after register ts-node 'postcss-load-config/src/index.js': { src: `require(configFile)`, replacement: `eval('require')(configFile)` From aff61cb28ce87d37fda4440687513b476a4c6602 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 13 May 2022 11:08:19 +0800 Subject: [PATCH 05/10] chore: update --- scripts/patchCJS.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/patchCJS.ts b/scripts/patchCJS.ts index 76edf3fcfa6da5..e225d9455e98dc 100644 --- a/scripts/patchCJS.ts +++ b/scripts/patchCJS.ts @@ -17,7 +17,7 @@ module.exports.parseVueRequest = parseVueRequest; */ import { readFileSync, writeFileSync } from 'fs' -import { bold, red } from 'picocolors' +import colors from 'picocolors' const indexPath = 'dist/index.cjs' let code = readFileSync(indexPath, 'utf-8') @@ -40,7 +40,7 @@ if (matchMixed) { writeFileSync(indexPath, lines.join('\n')) - console.log(bold(`${indexPath} CJS patched`)) + console.log(colors.bold(`${indexPath} CJS patched`)) process.exit() } @@ -49,9 +49,9 @@ const matchDefault = code.match(/\nmodule.exports = (\w+);/) if (matchDefault) { code += `module.exports["default"] = ${matchDefault[1]};\n` writeFileSync(indexPath, code) - console.log(bold(`${indexPath} CJS patched`)) + console.log(colors.bold(`${indexPath} CJS patched`)) process.exit() } -console.error(red(`${indexPath} CJS patch failed`)) +console.error(colors.red(`${indexPath} CJS patch failed`)) process.exit(1) From 351cf778e91dee8375869fc66d5685e465940b4d Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 13 May 2022 11:11:22 +0800 Subject: [PATCH 06/10] chore: update --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4dd47204c9e235..7f9e39e73628bd 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "semver": "^7.3.7", "simple-git-hooks": "^2.7.0", "sirv": "^2.0.2", - "esno": "^10.7.0", + "ts-node": "^10.7.0", "typescript": "^4.6.4", "unbuild": "^0.7.4", "vite": "workspace:*", From 172ff804273dd0636e0c100eedd9ab32f8b25bc1 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 13 May 2022 14:16:16 +0800 Subject: [PATCH 07/10] chore: cleanup --- .github/renovate.json5 | 1 - package.json | 1 - playground/tailwind/package.json | 3 ++- pnpm-lock.yaml | 31 +++++++++++++++++++++++-------- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 17898db2741284..05c1c02ab4cb12 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -16,7 +16,6 @@ "esbuild", "rollup", "node", - "ts-node", "typescript", // breaking changes diff --git a/package.json b/package.json index 7f9e39e73628bd..aa8ca679682beb 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,6 @@ "semver": "^7.3.7", "simple-git-hooks": "^2.7.0", "sirv": "^2.0.2", - "ts-node": "^10.7.0", "typescript": "^4.6.4", "unbuild": "^0.7.4", "vite": "workspace:*", diff --git a/playground/tailwind/package.json b/playground/tailwind/package.json index bde1d50d873ac8..9bf1b1fbe5fff2 100644 --- a/playground/tailwind/package.json +++ b/playground/tailwind/package.json @@ -15,6 +15,7 @@ "vue-router": "^4.0.15" }, "devDependencies": { - "@vitejs/plugin-vue": "workspace:*" + "@vitejs/plugin-vue": "workspace:*", + "ts-node": "^10.7.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fa117af08312ca..358d7df259b4af 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -57,7 +57,6 @@ importers: semver: ^7.3.7 simple-git-hooks: ^2.7.0 sirv: ^2.0.2 - ts-node: ^10.7.0 typescript: ^4.6.4 unbuild: ^0.7.4 vite: workspace:* @@ -112,7 +111,6 @@ importers: semver: 7.3.7 simple-git-hooks: 2.7.0 sirv: 2.0.2 - ts-node: 10.7.0_sm5zkxj4s52nbddwl76qwfh6ya typescript: 4.6.4 unbuild: 0.7.4 vite: link:packages/vite @@ -911,15 +909,17 @@ importers: '@vitejs/plugin-vue': workspace:* autoprefixer: ^10.4.7 tailwindcss: ^2.2.19 + ts-node: ^10.7.0 vue: ^3.2.33 vue-router: ^4.0.15 dependencies: autoprefixer: 10.4.7 - tailwindcss: 2.2.19_autoprefixer@10.4.7 + tailwindcss: 2.2.19_eq6rdkkr572vfnsce6ssjbbos4 vue: 3.2.33 vue-router: 4.0.15_vue@3.2.33 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue + ts-node: 10.7.0 playground/tailwind-sourcemap: specifiers: @@ -6488,6 +6488,23 @@ packages: postcss: 8.4.13 yaml: 1.10.2 + /postcss-load-config/3.1.4_ts-node@10.7.0: + resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} + engines: {node: '>= 10'} + peerDependencies: + postcss: '>=8.0.9' + ts-node: '>=9.0.0' + peerDependenciesMeta: + postcss: + optional: true + ts-node: + optional: true + dependencies: + lilconfig: 2.0.5 + ts-node: 10.7.0 + yaml: 1.10.2 + dev: false + /postcss-modules-extract-imports/3.0.0_postcss@8.4.13: resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==} engines: {node: ^10 || ^12 || >= 14} @@ -7753,7 +7770,7 @@ packages: - ts-node dev: false - /tailwindcss/2.2.19_autoprefixer@10.4.7: + /tailwindcss/2.2.19_eq6rdkkr572vfnsce6ssjbbos4: resolution: {integrity: sha512-6Ui7JSVtXadtTUo2NtkBBacobzWiQYVjYW0ZnKaP9S1ZCKQ0w7KVNz+YSDI/j7O7KCMHbOkz94ZMQhbT9pOqjw==} engines: {node: '>=12.13.0'} hasBin: true @@ -7784,7 +7801,7 @@ packages: normalize-path: 3.0.0 object-hash: 2.2.0 postcss-js: 3.0.3 - postcss-load-config: 3.1.4 + postcss-load-config: 3.1.4_ts-node@10.7.0 postcss-nested: 5.0.6 postcss-selector-parser: 6.0.10 postcss-value-parser: 4.2.0 @@ -7974,7 +7991,7 @@ packages: utf8-byte-length: 1.0.4 dev: true - /ts-node/10.7.0_sm5zkxj4s52nbddwl76qwfh6ya: + /ts-node/10.7.0: resolution: {integrity: sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==} hasBin: true peerDependencies: @@ -7993,14 +8010,12 @@ packages: '@tsconfig/node12': 1.0.9 '@tsconfig/node14': 1.0.1 '@tsconfig/node16': 1.0.2 - '@types/node': 17.0.32 acorn: 8.7.1 acorn-walk: 8.2.0 arg: 4.1.3 create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 4.6.4 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 dev: true From 707de0d29e671bc16d81efdea777d3805e60899d Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 13 May 2022 14:24:23 +0800 Subject: [PATCH 08/10] chore: update --- playground/tailwind/package.json | 3 +- .../{postcss.config.ts => postcss.config.js} | 0 pnpm-lock.yaml | 113 +----------------- 3 files changed, 4 insertions(+), 112 deletions(-) rename playground/tailwind/{postcss.config.ts => postcss.config.js} (100%) diff --git a/playground/tailwind/package.json b/playground/tailwind/package.json index 9bf1b1fbe5fff2..bde1d50d873ac8 100644 --- a/playground/tailwind/package.json +++ b/playground/tailwind/package.json @@ -15,7 +15,6 @@ "vue-router": "^4.0.15" }, "devDependencies": { - "@vitejs/plugin-vue": "workspace:*", - "ts-node": "^10.7.0" + "@vitejs/plugin-vue": "workspace:*" } } diff --git a/playground/tailwind/postcss.config.ts b/playground/tailwind/postcss.config.js similarity index 100% rename from playground/tailwind/postcss.config.ts rename to playground/tailwind/postcss.config.js diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 358d7df259b4af..532b9f351aea81 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -909,17 +909,15 @@ importers: '@vitejs/plugin-vue': workspace:* autoprefixer: ^10.4.7 tailwindcss: ^2.2.19 - ts-node: ^10.7.0 vue: ^3.2.33 vue-router: ^4.0.15 dependencies: autoprefixer: 10.4.7 - tailwindcss: 2.2.19_eq6rdkkr572vfnsce6ssjbbos4 + tailwindcss: 2.2.19_autoprefixer@10.4.7 vue: 3.2.33 vue-router: 4.0.15_vue@3.2.33 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue - ts-node: 10.7.0 playground/tailwind-sourcemap: specifiers: @@ -1470,18 +1468,6 @@ packages: resolution: {integrity: sha512-kaMn2rueJ0PL1TYVGknTCh0X0x0d9G+FNXAFep7/4uqecEZoQb/63o6rOmMuiqI09zLuHV6xhKRXinokV/MY9A==} dev: true - /@cspotcode/source-map-consumer/0.8.0: - resolution: {integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==} - engines: {node: '>= 12'} - dev: true - - /@cspotcode/source-map-support/0.7.0: - resolution: {integrity: sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==} - engines: {node: '>=12'} - dependencies: - '@cspotcode/source-map-consumer': 0.8.0 - dev: true - /@docsearch/css/3.0.0: resolution: {integrity: sha512-1kkV7tkAsiuEd0shunYRByKJe3xQDG2q7wYg24SOw1nV9/2lwEd4WrUYRJC/ukGTl2/kHeFxsaUvtiOy0y6fFA==} dev: true @@ -1930,22 +1916,6 @@ packages: string-argv: 0.3.1 dev: true - /@tsconfig/node10/1.0.8: - resolution: {integrity: sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==} - dev: true - - /@tsconfig/node12/1.0.9: - resolution: {integrity: sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==} - dev: true - - /@tsconfig/node14/1.0.1: - resolution: {integrity: sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==} - dev: true - - /@tsconfig/node16/1.0.2: - resolution: {integrity: sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==} - dev: true - /@types/argparse/1.0.38: resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} dev: true @@ -2412,11 +2382,6 @@ packages: engines: {node: '>=0.4.0'} dev: false - /acorn-walk/8.2.0: - resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} - engines: {node: '>=0.4.0'} - dev: true - /acorn/7.4.1: resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} engines: {node: '>=0.4.0'} @@ -2528,10 +2493,6 @@ packages: readable-stream: 3.6.0 dev: false - /arg/4.1.3: - resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - dev: true - /arg/5.0.1: resolution: {integrity: sha512-e0hDa9H2Z9AwFkk2qDlwhoMYE4eToKarchkQHovNdLTCYMHZHeRjI71crOh+dio4K6u1IcwubQqo79Ga4CyAQA==} dev: false @@ -3310,10 +3271,6 @@ packages: yaml: 1.10.2 dev: false - /create-require/1.1.1: - resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - dev: true - /cross-env/7.0.3: resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} @@ -3573,11 +3530,6 @@ packages: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} dev: false - /diff/4.0.2: - resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} - engines: {node: '>=0.3.1'} - dev: true - /dir-glob/3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -5638,10 +5590,6 @@ packages: semver: 6.3.0 dev: false - /make-error/1.3.6: - resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - dev: true - /map-obj/1.0.1: resolution: {integrity: sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=} engines: {node: '>=0.10.0'} @@ -6488,23 +6436,6 @@ packages: postcss: 8.4.13 yaml: 1.10.2 - /postcss-load-config/3.1.4_ts-node@10.7.0: - resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} - engines: {node: '>= 10'} - peerDependencies: - postcss: '>=8.0.9' - ts-node: '>=9.0.0' - peerDependenciesMeta: - postcss: - optional: true - ts-node: - optional: true - dependencies: - lilconfig: 2.0.5 - ts-node: 10.7.0 - yaml: 1.10.2 - dev: false - /postcss-modules-extract-imports/3.0.0_postcss@8.4.13: resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==} engines: {node: ^10 || ^12 || >= 14} @@ -7770,7 +7701,7 @@ packages: - ts-node dev: false - /tailwindcss/2.2.19_eq6rdkkr572vfnsce6ssjbbos4: + /tailwindcss/2.2.19_autoprefixer@10.4.7: resolution: {integrity: sha512-6Ui7JSVtXadtTUo2NtkBBacobzWiQYVjYW0ZnKaP9S1ZCKQ0w7KVNz+YSDI/j7O7KCMHbOkz94ZMQhbT9pOqjw==} engines: {node: '>=12.13.0'} hasBin: true @@ -7801,7 +7732,7 @@ packages: normalize-path: 3.0.0 object-hash: 2.2.0 postcss-js: 3.0.3 - postcss-load-config: 3.1.4_ts-node@10.7.0 + postcss-load-config: 3.1.4 postcss-nested: 5.0.6 postcss-selector-parser: 6.0.10 postcss-value-parser: 4.2.0 @@ -7991,35 +7922,6 @@ packages: utf8-byte-length: 1.0.4 dev: true - /ts-node/10.7.0: - resolution: {integrity: sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - dependencies: - '@cspotcode/source-map-support': 0.7.0 - '@tsconfig/node10': 1.0.8 - '@tsconfig/node12': 1.0.9 - '@tsconfig/node14': 1.0.1 - '@tsconfig/node16': 1.0.2 - acorn: 8.7.1 - acorn-walk: 8.2.0 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - dev: true - /tsconfck/2.0.0: resolution: {integrity: sha512-GVDTXF4MdNBBxKfUfjs/wkb7LHd8Ho8WLavESCddTFQFG9AUZOZEm6kODBGmQopQ9OG+EHpkT6dBaIIGhYVt+Q==} engines: {node: ^14.13.1 || ^16 || >=18, pnpm: ^7.0.1} @@ -8257,10 +8159,6 @@ packages: hasBin: true dev: true - /v8-compile-cache-lib/3.0.1: - resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - dev: true - /v8-compile-cache/2.3.0: resolution: {integrity: sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==} dev: true @@ -8571,11 +8469,6 @@ packages: buffer-crc32: 0.2.13 dev: true - /yn/3.1.1: - resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} - engines: {node: '>=6'} - dev: true - /youch/2.2.2: resolution: {integrity: sha512-/FaCeG3GkuJwaMR34GHVg0l8jCbafZLHiFowSjqLlqhC6OMyf2tPJBu8UirF7/NI9X/R5ai4QfEKUCOxMAGxZQ==} dependencies: From 31683d7760c6be240bd4031005e363c2d0f5cce3 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 13 May 2022 14:36:33 +0800 Subject: [PATCH 09/10] chore: hoist ts-node --- .npmrc | 1 + playground/tailwind/package.json | 3 +- .../{postcss.config.js => postcss.config.ts} | 0 pnpm-lock.yaml | 113 +++++++++++++++++- 4 files changed, 113 insertions(+), 4 deletions(-) rename playground/tailwind/{postcss.config.js => postcss.config.ts} (100%) diff --git a/.npmrc b/.npmrc index 0a8182ea5f2c53..10aa0abfa4707b 100644 --- a/.npmrc +++ b/.npmrc @@ -4,3 +4,4 @@ hoist-pattern[]=@emotion/* hoist-pattern[]=postcss hoist-pattern[]=pug hoist-pattern[]=source-map-support +hoist-pattern[]=ts-node diff --git a/playground/tailwind/package.json b/playground/tailwind/package.json index bde1d50d873ac8..9bf1b1fbe5fff2 100644 --- a/playground/tailwind/package.json +++ b/playground/tailwind/package.json @@ -15,6 +15,7 @@ "vue-router": "^4.0.15" }, "devDependencies": { - "@vitejs/plugin-vue": "workspace:*" + "@vitejs/plugin-vue": "workspace:*", + "ts-node": "^10.7.0" } } diff --git a/playground/tailwind/postcss.config.js b/playground/tailwind/postcss.config.ts similarity index 100% rename from playground/tailwind/postcss.config.js rename to playground/tailwind/postcss.config.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 532b9f351aea81..358d7df259b4af 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -909,15 +909,17 @@ importers: '@vitejs/plugin-vue': workspace:* autoprefixer: ^10.4.7 tailwindcss: ^2.2.19 + ts-node: ^10.7.0 vue: ^3.2.33 vue-router: ^4.0.15 dependencies: autoprefixer: 10.4.7 - tailwindcss: 2.2.19_autoprefixer@10.4.7 + tailwindcss: 2.2.19_eq6rdkkr572vfnsce6ssjbbos4 vue: 3.2.33 vue-router: 4.0.15_vue@3.2.33 devDependencies: '@vitejs/plugin-vue': link:../../packages/plugin-vue + ts-node: 10.7.0 playground/tailwind-sourcemap: specifiers: @@ -1468,6 +1470,18 @@ packages: resolution: {integrity: sha512-kaMn2rueJ0PL1TYVGknTCh0X0x0d9G+FNXAFep7/4uqecEZoQb/63o6rOmMuiqI09zLuHV6xhKRXinokV/MY9A==} dev: true + /@cspotcode/source-map-consumer/0.8.0: + resolution: {integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==} + engines: {node: '>= 12'} + dev: true + + /@cspotcode/source-map-support/0.7.0: + resolution: {integrity: sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==} + engines: {node: '>=12'} + dependencies: + '@cspotcode/source-map-consumer': 0.8.0 + dev: true + /@docsearch/css/3.0.0: resolution: {integrity: sha512-1kkV7tkAsiuEd0shunYRByKJe3xQDG2q7wYg24SOw1nV9/2lwEd4WrUYRJC/ukGTl2/kHeFxsaUvtiOy0y6fFA==} dev: true @@ -1916,6 +1930,22 @@ packages: string-argv: 0.3.1 dev: true + /@tsconfig/node10/1.0.8: + resolution: {integrity: sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==} + dev: true + + /@tsconfig/node12/1.0.9: + resolution: {integrity: sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==} + dev: true + + /@tsconfig/node14/1.0.1: + resolution: {integrity: sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==} + dev: true + + /@tsconfig/node16/1.0.2: + resolution: {integrity: sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==} + dev: true + /@types/argparse/1.0.38: resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} dev: true @@ -2382,6 +2412,11 @@ packages: engines: {node: '>=0.4.0'} dev: false + /acorn-walk/8.2.0: + resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} + engines: {node: '>=0.4.0'} + dev: true + /acorn/7.4.1: resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} engines: {node: '>=0.4.0'} @@ -2493,6 +2528,10 @@ packages: readable-stream: 3.6.0 dev: false + /arg/4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + dev: true + /arg/5.0.1: resolution: {integrity: sha512-e0hDa9H2Z9AwFkk2qDlwhoMYE4eToKarchkQHovNdLTCYMHZHeRjI71crOh+dio4K6u1IcwubQqo79Ga4CyAQA==} dev: false @@ -3271,6 +3310,10 @@ packages: yaml: 1.10.2 dev: false + /create-require/1.1.1: + resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} + dev: true + /cross-env/7.0.3: resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==} engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'} @@ -3530,6 +3573,11 @@ packages: resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==} dev: false + /diff/4.0.2: + resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} + engines: {node: '>=0.3.1'} + dev: true + /dir-glob/3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -5590,6 +5638,10 @@ packages: semver: 6.3.0 dev: false + /make-error/1.3.6: + resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} + dev: true + /map-obj/1.0.1: resolution: {integrity: sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=} engines: {node: '>=0.10.0'} @@ -6436,6 +6488,23 @@ packages: postcss: 8.4.13 yaml: 1.10.2 + /postcss-load-config/3.1.4_ts-node@10.7.0: + resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==} + engines: {node: '>= 10'} + peerDependencies: + postcss: '>=8.0.9' + ts-node: '>=9.0.0' + peerDependenciesMeta: + postcss: + optional: true + ts-node: + optional: true + dependencies: + lilconfig: 2.0.5 + ts-node: 10.7.0 + yaml: 1.10.2 + dev: false + /postcss-modules-extract-imports/3.0.0_postcss@8.4.13: resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==} engines: {node: ^10 || ^12 || >= 14} @@ -7701,7 +7770,7 @@ packages: - ts-node dev: false - /tailwindcss/2.2.19_autoprefixer@10.4.7: + /tailwindcss/2.2.19_eq6rdkkr572vfnsce6ssjbbos4: resolution: {integrity: sha512-6Ui7JSVtXadtTUo2NtkBBacobzWiQYVjYW0ZnKaP9S1ZCKQ0w7KVNz+YSDI/j7O7KCMHbOkz94ZMQhbT9pOqjw==} engines: {node: '>=12.13.0'} hasBin: true @@ -7732,7 +7801,7 @@ packages: normalize-path: 3.0.0 object-hash: 2.2.0 postcss-js: 3.0.3 - postcss-load-config: 3.1.4 + postcss-load-config: 3.1.4_ts-node@10.7.0 postcss-nested: 5.0.6 postcss-selector-parser: 6.0.10 postcss-value-parser: 4.2.0 @@ -7922,6 +7991,35 @@ packages: utf8-byte-length: 1.0.4 dev: true + /ts-node/10.7.0: + resolution: {integrity: sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.7.0 + '@tsconfig/node10': 1.0.8 + '@tsconfig/node12': 1.0.9 + '@tsconfig/node14': 1.0.1 + '@tsconfig/node16': 1.0.2 + acorn: 8.7.1 + acorn-walk: 8.2.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: true + /tsconfck/2.0.0: resolution: {integrity: sha512-GVDTXF4MdNBBxKfUfjs/wkb7LHd8Ho8WLavESCddTFQFG9AUZOZEm6kODBGmQopQ9OG+EHpkT6dBaIIGhYVt+Q==} engines: {node: ^14.13.1 || ^16 || >=18, pnpm: ^7.0.1} @@ -8159,6 +8257,10 @@ packages: hasBin: true dev: true + /v8-compile-cache-lib/3.0.1: + resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} + dev: true + /v8-compile-cache/2.3.0: resolution: {integrity: sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==} dev: true @@ -8469,6 +8571,11 @@ packages: buffer-crc32: 0.2.13 dev: true + /yn/3.1.1: + resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} + engines: {node: '>=6'} + dev: true + /youch/2.2.2: resolution: {integrity: sha512-/FaCeG3GkuJwaMR34GHVg0l8jCbafZLHiFowSjqLlqhC6OMyf2tPJBu8UirF7/NI9X/R5ai4QfEKUCOxMAGxZQ==} dependencies: From c2ffdf04255b7aca91b9a3798939df56d50612f2 Mon Sep 17 00:00:00 2001 From: patak-dev Date: Mon, 23 May 2022 19:40:12 +0200 Subject: [PATCH 10/10] chore: esno 16.3 --- package.json | 2 +- pnpm-lock.yaml | 36 ++---------------------------------- 2 files changed, 3 insertions(+), 35 deletions(-) diff --git a/package.json b/package.json index a7922cf67e2182..3b3d78e4675cc1 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "eslint-define-config": "^1.4.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-node": "^11.1.0", - "esno": "^0.15.0", + "esno": "^0.16.3", "execa": "^5.1.1", "fs-extra": "^10.1.0", "kill-port": "^1.6.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b6636930f9e311..0d78f4b2d1a64c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,7 +41,7 @@ importers: eslint-define-config: ^1.4.0 eslint-plugin-import: ^2.26.0 eslint-plugin-node: ^11.1.0 - esno: ^0.15.0 + esno: ^0.16.3 execa: ^5.1.1 fs-extra: ^10.1.0 kill-port: ^1.6.1 @@ -98,7 +98,7 @@ importers: eslint-define-config: 1.4.0 eslint-plugin-import: 2.26.0_doddzorl55y6dbr5ij3nshfl64 eslint-plugin-node: 11.1.0_eslint@8.15.0 - esno: 0.15.0 + esno: 0.16.3 execa: 5.1.1 fs-extra: 10.1.0 kill-port: 1.6.1 @@ -1614,13 +1614,6 @@ packages: resolution: {integrity: sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==} dev: false - /@esbuild-kit/cjs-loader/1.0.2: - resolution: {integrity: sha512-f6ZIRsc7BmeJ3Jd6g4MQ0e44ATlZsT7y1L5Py522b9HByc0ISIYD/KV9sZ0vJI8+pvXxLm/ve2gIff6FkUfzPQ==} - dependencies: - '@esbuild-kit/core-utils': 1.1.1 - get-tsconfig: 3.0.1 - dev: true - /@esbuild-kit/cjs-loader/2.0.0: resolution: {integrity: sha512-1ijCpmiCQcOcr0dmwwwCpzv0inWpNtEgiXDWc74AL52AhvY108M26suhWe9PMDcF1esnPJf0YSeVBLLZS6SQvg==} dependencies: @@ -1634,14 +1627,6 @@ packages: esbuild: 0.14.38 dev: true - /@esbuild-kit/esm-loader/1.1.2: - resolution: {integrity: sha512-ZxkU2ICaAKt9eZTdXNBOMZjq/QNd9m4y9XlYapua/wakTjlX+kt3IVBRXj/hubuZUPYsnb+hHkHMetyxXlHajg==} - dependencies: - '@esbuild-kit/core-utils': 1.1.1 - es-module-lexer: 0.10.5 - get-tsconfig: 3.0.1 - dev: true - /@esbuild-kit/esm-loader/2.1.0: resolution: {integrity: sha512-zE7BepoWvVhyoHDEnc2whD9x27UzdRIcUguOD6mUx8PzYjEw2pdNsY+2sP9PeGxW6YJvtLOqcDj3tqhxj61IPw==} dependencies: @@ -4409,13 +4394,6 @@ packages: - supports-color dev: true - /esno/0.15.0: - resolution: {integrity: sha512-Wws1YgB/PBUtc/Pq755Crv2r5XIcSZyqC/9qyiczzQoDNNIUdxQ75uSd6gaMJFJ+pieljcH3f9JawmrHk0vLXw==} - hasBin: true - dependencies: - tsx: 2.0.1 - dev: true - /esno/0.16.3: resolution: {integrity: sha512-6slSBEV1lMKcX13DBifvnDFpNno5WXhw4j/ff7RI0y51BZiDqEe5dNhhjhIQ3iCOQuzsm2MbVzmwqbN78BBhPg==} hasBin: true @@ -8172,16 +8150,6 @@ packages: typescript: 4.6.4 dev: true - /tsx/2.0.1: - resolution: {integrity: sha512-qOzBwD5DkUodG7PjIUTPmRdAknYHC4jh7cOchnUScJCyayI8Cy8WqoD1rc7+zhM6x5a4YDoE5CJ+t3a92K4j2w==} - hasBin: true - dependencies: - '@esbuild-kit/cjs-loader': 1.0.2 - '@esbuild-kit/esm-loader': 1.1.2 - optionalDependencies: - fsevents: 2.3.2 - dev: true - /tsx/3.4.0: resolution: {integrity: sha512-WWakMoC5OqUXvOVZuyAySyETjAZ9rJxZXRbbOhYXDCeHF95hQUBa07UwUFu1yprlnrJ/W7XWfA99YTNKO//KxQ==} hasBin: true