chore: use vite in prod mode during tests

This commit is contained in:
Nick the Sick 2024-07-03 18:28:14 +02:00
parent 826ffbcd8e
commit 14a00f48d7
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC
5 changed files with 24 additions and 14 deletions

View File

@ -0,0 +1,5 @@
---
"@tiptap/core": patch
---
Made some minor changes to how packages are built

View File

@ -105,7 +105,7 @@ jobs:
uses: cypress-io/github-action@v6.6.0
with:
cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
start: npm run start
start: npm run serve
wait-on: 'http://localhost:3000'
spec: ${{ matrix.test-spec.spec }}
project: ./tests

View File

@ -50,6 +50,9 @@ export default defineConfig({
server: {
port: 3000,
},
preview: {
port: 3000,
},
optimizeDeps: {
include: includeDependencies,
},

10
package-lock.json generated
View File

@ -15,7 +15,7 @@
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@changesets/cli": "^2.27.6",
"@changesets/cli": "^2.27.7",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@cypress/webpack-preprocessor": "^5.17.1",
@ -27,7 +27,7 @@
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"babel-loader": "^9.1.3",
"cypress": "^10.8.0",
"cypress": "^10.11.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
@ -35,7 +35,7 @@
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-vue": "^9.26.0",
"eslint-plugin-vue": "^9.27.0",
"husky": "^8.0.3",
"lint-staged": "^13.3.0",
"minimist": "^1.2.8",
@ -46,8 +46,8 @@
"ts-loader": "9.3.1",
"tsup": "^8.1.0",
"turbo": "2.0.6",
"typescript": "^5.4.5",
"webpack": "^5.91.0"
"typescript": "^5.5.3",
"webpack": "^5.92.1"
}
},
"demos": {

View File

@ -1,6 +1,6 @@
{
"private": true,
"packageManager": "npm@10.5.0",
"packageManager": "npm@10.8.1",
"workspaces": [
"demos",
"packages/*"
@ -22,6 +22,7 @@
"build": "turbo run build",
"build:pm": "turbo run build --filter=@tiptap/pm",
"build:demos": "npm run build:demos --workspace demos",
"serve": "npm run build:demos && npm --prefix ./demos run preview",
"build:ci": "turbo run build",
"publish": "turbo run build && npm publish --workspace packages --provenance --tag latest --access public",
"publish:pre": "turbo run build && npm publish --workspace packages --provenance --tag next --access public",
@ -29,7 +30,8 @@
"clean:packs": "rm -rf ./packages/*/*.tgz",
"reset": "npm run clean:packages && npm run clean:packs && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./package-lock.json && npm install",
"prepare": "husky install",
"turbo": "turbo"
"turbo": "turbo",
"changeset": "changeset"
},
"devDependencies": {
"@babel/core": "^7.24.7",
@ -37,7 +39,7 @@
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@changesets/cli": "^2.27.6",
"@changesets/cli": "^2.27.7",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@cypress/webpack-preprocessor": "^5.17.1",
@ -49,7 +51,7 @@
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"babel-loader": "^9.1.3",
"cypress": "^10.8.0",
"cypress": "^10.11.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
@ -57,7 +59,7 @@
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-vue": "^9.26.0",
"eslint-plugin-vue": "^9.27.0",
"husky": "^8.0.3",
"lint-staged": "^13.3.0",
"minimist": "^1.2.8",
@ -68,11 +70,11 @@
"ts-loader": "9.3.1",
"tsup": "^8.1.0",
"turbo": "2.0.6",
"typescript": "^5.4.5",
"webpack": "^5.91.0"
"typescript": "^5.5.3",
"webpack": "^5.92.1"
},
"overrides": {
"@rollup/pluginutils": "^5.0.2"
"@rollup/pluginutils": "^5.1.0"
},
"name": "tiptap"
}