separete ts config for extension.
This commit is contained in:
parent
400f9ed41a
commit
394a457349
16
package.json
16
package.json
@ -8,12 +8,12 @@
|
||||
"activationEvents": [
|
||||
"onCommand:react-webview.start"
|
||||
],
|
||||
"main": "./ext-src/extension.js",
|
||||
"main": "./build/ext-src/extension.js",
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "react-webview.start",
|
||||
"title": "Start react webview",
|
||||
"title": "Start React Webview",
|
||||
"category": "React"
|
||||
}
|
||||
]
|
||||
@ -25,20 +25,18 @@
|
||||
"vscode": "^1.1.17"
|
||||
},
|
||||
"scripts": {
|
||||
"vscode:prepublish": "tsc -p ./",
|
||||
"compile": "tsc -p ./",
|
||||
"watch": "tsc -w -p ./",
|
||||
"vscode:prepublish": "react-scripts-ts build && tsc -p tsconfig.extension.json",
|
||||
"postinstall": "node ./node_modules/vscode/bin/install",
|
||||
"start": "react-scripts-ts start",
|
||||
"build": "react-scripts-ts build",
|
||||
"build": "react-scripts-ts build && tsc -p tsconfig.extension.json",
|
||||
"test": "react-scripts-ts test --env=jsdom",
|
||||
"eject": "react-scripts-ts eject"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^22.2.3",
|
||||
"@types/node": "^10.1.2",
|
||||
"@types/node": "^10.1.2",
|
||||
"typescript": "^2.8.3",
|
||||
"@types/react": "^16.3.14",
|
||||
"@types/react-dom": "^16.0.5",
|
||||
"typescript": "^2.8.3"
|
||||
"@types/react-dom": "^16.0.5"
|
||||
}
|
||||
}
|
||||
|
21
tsconfig.extension.json
Normal file
21
tsconfig.extension.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"outDir": "build",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"sourceMap": true,
|
||||
"rootDir": ".",
|
||||
"strict": true
|
||||
},
|
||||
"include": [
|
||||
"ext-src"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
".vscode-test"
|
||||
]
|
||||
}
|
@ -20,10 +20,14 @@
|
||||
version "22.2.3"
|
||||
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-22.2.3.tgz#0157c0316dc3722c43a7b71de3fdf3acbccef10d"
|
||||
|
||||
"@types/node@*", "@types/node@^10.1.2":
|
||||
"@types/node@*":
|
||||
version "10.1.2"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.1.2.tgz#1b928a0baa408fc8ae3ac012cc81375addc147c6"
|
||||
|
||||
"@types/node@^9.4.6":
|
||||
version "9.6.18"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.18.tgz#092e13ef64c47e986802c9c45a61c1454813b31d"
|
||||
|
||||
"@types/react-dom@^16.0.5":
|
||||
version "16.0.5"
|
||||
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.0.5.tgz#a757457662e3819409229e8f86795ff37b371f96"
|
||||
@ -7438,7 +7442,7 @@ typedarray@^0.0.6:
|
||||
version "0.0.6"
|
||||
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
|
||||
|
||||
typescript@^2.8.3:
|
||||
typescript@^2.7.2:
|
||||
version "2.8.3"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.3.tgz#5d817f9b6f31bb871835f4edf0089f21abe6c170"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user