mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
This commit is contained in:
parent
c56b95448b
commit
ac0733fefa
@ -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"
|
||||
|
@ -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()
|
||||
|
@ -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}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@vitejs/test-pkg-exports",
|
||||
"name": "@vitejs/test-resolve-pkg-exports",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"exports": {
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user