Skip to content

Commit 8f541b7

Browse files
authored
fix(angular): add missing license to package.json (google#632)
1 parent 2f1e6b8 commit 8f541b7

3 files changed

Lines changed: 12 additions & 30 deletions

File tree

renderers/angular/package-lock.json

Lines changed: 6 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renderers/angular/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@a2ui/angular",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
4+
"license": "Apache-2.0",
45
"scripts": {
56
"build": "ng build && node postprocess-build.mjs"
67
},

renderers/angular/postprocess-build.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
import { readFileSync, writeFileSync } from 'fs';
17+
import { readFileSync, writeFileSync, copyFileSync } from 'fs';
1818
import { join } from 'path';
1919

2020
// Locally we depend on the Core package via a relative path so we can test it from source.
@@ -33,13 +33,15 @@ const packageJson = parsePackageJson(packageJsonPath);
3333
if (!packageJson.dependencies['@a2ui/web_core']) {
3434
throw new Error(
3535
'Angular package does not depend on the Core library. ' +
36-
'Either update the package.json or remove this script.',
36+
'Either update the package.json or remove this script.',
3737
);
3838
}
3939

4040
packageJson.dependencies['@a2ui/web_core'] = '^' + coreVersion;
4141
writeFileSync(packageJsonPath, JSON.stringify(packageJson, undefined, 2));
4242

43+
copyFileSync(join(dirname, '../../LICENSE'), join(dirname, './dist/LICENSE'));
44+
4345
function parsePackageJson(path) {
4446
const content = readFileSync(path, 'utf8');
4547
return JSON.parse(content);

0 commit comments

Comments
 (0)