Skip to content

Commit

Permalink
Merge pull request #36 from rrelyea/getSampleRunningIn2022
Browse files Browse the repository at this point in the history
get sample running in oct 2022
  • Loading branch information
rebornix authored Oct 5, 2022
2 parents c29f5c3 + 4397106 commit a6f2333
Show file tree
Hide file tree
Showing 4 changed files with 7,085 additions and 8,999 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This project was bootstrapped with
Run following commands in the terminal

```shell
yarn install
yarn install --ignore-engines
yarn run build
```
And then press F5, in Extension Development Host session, run `Start React Webview` command from command palette.
Expand Down
4 changes: 2 additions & 2 deletions ext-src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class ReactPanel {

private _getHtmlForWebview() {
const manifest = require(path.join(this._extensionPath, 'build', 'asset-manifest.json'));
const mainScript = manifest['main.js'];
const mainStyle = manifest['main.css'];
const mainScript = manifest['files']['main.js'];
const mainStyle = manifest['files']['main.css'];

const scriptPathOnDisk = vscode.Uri.file(path.join(this._extensionPath, 'build', mainScript));
const scriptUri = scriptPathOnDisk.with({ scheme: 'vscode-resource' });
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
"dependencies": {
"react": "^16.3.2",
"react-dom": "^16.3.2",
"terser": "3.16.0",
"terser": "^5.15.0",
"yarn": "^1.22.19",
"vscode": "^1.1.17"
},
"resolutions": {
"terser": "3.14.1"
},
"scripts": {
"vscode:prepublish": "./scripts/build-non-split.js && tsc -p tsconfig.extension.json",
"vscode:prepublish": "node ./scripts/build-non-split.js && tsc -p tsconfig.extension.json",
"postinstall": "node ./node_modules/vscode/bin/install",
"start": "react-scripts start",
"build": "./scripts/build-non-split.js && tsc -p tsconfig.extension.json",
"build": "node ./scripts/build-non-split.js && tsc -p tsconfig.extension.json",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
Expand All @@ -40,8 +40,8 @@
"@types/node": "^10.1.2",
"@types/react": "^16.3.14",
"@types/react-dom": "^16.0.5",
"react-scripts": "^2.1.3",
"rewire": "^4.0.1",
"react-scripts": "^5.0.1",
"rewire": "^6.0.0",
"typescript": "^3.3.1"
},
"browserslist": [
Expand Down
Loading

0 comments on commit a6f2333

Please sign in to comment.