mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	chore(monorepo/server): remove server: prefix from scripts
This commit is contained in:
		@@ -1,12 +1,16 @@
 | 
				
			|||||||
import { defineConfig } from "vitest/config";
 | 
					import { defineConfig } from "vitest/config";
 | 
				
			||||||
 | 
					import { configDefaults } from "vitest/config";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default defineConfig({
 | 
					export default defineConfig({
 | 
				
			||||||
    test: {
 | 
					    test: {
 | 
				
			||||||
 | 
					        exclude: [
 | 
				
			||||||
 | 
					            ...configDefaults.exclude,
 | 
				
			||||||
 | 
					            "build/**",
 | 
				
			||||||
 | 
					        ],
 | 
				
			||||||
        setupFiles: ["./test/setup.ts"],
 | 
					        setupFiles: ["./test/setup.ts"],
 | 
				
			||||||
        environment: "happy-dom",
 | 
					        environment: "happy-dom",
 | 
				
			||||||
        coverage: {
 | 
					        coverage: {
 | 
				
			||||||
            reporter: [ "text", "html" ],
 | 
					            reporter: [ "text", "html" ],
 | 
				
			||||||
            provider: "v8"
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
@@ -20,9 +20,9 @@
 | 
				
			|||||||
  "main": "index.js",
 | 
					  "main": "index.js",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "build:ts": "tsc",
 | 
					    "build:ts": "tsc",
 | 
				
			||||||
    "server:start": "cross-env TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev nodemon src/main.ts",
 | 
					    "start": "cross-env TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev nodemon src/main.ts",
 | 
				
			||||||
    "server:test": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./spec/data TRILIUM_INTEGRATION_TEST=memory vitest",
 | 
					    "test": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./spec/data TRILIUM_INTEGRATION_TEST=memory vitest",
 | 
				
			||||||
    "server:coverage": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./spec/data TRILIUM_INTEGRATION_TEST=memory vitest --coverage"
 | 
					    "coverage": "cross-env TRILIUM_ENV=dev TRILIUM_DATA_DIR=./spec/data TRILIUM_INTEGRATION_TEST=memory vitest --coverage"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "express": "4.21.2",
 | 
					    "express": "4.21.2",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,7 +14,9 @@
 | 
				
			|||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts",
 | 
					        "chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts",
 | 
				
			||||||
        "chore:update-build-info": "tsx ./scripts/update-build-info.ts"
 | 
					        "chore:update-build-info": "tsx ./scripts/update-build-info.ts",
 | 
				
			||||||
 | 
					        "server:test": "npm --workspace=apps/server test",
 | 
				
			||||||
 | 
					        "server:coverage": "npm --workspace=apps/server coverage"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "devDependencies": {
 | 
					    "devDependencies": {
 | 
				
			||||||
        "tsx": "^4.19.3"
 | 
					        "tsx": "^4.19.3"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user