Skip to content

Commit

Permalink
fixing publishing process
Browse files Browse the repository at this point in the history
  • Loading branch information
peetzweg committed May 12, 2023
1 parent 66edef3 commit 43d3065
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Launch Crypto Address Lens",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/dist/packages/vsc/"x
"--extensionDevelopmentPath=${workspaceFolder}/dist/packages/vsc/"
],
"request": "launch",
"type": "extensionHost"
Expand Down
2 changes: 1 addition & 1 deletion packages/vsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"activationEvents": [
"onStartupFinished"
],
"main": "./main.cjs",
"main": "main",
"dependencies": {
"@ethersproject/abi": "^5.7.0",
"keccak": "^3.0.3"
Expand Down
14 changes: 9 additions & 5 deletions packages/vsc/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"executor": "@nx/esbuild:esbuild",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "packages/vsc/publish",
"outputPath": "dist/packages/vsc",
"external": ["vscode"],
"format": ["cjs"],
"outputFileName": "main",
Expand All @@ -51,7 +51,12 @@
"minify": true,
"main": "packages/vsc/src/main.ts",
"tsConfig": "packages/vsc/tsconfig.app.json",
"assets": ["packages/vsc/src/assets"],
"assets": [
{ "input": "packages/vsc/", "glob": "logo.png", "output": "/" },
{ "input": "packages/vsc/", "glob": "README.md", "output": "/" },
{ "input": "packages/vsc/", "glob": "LICENSE", "output": "/" },
{ "input": "packages/vsc/", "glob": "CHANGELOG.md", "output": "/" }
],
"generatePackageJson": true,
"thirdParty": true
}
Expand All @@ -61,12 +66,11 @@
"dependsOn": ["prepublish"],
"options": {
"commands": [
"mv ./publish/main.cjs ./publish/main.js",
"rm ./publish/package.json",
"mv ./main.cjs ./main.js",
"vsce publish --no-dependencies"
],
"parallel": false,
"cwd": "packages/vsc"
"cwd": "dist/packages/vsc"
}
},
"lint": {
Expand Down

0 comments on commit 43d3065

Please sign in to comment.