Skip to content

Commit

Permalink
Include builtin TypeScript libs in VSCode bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Jan 12, 2023
1 parent 23a22e2 commit 87ebb52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"type": "shell",
"command": "npm",
"args": ["run", "build", "--", "--sourcemap"],
"args": ["run", "build:debug"],
"label": "build",
"presentation": {
"clear": true,
Expand Down
2 changes: 1 addition & 1 deletion fixtures/demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"checkJs": true,
"jsx": "react-jsx",
"lib": ["es2020"],
"lib": ["dom", "es2020"],
"module": "node16",
"strict": true
}
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,19 @@
],
"scripts": {
"build": "esbuild @mdx-js/language-client @mdx-js/language-server --bundle --platform=node --target=node16 --external:vscode --outdir=out",
"build:debug": "npm run copy-libs && npm run build -- --sourcemap",
"copy-libs": "cpy 'node_modules/typescript/lib/lib.*.d.ts' out/",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"start": "npm --workspace @mdx-js/monaco-demo run start",
"test-api": "npm run test-api --workspaces --if-present",
"test": "npm run build && npm --workspaces run build && npm run format && npm run test-api",
"vscode:prepublish": "npm run build -- --minify"
"vscode:prepublish": "npm run copy-libs && npm run build -- --minify"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.0",
"@changesets/cli": "^2.0.0",
"@types/react": "^18.0.0",
"cpy-cli": "^4.0.0",
"esbuild": "^0.16.0",
"ovsx": "^0.7.0",
"prettier": "^2.0.0",
Expand Down

0 comments on commit 87ebb52

Please sign in to comment.