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, 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"] +}