Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
merge vite and vitest config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Nov 10, 2023
1 parent d2279d1 commit d38568d
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 26 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"watch": "tsc --build tsconfig.build.json --watch --verbose",
"lint": "eslint {**/src/**/*.ts,**/src/**/*.tsx,**/test/**/*.ts,**/test/**/*.tsx}",
"build": "npm run build --workspaces",
"test": "vitest -c vitest.config.ts",
"test": "node --experimental-import-meta-resolve ./node_modules/vitest/vitest.mjs -c vite.config.ts",
"release:prepare": "npm run reset:repo && npm ci && npm run lint && npm run build",
"reset:repo": "git clean -f -X -d",
"start:example:server:json": "npm run start:server:json --workspace packages/examples",
Expand Down
6 changes: 3 additions & 3 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "monaco-editor-wrapper-examples",
"private": true,
"version": "3.4.0-next.4",
"version": "3.4.0-next.5",
"type": "module",
"dependencies": {
"@codingame/monaco-vscode-configuration-service-override": "~1.83.5",
"@codingame/monaco-vscode-editor-service-override": "~1.83.5",
"@codingame/monaco-vscode-json-default-extension": "~1.83.5",
"@codingame/monaco-vscode-keybindings-service-override": "~1.83.5",
"@codingame/monaco-vscode-python-default-extension": "~1.83.5",
"@typefox/monaco-editor-react": "~2.4.0-next.4",
"@typefox/monaco-editor-react": "~2.4.0-next.5",
"http-server": "~14.1.1",
"langium": "~2.1.1",
"langium-statemachine-dsl": "~2.1.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.5 <1.84.0",
"monaco-editor-workers": "~0.44.0",
"monaco-editor-wrapper": "~3.4.0-next.4",
"monaco-editor-wrapper": "~3.4.0-next.5",
"monaco-languageclient": "~7.0.1",
"monaco-languageclient-examples": "~7.0.1",
"react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/monaco-editor-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typefox/monaco-editor-react",
"version": "2.4.0-next.4",
"version": "2.4.0-next.5",
"license": "MIT",
"description": "React component for Monaco-Editor and Monaco Languageclient",
"keywords": [
Expand Down Expand Up @@ -51,12 +51,12 @@
},
"dependencies": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.5 <1.84.0",
"monaco-editor-wrapper": "~3.4.0-next.4",
"monaco-editor-wrapper": "~3.4.0-next.5",
"react": "~18.2.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.5 <1.84.0"
},
"peerDependencies": {
"monaco-editor-wrapper": "~3.4.0-next.4"
"monaco-editor-wrapper": "~3.4.0-next.5"
},
"devDependencies": {
"@types/react": "~18.2.37"
Expand Down
2 changes: 1 addition & 1 deletion packages/monaco-editor-wrapper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monaco-editor-wrapper",
"version": "3.4.0-next.4",
"version": "3.4.0-next.5",
"license": "MIT",
"description": "Monaco-Editor and Monaco Languageclient Wrapper",
"keywords": [
Expand Down
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ export default defineConfig(() => {
},
define: {
rootDirectory: JSON.stringify(__dirname)
},
test: {
browser: {
enabled: true,
headless: true,
name: 'chrome'
}
}
};
return config;
Expand Down
11 changes: 0 additions & 11 deletions vitest.config.ts

This file was deleted.

0 comments on commit d38568d

Please sign in to comment.