mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
The TypeScript session reads initialize's answer to tell a 7.1 server
(caseSensitivity) from a 7.0 one (useCaseSensitiveFileNames), and on a
7.1 server sends 7.1's requests and reads its answers:
- snapshots: the first comes from createSnapshot and later ones from
updateSnapshot with the latest snapshot as the base, which the server
keeps until the next update. Each asks for current programs
(ensurePrograms), and a project's root files and options come from its
parsed command line. Projects an update does not list carry over from
the base.
- symbols: a symbol is named by its reference, a source file or the
snapshot and project that owns it plus its id. The semantic model keeps
numeric symbol ids: each reference, and each compact reference other
answers hold, gets a local id, and requests send the reference back.
Symbol property methods take it in `symbol`.
- requests: getApparentType, getConstraintOfTypeParameter,
getNonNullableType and getReturnTypeOfSignature name their type or
signature in `objectId`, the diagnostics methods take `files`, and
signatureToSignatureDeclaration's kind is a 7.1 SyntaxKind.
- answers: isTupleType is read from the type, JsxEmit's React and
ReactNative values are swapped back, and parseConfigFile returns the
options and file names.
- file system callbacks reply with {kind, value}: a value, "missing" for
a hidden path, or "useOS" to delegate to the server.
The session, checker and semantic checker tests run against tsc 7.0.2 and
against tsc 7.1.0-beta, from the typescript-7.1 test dependency.
71 lines
2.4 KiB
JSON
71 lines
2.4 KiB
JSON
{
|
|
"name": "@scriptc/compiler",
|
|
"version": "0.4.5",
|
|
"description": "The scriptc compiler — TypeScript/JavaScript frontend, typed IR, LLVM backend",
|
|
"license": "Apache-2.0",
|
|
"homepage": "https://scriptc.dev",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/vercel-labs/scriptc.git",
|
|
"directory": "packages/compiler"
|
|
},
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./startup-cache": "./dist/startup-cache.js",
|
|
"./scriptc.d.ts": "./ambient/scriptc.d.ts",
|
|
"./scriptc-overrides.d.ts": "./ambient/scriptc-overrides.d.ts",
|
|
"./scriptc-node-fallback.d.ts": "./ambient/scriptc-node-fallback.d.ts",
|
|
"./surface-manifest.json": "./surface-manifest.json",
|
|
"./cli/command": "./dist/cli/command.js",
|
|
"./cli/host": "./dist/cli/host.js",
|
|
"./cli/paths": "./dist/cli/paths.js",
|
|
"./cli/output-options": "./dist/cli/output-options.js",
|
|
"./cli/usage": "./dist/cli/usage.js",
|
|
"./cli/wasi-runner": "./dist/cli/wasi-runner.js"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"ambient",
|
|
"shims",
|
|
"surface-manifest.json"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "node node_modules/typescript/bin/tsc -p tsconfig.json"
|
|
},
|
|
"dependencies": {
|
|
"@scriptc/runtime": "workspace:*",
|
|
"tsc-ts": "0.0.10",
|
|
"typescript": "7.0.2",
|
|
"typescript5": "npm:typescript@5.9.3"
|
|
},
|
|
"devDependencies": {
|
|
"typescript-7.1": "npm:typescript@7.1.0-beta"
|
|
},
|
|
"optionalDependencies": {
|
|
"@scriptc/llvm-darwin-arm64": "workspace:*",
|
|
"@scriptc/llvm-darwin-x64": "workspace:*",
|
|
"@scriptc/llvm-linux-x64-gnu": "workspace:*",
|
|
"@scriptc/llvm-linux-arm64-gnu": "workspace:*",
|
|
"@scriptc/llvm-linux-x64-musl": "workspace:*",
|
|
"@scriptc/llvm-linux-arm64-musl": "workspace:*",
|
|
"@scriptc/llvm-win32-x64-msvc": "workspace:*",
|
|
"@scriptc/runtime-darwin-arm64": "workspace:*",
|
|
"@scriptc/runtime-darwin-x64": "workspace:*",
|
|
"@scriptc/runtime-linux-x64-gnu": "workspace:*",
|
|
"@scriptc/runtime-linux-arm64-gnu": "workspace:*",
|
|
"@scriptc/runtime-linux-x64-musl": "workspace:*",
|
|
"@scriptc/runtime-linux-arm64-musl": "workspace:*",
|
|
"@scriptc/runtime-win32-x64-msvc": "workspace:*",
|
|
"@scriptc/runtime-wasm32-wasi": "workspace:*",
|
|
"@scriptc/runtime-ios-arm64": "workspace:*",
|
|
"@scriptc/runtime-ios-simulator-arm64": "workspace:*",
|
|
"@scriptc/runtime-android-arm64": "workspace:*"
|
|
}
|
|
}
|