|
22 | 22 | "vscode": "^1.42.0" |
23 | 23 | }, |
24 | 24 | "activationEvents": [ |
25 | | - "*", |
26 | | - "onLanguage:jsx", |
| 25 | + "onLanguage:js", |
27 | 26 | "onLanguage:tsx", |
28 | 27 | "onLanguage:jsx", |
29 | 28 | "onLanguage:javascript", |
|
41 | 40 | { |
42 | 41 | "command": "react-toolkit.readFile", |
43 | 42 | "title": "Convert to Typescript" |
| 43 | + }, |
| 44 | + { |
| 45 | + "command": "react-toolkit.convertCjsToEsm", |
| 46 | + "title": "Convert CommonJS to Typescript" |
44 | 47 | } |
45 | 48 | ], |
46 | 49 | "menus": { |
|
55 | 58 | { |
56 | 59 | "command": "react-toolkit.readFile", |
57 | 60 | "group": "1_modification@1" |
| 61 | + }, |
| 62 | + { |
| 63 | + "command": "react-toolkit.convertCjsToEsm", |
| 64 | + "group": "1_modification@2" |
58 | 65 | } |
59 | 66 | ] |
60 | 67 | } |
61 | 68 | }, |
| 69 | + "config": { |
| 70 | + "commitizen": { |
| 71 | + "path": "node_modules/cz-conventional-changelog" |
| 72 | + } |
| 73 | + }, |
62 | 74 | "scripts": { |
| 75 | + "cm": "git-cz", |
63 | 76 | "vscode:prepublish": "yarn run compile", |
64 | 77 | "compile": "tsc -p ./", |
65 | 78 | "lint": "eslint src --ext ts", |
66 | 79 | "watch": "tsc -watch -p ./", |
67 | 80 | "pretest": "yarn run compile && yarn run lint", |
68 | 81 | "test": "node ./out/test/runTest.js", |
69 | | - "release": "npx standard-version" |
| 82 | + "release": "vsce publish", |
| 83 | + "version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md" |
70 | 84 | }, |
71 | 85 | "devDependencies": { |
72 | 86 | "@types/fs-extra": "^8.0.1", |
|
76 | 90 | "@types/vscode": "^1.42.0", |
77 | 91 | "@typescript-eslint/eslint-plugin": "^2.18.0", |
78 | 92 | "@typescript-eslint/parser": "^2.18.0", |
| 93 | + "cz-conventional-changelog": "^3.1.0", |
79 | 94 | "eslint": "^6.8.0", |
80 | 95 | "glob": "^7.1.6", |
81 | 96 | "mocha": "^7.0.1", |
82 | 97 | "typescript": "^3.7.5", |
83 | 98 | "vscode-test": "^1.3.0" |
84 | 99 | }, |
85 | 100 | "dependencies": { |
| 101 | + "@wessberg/cjs-to-esm-transformer": "^0.0.18", |
86 | 102 | "fs-extra": "^8.1.0", |
87 | 103 | "react-js-to-ts": "^1.4.0" |
88 | 104 | } |
|
0 commit comments