|
30 | 30 | "onLanguage:typescript", |
31 | 31 | "onLanguage:typescriptreact" |
32 | 32 | ], |
33 | | - "main": "./out/extension", |
| 33 | + "main": "./out/extension.js", |
| 34 | + "source": "./src/extension.ts", |
| 35 | + "targets": { |
| 36 | + "main": { |
| 37 | + "context": "node", |
| 38 | + "isLibrary": true, |
| 39 | + "sourceMap": false, |
| 40 | + "optimize": true, |
| 41 | + "outputFormat": "commonjs", |
| 42 | + "includeNodeModules": { |
| 43 | + "typescript": false, |
| 44 | + "vscode": false, |
| 45 | + "prettier": false, |
| 46 | + "lodash": false |
| 47 | + } |
| 48 | + } |
| 49 | + }, |
34 | 50 | "contributes": { |
35 | 51 | "commands": [ |
36 | 52 | { |
|
76 | 92 | "scripts": { |
77 | 93 | "cm": "git diff-index --cached --quiet HEAD || git-cz", |
78 | 94 | "vscode:prepublish": "yarn run compile", |
79 | | - "compile": "rimraf out && tsc -p ./", |
| 95 | + "compile": "rimraf out && parcel build --reporter @parcel/reporter-bundle-analyzer", |
80 | 96 | "lint": "eslint src --ext ts --fix", |
81 | | - "watch": "tsc -watch -p ./", |
| 97 | + "watch": "parcel", |
82 | 98 | "pretest": "yarn run compile && yarn run lint", |
83 | 99 | "test": "node ./out/test/runTest.js", |
84 | 100 | "release": "vsce publish", |
85 | 101 | "version": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md" |
86 | 102 | }, |
87 | 103 | "devDependencies": { |
| 104 | + "@parcel/reporter-bundle-analyzer": "^2.0.0", |
88 | 105 | "@types/fs-extra": "^9.0.12", |
89 | 106 | "@types/glob": "^7.1.1", |
90 | 107 | "@types/mocha": "^9.0.0", |
|
103 | 120 | "git-cz": "^4.7.6", |
104 | 121 | "glob": "^7.1.6", |
105 | 122 | "mocha": "^9.0.3", |
| 123 | + "parcel": "^2.0.0", |
106 | 124 | "prettier": "^2.3.2", |
107 | 125 | "rimraf": "^3.0.2", |
108 | 126 | "vscode-test": "^1.3.0" |
109 | 127 | }, |
110 | 128 | "dependencies": { |
111 | 129 | "@wessberg/cjs-to-esm-transformer": "^0.0.22", |
112 | 130 | "fs-extra": "^10.0.0", |
113 | | - "is-core-module": "^2.8.0", |
114 | 131 | "react-js-to-ts": "^1.4.0", |
115 | 132 | "typescript": "^3.7.5" |
116 | 133 | } |
|
0 commit comments