@cosmwasm/ts-codegen 0.13.0 → 0.13.1
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.
package/main/builder/builder.js
CHANGED
@@ -433,9 +433,10 @@ var TSBuilder = /*#__PURE__*/function () {
|
|
433
433
|
ast = (0, _bundler.recursiveModuleBundle)(bundleVariables);
|
434
434
|
code = (0, _generator["default"])(t.program([].concat(importPaths, (0, _toConsumableArray2["default"])(ast)))).code;
|
435
435
|
(0, _mkdirp.sync)(this.outPath);
|
436
|
+
if (code.trim() === '') code = 'export {};';
|
436
437
|
(0, _fs.writeFileSync)((0, _path.join)(this.outPath, bundleFile), _header.header + code);
|
437
438
|
|
438
|
-
case
|
439
|
+
case 10:
|
439
440
|
case "end":
|
440
441
|
return _context7.stop();
|
441
442
|
}
|
@@ -170,8 +170,9 @@ export class TSBuilder {
|
|
170
170
|
createFileBundle(`${this.options.bundle.scope}.${file.contract}`, file.localname, bundleFile, importPaths, bundleVariables);
|
171
171
|
});
|
172
172
|
const ast = recursiveModuleBundle(bundleVariables);
|
173
|
-
|
173
|
+
let code = generate(t.program([...importPaths, ...ast])).code;
|
174
174
|
mkdirp(this.outPath);
|
175
|
+
if (code.trim() === '') code = 'export {};';
|
175
176
|
writeFileSync(join(this.outPath, bundleFile), header + code);
|
176
177
|
}
|
177
178
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.13.
|
3
|
+
"version": "0.13.1",
|
4
4
|
"description": "@cosmwasm/ts-codegen converts your CosmWasm smart contracts into dev-friendly TypeScript classes so you can focus on shipping code.",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/cosmwasm/ts-codegen",
|
@@ -96,5 +96,5 @@
|
|
96
96
|
"shelljs": "0.8.5",
|
97
97
|
"wasm-ast-types": "^0.9.0"
|
98
98
|
},
|
99
|
-
"gitHead": "
|
99
|
+
"gitHead": "37ca0c4ace985d47d31fcbcf24b585e185b65432"
|
100
100
|
}
|