From 2f6d3f3edf5da2a1523a79867b4a9e57d2233fc6 Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Tue, 8 Nov 2022 14:22:29 -0500 Subject: [PATCH 1/2] chore(tsconfig): exclude playwright test infra from build --- tsconfig.json | 13 +++---------- tsconfig.spec.json | 4 ++++ 2 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 tsconfig.spec.json diff --git a/tsconfig.json b/tsconfig.json index 1e6fad4e5..c103c8b7d 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,10 +6,7 @@ "allowUnreachableCode": false, "declaration": false, "experimentalDecorators": true, - "lib": [ - "dom", - "es2017" - ], + "lib": ["dom", "es2017"], "moduleResolution": "node", "module": "esnext", "target": "es2017", @@ -21,10 +18,6 @@ "@utils/*": ["src/utils/*"] } }, - "include": [ - "src" - ], - "exclude": [ - "node_modules" - ] + "include": ["src"], + "exclude": ["node_modules", "src/utils/test"] } diff --git a/tsconfig.spec.json b/tsconfig.spec.json new file mode 100644 index 000000000..86bad6f7d --- /dev/null +++ b/tsconfig.spec.json @@ -0,0 +1,4 @@ +{ + "extends": "tsconfig.json", + "exclude": ["node_modules"] +} From a902821a9c4ca873dfadbd3125ef00742069c4d2 Mon Sep 17 00:00:00 2001 From: Sean Perkins Date: Tue, 8 Nov 2022 14:29:10 -0500 Subject: [PATCH 2/2] fix: don't copy test svg assets to collection --- scripts/collection-copy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/collection-copy.ts b/scripts/collection-copy.ts index 462cfd653..22c34640d 100644 --- a/scripts/collection-copy.ts +++ b/scripts/collection-copy.ts @@ -9,6 +9,8 @@ async function collectionCopy(rootDir: string) { // we don't to copy the src svgs to collection await fs.remove(join(rootDir, 'dist', 'collection', 'svg')); + // We don't want to copy the test svg assets to collection + await fs.remove(join(rootDir, 'dist', 'collection', 'components', 'test')); const cePackageDir = join(rootDir, 'components'); const cePackageJsonPath = join(cePackageDir, 'package.json'); @@ -26,7 +28,7 @@ async function collectionCopy(rootDir: string) { private: true, }; await fs.writeFile(cePackageJsonPath, JSON.stringify(cePackageJson, null, 2)); - + /** * TODO: Remove this in Ionicons v6.0 * Stencil 2 removed the legacy loader,