Skip to content

Commit cafe8e6

Browse files
authored
chore: exclude playwright test infra and test svg assets from collection output (#1143)
1 parent 6685892 commit cafe8e6

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

scripts/collection-copy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ async function collectionCopy(rootDir: string) {
99

1010
// we don't to copy the src svgs to collection
1111
await fs.remove(join(rootDir, 'dist', 'collection', 'svg'));
12+
// We don't want to copy the test svg assets to collection
13+
await fs.remove(join(rootDir, 'dist', 'collection', 'components', 'test'));
1214

1315
const cePackageDir = join(rootDir, 'components');
1416
const cePackageJsonPath = join(cePackageDir, 'package.json');
@@ -26,7 +28,7 @@ async function collectionCopy(rootDir: string) {
2628
private: true,
2729
};
2830
await fs.writeFile(cePackageJsonPath, JSON.stringify(cePackageJson, null, 2));
29-
31+
3032
/**
3133
* TODO: Remove this in Ionicons v6.0
3234
* Stencil 2 removed the legacy loader,

tsconfig.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
"allowUnreachableCode": false,
77
"declaration": false,
88
"experimentalDecorators": true,
9-
"lib": [
10-
"dom",
11-
"es2017"
12-
],
9+
"lib": ["dom", "es2017"],
1310
"moduleResolution": "node",
1411
"module": "esnext",
1512
"target": "es2017",
@@ -21,10 +18,6 @@
2118
"@utils/*": ["src/utils/*"]
2219
}
2320
},
24-
"include": [
25-
"src"
26-
],
27-
"exclude": [
28-
"node_modules"
29-
]
21+
"include": ["src"],
22+
"exclude": ["node_modules", "src/utils/test"]
3023
}

tsconfig.spec.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "tsconfig.json",
3+
"exclude": ["node_modules"]
4+
}

0 commit comments

Comments
 (0)