Skip to content

Commit

Permalink
Merge pull request #86 from dxc-technology/jialecl-umdFormat
Browse files Browse the repository at this point in the history
Changing build format to umd
  • Loading branch information
raquelarrojo committed Dec 15, 2023
2 parents feaca70 + e3ba96b commit 1e3f6ff
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"start": "node main.js"
},
"dependencies": {
"@dxc-technology/halstack-client": "file:../../lib"
"@dxc-technology/halstack-client": "file:../../lib/dist"
}
}
1 change: 0 additions & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"url": "https://github.com/dxc-technology/dxc-halstack-client"
},
"main": "./main.js",
"type": "module",
"scripts": {
"bundle": "rollup -c",
"copy": "node ./scripts/build/copy-distribution-files.js",
Expand Down
2 changes: 1 addition & 1 deletion lib/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
input: "src/main.js",
output: {
file: "dist/main.js",
format: "es",
format: "umd",
name: "halSDK",
},
plugins: [
Expand Down
2 changes: 1 addition & 1 deletion lib/scripts/build/copy-distribution-files.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as fs from "node:fs";
const fs = require("fs");

fs.createReadStream("./package.json").pipe(fs.createWriteStream("./dist/package.json"));
fs.createReadStream("./README.md").pipe(fs.createWriteStream("./dist/README.md"));

0 comments on commit 1e3f6ff

Please sign in to comment.