Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit new package-related properties in generated C# project file. #169

Merged
merged 11 commits into from
Aug 15, 2018
Merged
3 changes: 2 additions & 1 deletion packages/jsii-calc-base-of-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
}
},
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase"
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase",
"packageId": "Amazon.JSII.Tests.Calculator.BaseOfBase"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To improve testability, perhaps use a different packageId to make sure you don't have lingering assumptions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️

},
"sphinx": {}
}
Expand Down
5 changes: 3 additions & 2 deletions packages/jsii-calc-base-of-base/test/assembly.jsii
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"fingerprint": "I/HF4zJK5eV4ZLmNLDEzShkHVsxngX3K/y2SEYjXsxU=",
"fingerprint": "4UjBtqw6VsSJSEq49KOthIVWab5cZb3gjgvF7DPh2dk=",
"author": {
"name": "Amazon Web Services",
"organization": true,
Expand All @@ -19,7 +19,8 @@
"schema": "jsii/1.0",
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase"
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase",
"packageId": "Amazon.JSII.Tests.Calculator.BaseOfBase"
},
"java": {
"maven": {
Expand Down
3 changes: 2 additions & 1 deletion packages/jsii-calc-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
}
},
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.Base"
"namespace": "Amazon.JSII.Tests.Calculator.Base",
"packageId": "Amazon.JSII.Tests.Calculator.Base"
},
"sphinx": {}
}
Expand Down
8 changes: 5 additions & 3 deletions packages/jsii-calc-base/test/assembly.jsii
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"fingerprint": "b+UZfT/No0vxqTQ1n3lIsyw7olqARDbeGj853lNFoE8=",
"fingerprint": "nY7bYOUnP/71hy4cDOOXssKcfB/Oz1tAhMPMw1QcZyI=",
"author": {
"name": "Amazon Web Services",
"organization": true,
Expand All @@ -12,7 +12,8 @@
"@scope/jsii-calc-base-of-base": {
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase"
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase",
"packageId": "Amazon.JSII.Tests.Calculator.BaseOfBase"
},
"java": {
"maven": {
Expand All @@ -39,7 +40,8 @@
"schema": "jsii/1.0",
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.Base"
"namespace": "Amazon.JSII.Tests.Calculator.Base",
"packageId": "Amazon.JSII.Tests.Calculator.Base"
},
"java": {
"maven": {
Expand Down
3 changes: 2 additions & 1 deletion packages/jsii-calc-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
}
},
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.Lib"
"namespace": "Amazon.JSII.Tests.Calculator.Lib",
"packageId": "Amazon.JSII.Tests.Calculator.Lib"
},
"sphinx": {}
}
Expand Down
11 changes: 7 additions & 4 deletions packages/jsii-calc-lib/test/assembly.jsii
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"fingerprint": "qwjIHOtTOSWOv5qzVdHj4SDgxmnWYsacVvR7BkAVlo8=",
"fingerprint": "TG5iHDURFXP3eGuVFwCU45xgyr1bMUgsWPdXDH55o4Y=",
"author": {
"name": "Amazon Web Services",
"organization": true,
Expand All @@ -14,7 +14,8 @@
"@scope/jsii-calc-base-of-base": {
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase"
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase",
"packageId": "Amazon.JSII.Tests.Calculator.BaseOfBase"
},
"java": {
"maven": {
Expand All @@ -32,7 +33,8 @@
},
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.Base"
"namespace": "Amazon.JSII.Tests.Calculator.Base",
"packageId": "Amazon.JSII.Tests.Calculator.Base"
},
"java": {
"maven": {
Expand All @@ -59,7 +61,8 @@
"schema": "jsii/1.0",
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.Lib"
"namespace": "Amazon.JSII.Tests.Calculator.Lib",
"packageId": "Amazon.JSII.Tests.Calculator.Lib"
},
"java": {
"maven": {
Expand Down
3 changes: 2 additions & 1 deletion packages/jsii-calc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
}
},
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator"
"namespace": "Amazon.JSII.Tests.Calculator",
"packageId": "Amazon.JSII.Tests.Calculator"
},
"sphinx": {}
}
Expand Down
20 changes: 13 additions & 7 deletions packages/jsii-calc/test/assembly.jsii
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"fingerprint": "nIH7ZdupMWqiPid9t2N934g0BDqSHVKuq6mrGdRpuYk=",
"fingerprint": "4hr7d742QVoXg5SKsc71Byf1QABcdQ0HEixthntx9g4=",
"author": {
"name": "Amazon Web Services",
"organization": true,
Expand Down Expand Up @@ -40,7 +40,8 @@
"@scope/jsii-calc-base-of-base": {
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase"
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase",
"packageId": "Amazon.JSII.Tests.Calculator.BaseOfBase"
},
"java": {
"maven": {
Expand All @@ -58,7 +59,8 @@
},
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.Base"
"namespace": "Amazon.JSII.Tests.Calculator.Base",
"packageId": "Amazon.JSII.Tests.Calculator.Base"
},
"java": {
"maven": {
Expand All @@ -80,7 +82,8 @@
"@scope/jsii-calc-base-of-base": {
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase"
"namespace": "Amazon.JSII.Tests.Calculator.BaseOfBase",
"packageId": "Amazon.JSII.Tests.Calculator.BaseOfBase"
},
"java": {
"maven": {
Expand All @@ -98,7 +101,8 @@
},
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.Base"
"namespace": "Amazon.JSII.Tests.Calculator.Base",
"packageId": "Amazon.JSII.Tests.Calculator.Base"
},
"java": {
"maven": {
Expand All @@ -116,7 +120,8 @@
},
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator.Lib"
"namespace": "Amazon.JSII.Tests.Calculator.Lib",
"packageId": "Amazon.JSII.Tests.Calculator.Lib"
},
"java": {
"maven": {
Expand Down Expand Up @@ -146,7 +151,8 @@
"schema": "jsii/1.0",
"targets": {
"dotnet": {
"namespace": "Amazon.JSII.Tests.Calculator"
"namespace": "Amazon.JSII.Tests.Calculator",
"packageId": "Amazon.JSII.Tests.Calculator"
},
"java": {
"maven": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static void HandleParseError(IEnumerable<Error> errors)

static void Generate(Options options)
{
AssemblyGenerator generator = new AssemblyGenerator(options.OutputDirectory, "", "");
AssemblyGenerator generator = new AssemblyGenerator(options.OutputDirectory);

generator.Generate(options.JsiiFile, options.Tarball);
}
Expand Down
Loading