chore: revert "chore(docs): workaround netlify pnpm build issue (#11477)" (#11759)

This commit is contained in:
翠 / green 2023-01-20 16:57:12 +09:00 committed by GitHub
parent c56b95448b
commit ac0733fefa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 10 deletions

View File

@ -1,7 +1,8 @@
[build.environment]
NODE_VERSION = "16"
NPM_FLAGS = "--version" # prevent Netlify npm install
# don't need playwright for docs build
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = "1"
[build]
publish = "docs/.vitepress/dist"
command = "npx pnpm i --store=node_modules/.pnpm-store --frozen-lockfile && npm run ci-docs"
command = "pnpm ci-docs"
ignore = "./scripts/docs-check.sh"

View File

@ -12,7 +12,7 @@ test.runIf(isBuild)('correctly resolve entrypoints', async () => {
new RegExp(`from ${_}@vitejs/test-entries/file.js${_}`),
)
expect(contents).toMatch(
new RegExp(`from ${_}@vitejs/test-pkg-exports/entry${_}`),
new RegExp(`from ${_}@vitejs/test-resolve-pkg-exports/entry${_}`),
)
await expect(import(`${testDir}/dist/main.mjs`)).resolves.toBeTruthy()

View File

@ -3,7 +3,7 @@ import dirEntry from '@vitejs/test-entries/dir'
// no `exports` key, should resolve to entries/file.js
import fileEntry from '@vitejs/test-entries/file'
// has `exports` key, should resolve to pkg-exports/entry
import pkgExportsEntry from '@vitejs/test-pkg-exports/entry'
import pkgExportsEntry from '@vitejs/test-resolve-pkg-exports/entry'
export default `
entries/dir: ${dirEntry}

View File

@ -8,6 +8,6 @@
},
"dependencies": {
"@vitejs/test-entries": "file:./entries",
"@vitejs/test-pkg-exports": "file:./pkg-exports"
"@vitejs/test-resolve-pkg-exports": "file:./pkg-exports"
}
}

View File

@ -1,5 +1,5 @@
{
"name": "@vitejs/test-pkg-exports",
"name": "@vitejs/test-resolve-pkg-exports",
"private": true,
"version": "0.0.0",
"exports": {

View File

@ -1051,10 +1051,10 @@ importers:
playground/ssr-resolve:
specifiers:
'@vitejs/test-entries': file:./entries
'@vitejs/test-pkg-exports': file:./pkg-exports
'@vitejs/test-resolve-pkg-exports': file:./pkg-exports
dependencies:
'@vitejs/test-entries': file:playground/ssr-resolve/entries
'@vitejs/test-pkg-exports': file:playground/ssr-resolve/pkg-exports
'@vitejs/test-resolve-pkg-exports': file:playground/ssr-resolve/pkg-exports
playground/ssr-resolve/entries:
specifiers: {}
@ -7239,7 +7239,7 @@ packages:
dev: true
/require-directory/2.1.1:
resolution: {integrity: sha1-jGStX9MNqxyXbiNE/+f3kqam30I=}
resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
engines: {node: '>=0.10.0'}
dev: true
@ -9070,7 +9070,7 @@ packages:
file:playground/ssr-resolve/pkg-exports:
resolution: {directory: playground/ssr-resolve/pkg-exports, type: directory}
name: '@vitejs/test-pkg-exports'
name: '@vitejs/test-resolve-pkg-exports'
version: 0.0.0
dev: false