@cosmwasm/ts-codegen 0.31.6 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -35,7 +35,7 @@ var fs = require('fs');
|
|
35
35
|
|
36
36
|
var path = require('path');
|
37
37
|
|
38
|
-
var repo = 'https://github.com/
|
38
|
+
var repo = 'https://github.com/cosmology-tech/ts-codegen-module-boilerplate';
|
39
39
|
|
40
40
|
var _default = /*#__PURE__*/function () {
|
41
41
|
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(argv) {
|
@@ -126,7 +126,7 @@ var _default = /*#__PURE__*/function () {
|
|
126
126
|
var content = fs.readFileSync(templateFile).toString();
|
127
127
|
|
128
128
|
if (path.basename(templateFile) === 'LICENSE' && license.__LICENSE__ === 'closed') {
|
129
|
-
content = "Copyright (c)
|
129
|
+
content = "Copyright (c) 2023 __USERFULLNAME__ <__USEREMAIL__> - All Rights Reserved\nUnauthorized copying via any medium is strictly prohibited\nProprietary and confidential";
|
130
130
|
}
|
131
131
|
|
132
132
|
Object.keys(results).forEach(function (key) {
|
@@ -143,11 +143,10 @@ var _default = /*#__PURE__*/function () {
|
|
143
143
|
}
|
144
144
|
} else {
|
145
145
|
content = content.replace(/__PACKAGE_IDENTIFIER__/g, "@".concat(results.__USERNAME__, "/").concat(results.__MODULENAME__));
|
146
|
-
}
|
146
|
+
} // if (path.basename(templateFile) === 'README.md') {
|
147
|
+
// content = `# ${results.__MODULENAME__}`;
|
148
|
+
// }
|
147
149
|
|
148
|
-
if (path.basename(templateFile) === 'README.md') {
|
149
|
-
content = "# ".concat(results.__MODULENAME__);
|
150
|
-
}
|
151
150
|
|
152
151
|
fs.writeFileSync(templateFile, content);
|
153
152
|
};
|
@@ -14,7 +14,7 @@ const fs = require('fs');
|
|
14
14
|
|
15
15
|
const path = require('path');
|
16
16
|
|
17
|
-
const repo = 'https://github.com/
|
17
|
+
const repo = 'https://github.com/cosmology-tech/ts-codegen-module-boilerplate';
|
18
18
|
export default (async argv => {
|
19
19
|
if (!shell.which('git')) {
|
20
20
|
shell.echo('Sorry, this script requires git');
|
@@ -75,7 +75,7 @@ export default (async argv => {
|
|
75
75
|
let content = fs.readFileSync(templateFile).toString();
|
76
76
|
|
77
77
|
if (path.basename(templateFile) === 'LICENSE' && license.__LICENSE__ === 'closed') {
|
78
|
-
content = `Copyright (c)
|
78
|
+
content = `Copyright (c) 2023 __USERFULLNAME__ <__USEREMAIL__> - All Rights Reserved
|
79
79
|
Unauthorized copying via any medium is strictly prohibited
|
80
80
|
Proprietary and confidential`;
|
81
81
|
}
|
@@ -94,11 +94,10 @@ Proprietary and confidential`;
|
|
94
94
|
}
|
95
95
|
} else {
|
96
96
|
content = content.replace(/__PACKAGE_IDENTIFIER__/g, `@${results.__USERNAME__}/${results.__MODULENAME__}`);
|
97
|
-
}
|
97
|
+
} // if (path.basename(templateFile) === 'README.md') {
|
98
|
+
// content = `# ${results.__MODULENAME__}`;
|
99
|
+
// }
|
98
100
|
|
99
|
-
if (path.basename(templateFile) === 'README.md') {
|
100
|
-
content = `# ${results.__MODULENAME__}`;
|
101
|
-
}
|
102
101
|
|
103
102
|
fs.writeFileSync(templateFile, content);
|
104
103
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.33.0",
|
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",
|
@@ -98,5 +98,5 @@
|
|
98
98
|
"shelljs": "0.8.5",
|
99
99
|
"wasm-ast-types": "^0.24.0"
|
100
100
|
},
|
101
|
-
"gitHead": "
|
101
|
+
"gitHead": "9d4f9eca0ee378e0f53c5b95343842d76d446534"
|
102
102
|
}
|
@@ -5,7 +5,7 @@ const glob = require('glob').sync;
|
|
5
5
|
const fs = require('fs');
|
6
6
|
const path = require('path');
|
7
7
|
|
8
|
-
const repo = 'https://github.com/
|
8
|
+
const repo = 'https://github.com/cosmology-tech/ts-codegen-module-boilerplate';
|
9
9
|
export default async argv => {
|
10
10
|
if (!shell.which('git')) {
|
11
11
|
shell.echo('Sorry, this script requires git');
|
@@ -88,7 +88,7 @@ export default async argv => {
|
|
88
88
|
path.basename(templateFile) === 'LICENSE' &&
|
89
89
|
license.__LICENSE__ === 'closed'
|
90
90
|
) {
|
91
|
-
content = `Copyright (c)
|
91
|
+
content = `Copyright (c) 2023 __USERFULLNAME__ <__USEREMAIL__> - All Rights Reserved
|
92
92
|
Unauthorized copying via any medium is strictly prohibited
|
93
93
|
Proprietary and confidential`;
|
94
94
|
}
|
@@ -118,9 +118,9 @@ Proprietary and confidential`;
|
|
118
118
|
);
|
119
119
|
}
|
120
120
|
|
121
|
-
if (path.basename(templateFile) === 'README.md') {
|
122
|
-
|
123
|
-
}
|
121
|
+
// if (path.basename(templateFile) === 'README.md') {
|
122
|
+
// content = `# ${results.__MODULENAME__}`;
|
123
|
+
// }
|
124
124
|
|
125
125
|
fs.writeFileSync(templateFile, content);
|
126
126
|
}
|