Skip to content

Commit 91174ac

Browse files
committed
x
1 parent 9afd9d4 commit 91174ac

15 files changed

Lines changed: 502 additions & 42 deletions

File tree

compilers/typescript-lsp/src/lsp/formatter/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ impl Formatter {
242242
}
243243

244244
'@' if !in_string && !in_comment && !in_multiline_comment && !in_template && line_start => {
245-
246245
self.append_char(&mut formatted, c, indent_level, line_start);
247246
line_start = false;
248247
}
@@ -462,9 +461,7 @@ impl Formatter {
462461
}
463462
line_start = false;
464463

465-
if in_arrow_function {
466-
467-
}
464+
if in_arrow_function {}
468465
}
469466

470467
'+' | '-' | '*' | '/' | '%' | '>' | '<' | '!' | '&' | '|' | '^' | '~' | '?'

compilers/typescript-tools/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#![warn(missing_docs)]
22

33
//! TypeScript 工具集
4-
//!
4+
//!
55
//! 提供 TypeScript 编译、执行、格式化等工具功能
6-
//!
6+
//!
77
//! ## 主要功能
88
//! - 编译 TypeScript 代码
99
//! - 执行 TypeScript 脚本

frontends/homepage/tsconfig.node.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

frontends/homepage/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineConfig({
88
VitePWA({
99
registerType: "autoUpdate",
1010
workbox: {
11-
globPatterns: ["**/*.{js,css,html,ico,png,svg}"],
11+
globPatterns: ["**/*.{js,css,html,ico,png,svg,wasm}"],
1212
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024,
1313
runtimeCaching: [
1414
{

frontends/homepage/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default defineConfig({
99
VitePWA({
1010
registerType: "autoUpdate",
1111
workbox: {
12-
globPatterns: ["**/*.{js,css,html,ico,png,svg}"],
12+
globPatterns: ["**/*.{js,css,html,ico,png,svg,wasm}"],
1313
maximumFileSizeToCacheInBytes: 10 * 1024 * 1024,
1414
runtimeCaching: [
1515
{
Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nyar/typescript",
33
"version": "0.1.0",
4-
"description": "TypeScript WASI 包装层,提供对 TypeScript WASM 功能的 TypeScript 接口",
4+
"description": "TypeScript WASI wrapper, providing TypeScript interface for TypeScript WASM functionality",
55
"type": "module",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",
@@ -14,25 +14,18 @@
1414
"publishConfig": {
1515
"access": "public"
1616
},
17-
"files": [
18-
"dist",
19-
"lib"
20-
],
17+
"files": ["dist"],
2118
"scripts": {
22-
"build": "tsc && npx --no-install jco transpile ../../target/wasm32-wasip2/release/typescript_wasi.wasm --out-dir lib --name typescriptWasi",
23-
"dev": "tsc --watch"
19+
"build": "tsc && npx --no-install jco transpile ../../target/wasm32-wasip2/release/typescript_wasi.wasm --out-dir dist --name typescriptWasi",
20+
"dev": "tsc --watch",
21+
"test": "vitest"
2422
},
25-
"keywords": [
26-
"typescript",
27-
"wasm",
28-
"wasi",
29-
"rust",
30-
"compiler"
31-
],
23+
"keywords": ["typescript", "wasm", "wasi", "rust", "compiler"],
3224
"author": "Nyar",
3325
"license": "MIT",
3426
"devDependencies": {
3527
"@types/node": "^20.19.37",
36-
"typescript": "^5.0.0"
28+
"typescript": "^5.0.0",
29+
"vitest": "^1.0.0"
3730
}
3831
}

0 commit comments

Comments
 (0)