Skip to content

Commit

Permalink
Chore(bashaway): updated builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Aug 15, 2023
1 parent 3863e61 commit 9c38308
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@ p*/**/jest.config.js
p*/**/LICENSE

p*/**/node_modules/
p*/**/logs/.turbo
p*/**/logs/.turbo

packages/bashaway/src/_
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ test/
coverage/
node_modules/
.babelrc
esbuild.config.js
jest.config.js
cache-control.json
.env
15 changes: 15 additions & 0 deletions packages/bashaway/esbuild.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const execSync = require("child_process").execSync;

execSync("npx rimraf ./dist && mkdir dist");

require("esbuild")
.build({
entryPoints: ["./src/index.js"],
bundle: true,
outdir: "./dist",
platform: "node",
target: "node14.0",
format: "cjs",
minify: true
})
.catch(() => process.exit(1));
5 changes: 3 additions & 2 deletions packages/bashaway/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"name": "@sliit-foss/bashaway",
"version": "1.2.1",
"version": "1.2.2-blizzard.0",
"description": "Utility functions for SLIIT Bashaway test automation",
"main": "dist/index.js",
"types": "types/index.d.ts",
"scripts": {
"build": "node ../../scripts/esbuild.config.js",
"build": "node ./esbuild.config.js",
"build:watch": "bash ../../scripts/esbuild.watch.sh",
"bump-version": "bash ../../scripts/bump-version.sh --name=@sliit-foss/bashaway",
"lint": "bash ../../scripts/lint.sh",
"release": "bash ../../scripts/release.sh",
"test": "bash ../../scripts/test/test.sh"
},
"dependencies": {
"@sliit-foss/actions-exec-wrapper": "1.1.1",
"glob": "10.3.3"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions packages/bashaway/src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./scan";
export * from "./_";
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9c38308

Please sign in to comment.