jsii-pacmak 1.80.0 → 1.81.0
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/bin/jsii-pacmak.js +1 -2
- package/lib/targets/go/package.js +7 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +3 -3
- package/package.json +14 -14
package/bin/jsii-pacmak.js
CHANGED
|
@@ -152,8 +152,7 @@ const version_1 = require("../lib/version");
|
|
|
152
152
|
desc: 'Whether jsii assemblies should be validated. This can be expensive and is skipped by default.',
|
|
153
153
|
default: false,
|
|
154
154
|
})
|
|
155
|
-
.version(version_1.VERSION_DESC)
|
|
156
|
-
.strict().argv;
|
|
155
|
+
.version(version_1.VERSION_DESC).argv;
|
|
157
156
|
(0, lib_1.configureLogging)({ level: argv.verbose !== undefined ? argv.verbose : 0 });
|
|
158
157
|
// Default to 4 threads in case of concurrency, good enough for most situations
|
|
159
158
|
(0, logging_1.debug)('command line arguments:', argv);
|
|
@@ -12,6 +12,7 @@ const util_1 = require("./util");
|
|
|
12
12
|
const version_file_1 = require("./version-file");
|
|
13
13
|
exports.GOMOD_FILENAME = 'go.mod';
|
|
14
14
|
exports.GO_VERSION = '1.18';
|
|
15
|
+
const MAIN_FILE = 'main.go';
|
|
15
16
|
/*
|
|
16
17
|
* Package represents a single `.go` source file within a package. This can be the root package file or a submodule
|
|
17
18
|
*/
|
|
@@ -141,10 +142,9 @@ class Package {
|
|
|
141
142
|
// as a consequence.
|
|
142
143
|
if (this.types.length > 0) {
|
|
143
144
|
const { code } = context;
|
|
144
|
-
const initFile = (0, path_1.join)(this.directory,
|
|
145
|
+
const initFile = (0, path_1.join)(this.directory, MAIN_FILE);
|
|
145
146
|
code.openFile(initFile);
|
|
146
|
-
|
|
147
|
-
code.line();
|
|
147
|
+
this.emitHeader(code);
|
|
148
148
|
importGoModules(code, [dependencies_1.GO_REFLECT, dependencies_1.JSII_RT_MODULE]);
|
|
149
149
|
code.line();
|
|
150
150
|
code.openBlock('func init()');
|
|
@@ -332,7 +332,10 @@ class RootPackage extends Package {
|
|
|
332
332
|
new RootPackage(dep.assembly, this.rootPackageCache));
|
|
333
333
|
}
|
|
334
334
|
emitHeader(code) {
|
|
335
|
-
|
|
335
|
+
const currentFilePath = code.getCurrentFilePath();
|
|
336
|
+
if (this.assembly.description !== '' &&
|
|
337
|
+
currentFilePath !== undefined &&
|
|
338
|
+
currentFilePath.includes(MAIN_FILE)) {
|
|
336
339
|
code.line(`// ${this.assembly.description}`);
|
|
337
340
|
}
|
|
338
341
|
code.line(`package ${this.packageName}`);
|
package/lib/version.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** The short version number for this jsii-pacmak release (e.g: `X.Y.Z`) */
|
|
2
2
|
export declare const VERSION: string;
|
|
3
3
|
/** The qualified version number for this jsii-pacmak release (e.g: `X.Y.Z (build #######)`) */
|
|
4
|
-
export declare const VERSION_DESC = "1.
|
|
4
|
+
export declare const VERSION_DESC = "1.81.0 (build 80988b0)";
|
|
5
5
|
//# sourceMappingURL=version.d.ts.map
|
package/lib/version.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Generated at 2023-
|
|
2
|
+
// Generated at 2023-05-10T16:34:01Z by generate.sh
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.VERSION_DESC = exports.VERSION = void 0;
|
|
5
5
|
/** The short version number for this jsii-pacmak release (e.g: `X.Y.Z`) */
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
7
|
-
exports.VERSION = '1.
|
|
7
|
+
exports.VERSION = '1.81.0';
|
|
8
8
|
/** The qualified version number for this jsii-pacmak release (e.g: `X.Y.Z (build #######)`) */
|
|
9
|
-
exports.VERSION_DESC = '1.
|
|
9
|
+
exports.VERSION_DESC = '1.81.0 (build 80988b0)';
|
|
10
10
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsii-pacmak",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.81.0",
|
|
4
4
|
"description": "A code generation framework for jsii backend languages",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -37,35 +37,35 @@
|
|
|
37
37
|
"package": "package-js"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@jsii/check-node": "1.
|
|
41
|
-
"@jsii/spec": "^1.
|
|
40
|
+
"@jsii/check-node": "1.81.0",
|
|
41
|
+
"@jsii/spec": "^1.81.0",
|
|
42
42
|
"clone": "^2.1.2",
|
|
43
|
-
"codemaker": "^1.
|
|
43
|
+
"codemaker": "^1.81.0",
|
|
44
44
|
"commonmark": "^0.30.0",
|
|
45
45
|
"escape-string-regexp": "^4.0.0",
|
|
46
46
|
"fs-extra": "^10.1.0",
|
|
47
|
-
"jsii-reflect": "^1.
|
|
48
|
-
"jsii-rosetta": "^1.
|
|
49
|
-
"semver": "^7.
|
|
47
|
+
"jsii-reflect": "^1.81.0",
|
|
48
|
+
"jsii-rosetta": "^1.81.0",
|
|
49
|
+
"semver": "^7.5.0",
|
|
50
50
|
"spdx-license-list": "^6.6.0",
|
|
51
51
|
"xmlbuilder": "^15.1.1",
|
|
52
52
|
"yargs": "^16.2.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@jsii/dotnet-runtime": "^1.
|
|
56
|
-
"@jsii/java-runtime": "^1.
|
|
57
|
-
"@jsii/go-runtime": "^1.
|
|
58
|
-
"@scope/jsii-calc-lib": "^1.
|
|
55
|
+
"@jsii/dotnet-runtime": "^1.81.0",
|
|
56
|
+
"@jsii/java-runtime": "^1.81.0",
|
|
57
|
+
"@jsii/go-runtime": "^1.81.0",
|
|
58
|
+
"@scope/jsii-calc-lib": "^1.81.0",
|
|
59
59
|
"@types/clone": "^2.1.1",
|
|
60
60
|
"@types/diff": "^5.0.3",
|
|
61
61
|
"@types/commonmark": "^0.27.6",
|
|
62
62
|
"@types/fs-extra": "^9.0.13",
|
|
63
63
|
"@types/semver": "^7.3.13",
|
|
64
64
|
"diff": "^5.1.0",
|
|
65
|
-
"jsii": "^1.
|
|
66
|
-
"jsii-build-tools": "^1.
|
|
65
|
+
"jsii": "^1.81.0",
|
|
66
|
+
"jsii-build-tools": "^1.81.0",
|
|
67
67
|
"jsii-calc": "^3.20.120",
|
|
68
|
-
"pyright": "^1.1.
|
|
68
|
+
"pyright": "^1.1.304"
|
|
69
69
|
},
|
|
70
70
|
"keywords": [
|
|
71
71
|
"jsii",
|