mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
119 lines
3.9 KiB
JSON
119 lines
3.9 KiB
JSON
{
|
|
"private": true,
|
|
"name": "@typescript/native-preview",
|
|
"version": "0.0.0",
|
|
"license": "Apache-2.0",
|
|
"author": "Microsoft Corp.",
|
|
"homepage": "https://www.typescriptlang.org/",
|
|
"description": "Preview CLI and JS API for the native TypeScript compiler port",
|
|
"keywords": [
|
|
"TypeScript",
|
|
"Microsoft",
|
|
"compiler",
|
|
"language",
|
|
"javascript",
|
|
"tsgo"
|
|
],
|
|
"bugs": {
|
|
"url": "https://github.com/microsoft/typescript-go/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/microsoft/typescript-go.git"
|
|
},
|
|
"type": "module",
|
|
"preferUnplugged": true,
|
|
"engines": {
|
|
"node": ">=16.20.0"
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"lib",
|
|
"dist",
|
|
"vendor"
|
|
],
|
|
"bin": {
|
|
"tsgo": "./bin/tsgo"
|
|
},
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": "./lib/version.cjs",
|
|
"./unstable/sync": {
|
|
"@typescript/source": "./src/api/sync/api.ts",
|
|
"default": "./dist/api/sync/api.js"
|
|
},
|
|
"./unstable/async": {
|
|
"@typescript/source": "./src/api/async/api.ts",
|
|
"default": "./dist/api/async/api.js"
|
|
},
|
|
"./unstable/fs": {
|
|
"@typescript/source": "./src/api/fs.ts",
|
|
"default": "./dist/api/fs.js"
|
|
},
|
|
"./unstable/proto": {
|
|
"@typescript/source": "./src/api/proto.ts",
|
|
"default": "./dist/api/proto.js"
|
|
},
|
|
"./unstable/ast": {
|
|
"@typescript/source": "./src/ast/index.ts",
|
|
"default": "./dist/ast/index.js"
|
|
},
|
|
"./unstable/ast/is": {
|
|
"@typescript/source": "./src/ast/is.ts",
|
|
"default": "./dist/ast/is.js"
|
|
},
|
|
"./unstable/ast/factory": {
|
|
"@typescript/source": "./src/ast/factory.generated.ts",
|
|
"default": "./dist/ast/factory.generated.js"
|
|
},
|
|
"./unstable/ast/utils": {
|
|
"@typescript/source": "./src/ast/utils.ts",
|
|
"default": "./dist/ast/utils.js"
|
|
},
|
|
"./unstable/ast/scanner": {
|
|
"@typescript/source": "./src/ast/scanner.ts",
|
|
"default": "./dist/ast/scanner.js"
|
|
},
|
|
"./unstable/ast/visitor": {
|
|
"@typescript/source": "./src/ast/visitor.ts",
|
|
"default": "./dist/ast/visitor.js"
|
|
},
|
|
"./unstable/ast/clone": {
|
|
"@typescript/source": "./src/ast/clone.ts",
|
|
"default": "./dist/ast/clone.js"
|
|
}
|
|
},
|
|
"imports": {
|
|
"#getExePath": "./lib/getExePath.js",
|
|
"#enums/*": {
|
|
"@typescript/source": {
|
|
"types": "./src/enums/*.enum.ts",
|
|
"default": "./src/enums/*.ts"
|
|
},
|
|
"types": "./dist/enums/*.enum.d.ts",
|
|
"default": "./dist/enums/*.js"
|
|
},
|
|
"#vscode-jsonrpc/node": "./vendor/vscode-jsonrpc/lib/node/main.js"
|
|
},
|
|
"scripts": {
|
|
"node": "node --experimental-strip-types --no-warnings --conditions @typescript/source",
|
|
"generate": "npm run generate:ast && npm run generate:encoder && npm run generate:enums && npm run generate:sync",
|
|
"generate:ast": "node --experimental-strip-types --no-warnings ../../_scripts/generate-ts-ast.ts",
|
|
"generate:encoder": "npm run node -- ../../_scripts/generate-encoder.ts",
|
|
"generate:sync": "npm run node -- scripts/generateSync.ts",
|
|
"generate:enums": "npx hereby generate:enums --herebyfile ../../Herebyfile.mjs",
|
|
"prebuild": "npm run generate",
|
|
"build": "tsc -b",
|
|
"prebuild:test": "npm run generate",
|
|
"build:test": "tsc -b test",
|
|
"test:only": "npm run node -- --test './test/**/*.test.ts'",
|
|
"pretest": "npm run generate",
|
|
"test": "npm run test:only"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.9.4",
|
|
"tinybench": "^6.0.2",
|
|
"vscode-jsonrpc": "^9.0.0"
|
|
}
|
|
}
|