Skip to content

Commit 671b488

Browse files
chore: Ensure LICENSE and NOTICE are copied to lib (#353)
1 parent 69b272a commit 671b488

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"build:src:js": "tsc -p tsconfig.json --inlineSources --sourceMap",
3131
"build:src:css": "node scripts/compile-styles.js",
3232
"build:src:test-utils": "node scripts/test-utils.js",
33-
"build:src:copy": "cp README.md lib/components/",
33+
"build:src:copy": "cp README.md NOTICE LICENSE lib/components/",
3434
"build:src:docs": "node scripts/docs.js",
3535
"build:src:environment": "node scripts/environment",
3636
"build:themeable": "node scripts/themeable-source",

src/__tests__/utils.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ const definitionsDir = path.resolve(__dirname, "../../lib/components/internal/ap
1111
export function getAllComponents(): string[] {
1212
return fs
1313
.readdirSync(componentsDir)
14-
.filter((name) => name !== "internal" && name !== "test-utils" && !name.includes(".") && !name.includes("LICENSE"));
14+
.filter(
15+
(name) =>
16+
name !== "internal" &&
17+
name !== "test-utils" &&
18+
!name.includes(".") &&
19+
!name.includes("LICENSE") &&
20+
!name.includes("NOTICE"),
21+
);
1522
}
1623

1724
export function requireComponentDefinition(componentName: string) {

0 commit comments

Comments
 (0)