Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
133 lines (133 loc) · 4.8 KB
/
Copy pathpackage.json
File metadata and controls
133 lines (133 loc) · 4.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"name": "goscript",
"description": "Go to TypeScript transpiler",
"version": "0.6.0",
"author": {
"name": "Aperture Robotics LLC.",
"email": "support@aperture.us",
"url": "http://aperture.us"
},
"contributors": [
{
"name": "Christian Stewart",
"email": "christian@aperture.us",
"url": "http://github.com/paralin"
}
],
"repository": {
"url": "git+ssh://git@github.com/s4wave/goscript.git"
},
"type": "module",
"bin": {
"goscript": "cmd/goscript/main.js"
},
"exports": {
".": {
"import": {
"types": "./dist/compiler/index.d.ts",
"default": "./dist/compiler/index.js"
}
},
"./compiler": {
"import": {
"types": "./dist/compiler/index.d.ts",
"default": "./dist/compiler/index.js"
}
},
"./gs/builtin": {
"import": {
"types": "./dist/gs/builtin/index.d.ts",
"default": "./dist/gs/builtin/index.js"
}
}
},
"scripts": {
"build": "bun run build:updategover && tsrs -p tsconfig.build.json",
"build:updategover": "bun run scripts/update-go-version.ts",
"prepublishOnly": "bun run build",
"example": "cd ./example/simple && bash run.bash",
"test": "bun run test:go && bun run test:js",
"test:go": "go test -timeout=10m $(go list ./... | grep -v /tests/tests/)",
"test:go:browser": "go run ./cmd/goscript test --browser --timeout 1m --dir compiler/gotest/testdata/browserapi --run TestBrowser .",
"test:go:browser:shim": "mkdir -p .tmp/bin && go build -o .tmp/bin/go_js_wasm_exec ./cmd/go_js_wasm_exec && sh -c 'exec_path=\"$PWD/.tmp/bin/go_js_wasm_exec\"; cd compiler/gotest/testdata/browserapi && GOOS=js GOARCH=wasm go test -exec \"$exec_path\" -run TestBrowser -count=1'",
"test:js": "bun run typecheck && vitest run",
"test:browser": "bun run scripts/generate-browser-tests.ts && vitest run --config vitest.browser.config.ts",
"test:browser:ui": "bun run scripts/generate-browser-tests.ts && vitest --config vitest.browser.config.ts --ui",
"typecheck": "tsrs --noEmit -p tsconfig.build.json",
"format": "bun run format:go && bun run format:js && bun run format:config",
"format:config": "prettier --write tsconfig.json package.json",
"format:go": "gofumpt -w .",
"format:js": "prettier --write './{src,gs,example}/**/(*.ts|*.tsx|*.html|*.css|*.scss)'",
"release": "bun run release:version && bun run release:commit",
"release:minor": "bun run release:version:minor && bun run release:commit",
"release:version": "bun run scripts/bump-version.ts patch",
"release:version:minor": "bun run scripts/bump-version.ts minor",
"release:commit": "git reset && git add package.json && git commit -s -m \"release: v$(bun -p \"require('./package.json').version\")\" && git tag v$(bun -p \"require('./package.json').version\")",
"release:publish": "git push && git push --tags",
"lint": "bun run lint:go && bun run lint:js",
"lint:go": "golangci-lint run .",
"lint:js": "eslint -c eslint.config.mjs ./",
"lint:js:fix": "eslint -c eslint.config.mjs ./ --fix",
"website:build": "bun run website:manifest && bun run website:examples && cd website && bun run build",
"website:manifest": "bun run scripts/generate-test-manifest.ts",
"website:examples": "bun run scripts/generate-examples.ts",
"website:dev": "cd website && bun run dev",
"website:serve": "cd website && bun run preview",
"prepare": "husky",
"precommit": "lint-staged"
},
"files": [
"!**/*.tsbuildinfo",
"dist",
"cmd",
"compiler",
"gs",
"!**/*.test.ts",
"!**/*_test.go",
"!**/testdata",
"gs.go",
"gs-embed.go",
"!tests",
"go.mod",
"go.sum",
"LICENSE",
"README.md"
],
"lint-staged": {
"package.json": "prettier --config .prettierrc.yaml --write",
"./{src,builtin,example}/**/(*.ts|*.tsx|*.html|*.css|*.scss)": "prettier --config .prettierrc.yaml --write"
},
"devDependencies": {
"@aptre/protobuf-es-lite": "1.2.3",
"@eslint/js": "^10.0.0",
"@types/node": "^26.0.0",
"@typescript-eslint/eslint-plugin": "^8.58.0",
"@typescript-eslint/parser": "^8.58.0",
"tsrs": "0.18.0-ts7.1.0-dev.20260929",
"@vitest/browser": "^4.1.2",
"@vitest/browser-playwright": "^4.1.2",
"@vitest/browser-preview": "^4.1.2",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.0.2",
"globals": "^17.4.0",
"husky": "^9.1.7",
"lint-staged": "^17.0.0",
"playwright": "^1.57.0",
"prettier": "^3.8.1",
"starpc": "0.49.18",
"typescript": "^6.0.0",
"typescript-eslint": "^8.58.0",
"vitest": "^4.1.2"
},
"dependencies": {
"@noble/ciphers": "2.2.0",
"@noble/hashes": "2.2.0",
"pako": "3.0.2"
},
"resolutions": {
"@aptre/protobuf-es-lite": "1.2.3"
},
"overrides": {
"@aptre/protobuf-es-lite": "1.2.3"
}
}