Skip to content

Commit

Permalink
feat: use copy-webpack-plugin to prepare prebuilds; bump Secrets SDK
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Aug 14, 2023
1 parent 136468d commit d76ae48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 4 additions & 3 deletions packages/zowe-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1905,12 +1905,12 @@
]
},
"scripts": {
"build": "gulp build && yarn license && ts-node ./scripts/getSecretsPrebuilds.ts && webpack --mode development",
"build": "gulp build && yarn license && webpack --mode development",
"build:integration": "yarn createTestProfileData && yarn license && tsc --pretty --project tsconfig-tests.json",
"test:unit": "jest \".*__tests__.*\\.unit\\.test\\.ts\" --coverage",
"test:theia": "mocha ./out/__tests__/__theia__/*.theia.test.js --timeout 50000 --reporter mocha-multi-reporters --reporter-options configFile=.mocharc.json",
"test": "yarn test:unit",
"vscode:prepublish": "gulp build && ts-node ./scripts/getSecretsPrebuilds.ts && webpack --mode production && yarn updateStrings && yarn run compile-web",
"vscode:prepublish": "gulp build && webpack --mode production && yarn updateStrings && yarn run compile-web",
"updateStrings": "node ../../scripts/stringUpdateScript.js && prettier --write --loglevel warn ./i18n package.nls*",
"package": "vsce package --allow-star-activation --yarn && node ../../scripts/mv-pack.js vscode-extension-for-zowe vsix",
"license": "node ../../scripts/updateLicenses.js",
Expand Down Expand Up @@ -1944,6 +1944,7 @@
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"chalk": "^2.4.1",
"copy-webpack-plugin": "^6.4.1",
"cross-env": "^5.2.0",
"del": "^4.1.1",
"eslint-plugin-zowe-explorer": "2.10.0-SNAPSHOT",
Expand Down Expand Up @@ -1971,7 +1972,7 @@
"webpack-cli": "^3.3.11"
},
"dependencies": {
"@zowe/secrets-for-zowe-sdk": "7.18.1",
"@zowe/secrets-for-zowe-sdk": "7.18.2",
"@zowe/zowe-explorer-api": "2.10.0-SNAPSHOT",
"fs-extra": "8.0.1",
"isbinaryfile": "4.0.4",
Expand Down
9 changes: 8 additions & 1 deletion packages/zowe-explorer/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const path = require("path");
var webpack = require("webpack");
var fs = require("fs");

const CopyPlugin = require("copy-webpack-plugin");

/**@type {import('webpack').Configuration}*/
const config = {
target: "node", // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
Expand Down Expand Up @@ -80,7 +82,12 @@ const config = {
},
],
},
plugins: [new webpack.BannerPlugin(fs.readFileSync("../../scripts/LICENSE_HEADER", "utf-8"))],
plugins: [
new webpack.BannerPlugin(fs.readFileSync("../../scripts/LICENSE_HEADER", "utf-8")),
new CopyPlugin({
patterns: [{ from: "./node_modules/@zowe/secrets-for-zowe-sdk/prebuilds", to: "../../prebuilds/" }],
}),
],
};

module.exports = config;

0 comments on commit d76ae48

Please sign in to comment.