80b758d466
VS Code extension can do [pre-releases](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions). This would make it easier to test unreleased version of the extension (thanks @ds300 [for the suggestion](https://github.com/tldraw/tldraw/pull/3905#pullrequestreview-2122897351)) Tried the pre-release option manually, to see how it works: https://github.com/tldraw/tldraw/assets/2523721/880fe0a2-3f29-405b-9862-b30594cf5334 There's a drawback in that we need to update version even for pre-releases as they do not support other versioning schemes atm. I decided to go with patch versions for pre-releases and minor versions for regular releases. Feels like a better UX than having a really high patch number due to bumping it on every PR. > We only support major.minor.patch for extension versions, semver pre-release tags are not supported. So, if you publish a major.minor.patch-tag release to the Marketplace, it will be treated as major.minor.patch, and the tag will be ignored. Versions must be different between pre-release and regular releases. That is, if 1.2.3 is uploaded as a pre-release, the next regular release must be uploaded with a distinct version, such as 1.2.4. Full semver support will be available in the future. ### Change Type <!-- ❗ Please select a 'Scope' label ❗️ --> - [ ] `sdk` — Changes the tldraw SDK - [ ] `dotcom` — Changes the tldraw.com web app - [ ] `docs` — Changes to the documentation, examples, or templates. - [x] `vs code` — Changes to the vscode plugin - [ ] `internal` — Does not affect user-facing stuff <!-- ❗ Please select a 'Type' label ❗️ --> - [ ] `bugfix` — Bug fix - [ ] `feature` — New feature - [ ] `improvement` — Improving existing features - [ ] `chore` — Updating dependencies, other boring stuff - [ ] `galaxy brain` — Architectural changes - [ ] `tests` — Changes to any test code - [x] `tools` — Changes to infrastructure, CI, internal scripts, debugging tools, etc. - [ ] `dunno` — I don't know ### Release Notes - Release a pre-release when we merge changes to main.
163 lines
3.6 KiB
JSON
163 lines
3.6 KiB
JSON
{
|
|
"name": "tldraw-vscode",
|
|
"description": "The tldraw extension for VS Code.",
|
|
"version": "2.0.36",
|
|
"private": true,
|
|
"author": {
|
|
"name": "tldraw Inc.",
|
|
"email": "hello@tldraw.com"
|
|
},
|
|
"homepage": "https://tldraw.dev",
|
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/tldraw/tldraw"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/tldraw/tldraw/issues"
|
|
},
|
|
"keywords": [
|
|
"tldraw",
|
|
"drawing",
|
|
"app",
|
|
"development",
|
|
"whiteboard",
|
|
"canvas",
|
|
"infinite"
|
|
],
|
|
"displayName": "tldraw",
|
|
"publisher": "tldraw-org",
|
|
"icon": "icon.png",
|
|
"galleryBanner": {
|
|
"color": "#1d1d1d",
|
|
"theme": "dark"
|
|
},
|
|
"categories": [
|
|
"Visualization"
|
|
],
|
|
"engines": {
|
|
"vscode": "^1.75.1"
|
|
},
|
|
"activationEvents": [],
|
|
"browser": "./dist/web/extension.js",
|
|
"main": "./dist/web/extension.js",
|
|
"extensionKind": [
|
|
"workspace"
|
|
],
|
|
"contributes": {
|
|
"customEditors": [
|
|
{
|
|
"viewType": "tldraw.tldr",
|
|
"displayName": "tldraw",
|
|
"selector": [
|
|
{
|
|
"filenamePattern": "*.tldr"
|
|
},
|
|
{
|
|
"filenamePattern": "*.tldr.json"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"keybindings": [
|
|
{
|
|
"key": "ctrl+shift+d",
|
|
"mac": "cmd+shift+d",
|
|
"title": "Toggle Dark Mode",
|
|
"command": "tldraw.tldr.toggleDarkMode",
|
|
"category": "tldraw",
|
|
"when": "resourceExtname == .tldr"
|
|
},
|
|
{
|
|
"key": "ctrl+numpad_add",
|
|
"mac": "cmd+numpad_add",
|
|
"title": "Zoom In",
|
|
"command": "tldraw.tldr.zoomIn",
|
|
"category": "tldraw",
|
|
"when": "resourceExtname == .tldr"
|
|
},
|
|
{
|
|
"key": "ctrl+=",
|
|
"mac": "cmd+=",
|
|
"title": "Zoom In",
|
|
"command": "tldraw.tldr.zoomIn",
|
|
"category": "tldraw",
|
|
"when": "resourceExtname == .tldr"
|
|
},
|
|
{
|
|
"key": "ctrl+numpad_subtract",
|
|
"mac": "cmd+numpad_subtract",
|
|
"title": "Zoom Out",
|
|
"command": "tldraw.tldr.zoomOut",
|
|
"category": "tldraw",
|
|
"when": "resourceExtname == .tldr"
|
|
},
|
|
{
|
|
"key": "ctrl+-",
|
|
"mac": "cmd+-",
|
|
"title": "Zoom Out",
|
|
"command": "tldraw.tldr.zoomOut",
|
|
"category": "tldraw",
|
|
"when": "resourceExtname == .tldr"
|
|
},
|
|
{
|
|
"key": "ctrl+numpad0",
|
|
"mac": "cmd+numpad0",
|
|
"title": "Reset Zoom",
|
|
"command": "tldraw.tldr.resetZoom",
|
|
"category": "tldraw",
|
|
"when": "resourceExtname == .tldr"
|
|
}
|
|
],
|
|
"commands": [
|
|
{
|
|
"command": "tldraw.tldr.new",
|
|
"title": "New Project",
|
|
"category": "tldraw"
|
|
}
|
|
]
|
|
},
|
|
"vsce": {
|
|
"dependencies": false
|
|
},
|
|
"scripts": {
|
|
"dev": "tsx scripts/dev.ts",
|
|
"build": "cd ../editor && yarn build && cd ../extension && tsx scripts/build.ts",
|
|
"get-info": "vsce show tldraw-org.tldraw-vscode --json > extension.json",
|
|
"package": "yarn build && tsx scripts/package.ts",
|
|
"publish": "tsx scripts/publish.ts",
|
|
"lint": "yarn run -T tsx ../../../scripts/lint.ts",
|
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf editor && rm -rf temp & yarn"
|
|
},
|
|
"devDependencies": {
|
|
"@tldraw/editor": "workspace:*",
|
|
"@types/fs-extra": "^11.0.1",
|
|
"@types/node-fetch": "^2.6.2",
|
|
"@types/vscode": "^1.75.1",
|
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
"@typescript-eslint/parser": "^5.57.0",
|
|
"assert": "^2.0.0",
|
|
"esbuild": "^0.18.4",
|
|
"eslint": "^8.37.0",
|
|
"fs-extra": "^11.1.0",
|
|
"lazyrepo": "0.0.0-alpha.27",
|
|
"lodash": "^4.17.21",
|
|
"mocha": "^9.1.1",
|
|
"process": "^0.11.10",
|
|
"tldraw": "workspace:*",
|
|
"ts-loader": "^9.2.5",
|
|
"tslib": "^2.6.2",
|
|
"tsx": "^4.0.0",
|
|
"typescript": "^5.3.3",
|
|
"vsce": "^2.15.0",
|
|
"webpack": "^5.0.0"
|
|
},
|
|
"gitHead": "4b1137849ad07da36fc8f0f19cb64e7535a79296",
|
|
"dependencies": {
|
|
"node-fetch": "^2.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18",
|
|
"react-dom": "^18"
|
|
}
|
|
}
|