@aloma.io/integration-sdk 3.7.4 → 3.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,8 +31,7 @@ export class Builder {
31
31
  }
32
32
  async checkIcon() {
33
33
  const data = this.data;
34
- const root = TARGET_DIR;
35
- data.icon = `${root}/logo.png`;
34
+ data.icon = TARGET_DIR + "build/logo.png";
36
35
  }
37
36
  async loadDescriptor() {
38
37
  notEmpty(this.data.controller, "controller");
package/build/cli.mjs CHANGED
@@ -92,7 +92,7 @@ program
92
92
  .action(async (str, options) => {
93
93
  const { stdout, stderr } = await exec(`rm -rf build; mkdir -p build; `);
94
94
  try {
95
- fs.copyFileSync('./logo.png', './build/');
95
+ fs.copyFileSync(`${TARGET_DIR}/logo.png`, `${TARGET_DIR}/build/logo.png`);
96
96
  }
97
97
  catch (e) {
98
98
  // blank
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aloma.io/integration-sdk",
3
- "version": "3.7.4",
3
+ "version": "3.7.6",
4
4
  "description": "",
5
5
  "author": "aloma.io",
6
6
  "license": "Apache-2.0",
@@ -46,9 +46,8 @@ export class Builder {
46
46
 
47
47
  private async checkIcon() {
48
48
  const data = this.data;
49
- const root = TARGET_DIR;
50
49
 
51
- data.icon = `${root}/logo.png`;
50
+ data.icon = TARGET_DIR + "build/logo.png";
52
51
  }
53
52
 
54
53
  private async loadDescriptor() {
package/src/cli.mts CHANGED
@@ -126,7 +126,7 @@ program
126
126
 
127
127
  try
128
128
  {
129
- fs.copyFileSync('./logo.png', './build/');
129
+ fs.copyFileSync(`${TARGET_DIR}/logo.png`, `${TARGET_DIR}/build/logo.png`);
130
130
  } catch(e) {
131
131
  // blank
132
132
  }