Skip to content

Commit f9e0caa

Browse files
committed
chore: update package json
1 parent c9af9f1 commit f9e0caa

File tree

6 files changed

+35
-8
lines changed

6 files changed

+35
-8
lines changed

packages/vscode/LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 BrandonX
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/vscode/package.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-protobuf-to-typescript",
33
"displayName": "Protobuf To Typescript",
44
"description": "Convert protobuf struct to typescript type",
5-
"version": "0.0.7",
5+
"version": "0.0.8",
66
"private": true,
77
"icon": "icon.png",
88
"publisher": "yishi",
@@ -17,6 +17,11 @@
1717
"type": "git",
1818
"url": "git+https://github.com/brandonxiang/protobuf-to-typescript.git"
1919
},
20+
"activationEvents": [
21+
"onCommand:pbToTypescript.fromSelection",
22+
"onCommand:pbToTypescript.fromClipboard",
23+
"onCommand:pbToTypescript.convertOnAir"
24+
],
2025
"main": "./out/extension.js",
2126
"contributes": {
2227
"configuration": {
@@ -92,7 +97,8 @@
9297
"watch": "npm run -S esbuild-base -- --sourcemap --watch",
9398
"pretest": "npm run build && npm run lint",
9499
"lint": "eslint src --ext ts",
95-
"will-test": "node ./out/test/runTest.js"
100+
"will-test": "node ./out/test/runTest.js",
101+
"publish": "pnpm vsce publish --no-dependencies"
96102
},
97103
"devDependencies": {
98104
"@types/copy-paste": "^1.1.30",
@@ -112,7 +118,7 @@
112118
"rimraf": "^3.0.2"
113119
},
114120
"dependencies": {
115-
"pbts": "^4.0.5",
121+
"pbts": "^4.0.6",
116122
"copy-paste": "1.3.0"
117123
}
118124
}

packages/web/app/pages/index.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ message MyResponse {
2626
let dest = '';
2727
2828
let selectedDefinition = localStorage.getItem('selectedDefinition') || 'typescript';
29-
let selectedMode = localStorage.getItem('selectedMode') || 'normal';
29+
let selectedMode = localStorage.getItem('selectedMode') || 'strict';
3030
3131
let isWarning = false;
3232

packages/web/app/pages/mock.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ message HelloReply {
3131
let isWarning = false;
3232
3333
let methodNames = [];
34-
let selectedMode = localStorage.getItem('selectedMode') || 'normal';
34+
let selectedMode = localStorage.getItem('selectedMode') || 'strict';
3535
3636
function onProtobuf() {
3737
const methods = pbToTypescript.getAllMethods('syntax = "proto3";' + src);

packages/web/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"dependencies": {
2222
"svelte": "^4.2.18",
23-
"pbts": "^4.0.5",
23+
"pbts": "^4.0.6",
2424
"clipboard": "^2.0.11",
2525
"protobufjs": "^7.3.3",
2626
"svelte-codemirror-editor": "^1.4.0",

pnpm-lock.yaml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)