chore: replace cross-env with shell-emulator & misc (#1464)

This commit is contained in:
hehe
2023-03-10 09:16:25 +08:00
committed by GitHub
parent d0c1b4508e
commit 047adde310
13 changed files with 24 additions and 99 deletions
+1 -3
View File
@@ -6,7 +6,7 @@
"license": "MPL-2.0",
"module": "true",
"scripts": {
"dev:app": "cross-env NODE_ENV=development tauri dev",
"dev:app": "NODE_ENV=development tauri dev",
"dev:web": "pnpm --filter @affine/app dev",
"build:rs-types": "zx scripts/generateTsTypingsFromJsonSchema.mjs",
"build:affine": "zx scripts/buildAffine.mjs",
@@ -34,8 +34,6 @@
"@types/node": "^18.14.4",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"concurrently": "^7.6.0",
"cross-env": "^7.0.3",
"esbuild": "^0.17.8",
"lit": "^2.6.1",
"prettier": "2.8.4",
@@ -93,8 +93,8 @@ pub async fn create_workspace<'s>(
#[tauri::command]
pub async fn update_workspace<'s>(
state: tauri::State<'s, AppState>,
parameters: UpdateWorkspace,
_state: tauri::State<'s, AppState>,
_parameters: UpdateWorkspace,
) -> Result<bool, String> {
// TODO: check user permission
// No thing to update now. The avatar is update in YDoc using websocket or yrs.update
-1
View File
@@ -1,5 +1,4 @@
use cloud_database::SqliteDBContext;
use jwst::Workspace;
use jwst_storage::{BlobAutoStorage, DocAutoStorage};
use std::{fs, path::Path};
use tauri::api::path::document_dir;
@@ -16,7 +16,7 @@ let blockSuiteWorkspace: BlockSuiteWorkspace;
beforeEach(() => {
blockSuiteWorkspace = new BlockSuiteWorkspace({
room: 'test',
id: 'test',
})
.register(builtInSchemas)
.register(__unstableSchemas);