Skip to content

Commit 645ce54

Browse files
authored
feat: assert types and modules resolution using @arethetypeswrong/cli (#515)
1 parent 7536387 commit 645ce54

File tree

15 files changed

+695
-20
lines changed

15 files changed

+695
-20
lines changed

package-lock.json

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

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@
1818
"scripts": {
1919
"build": "tsc --build",
2020
"test": "npm run test --ws --if-present",
21-
"lint": "npx eslint workspaces",
21+
"test-types": "npm run test-types --ws --if-present",
22+
"lint": "eslint workspaces",
2223
"ci:publish": "changeset publish",
2324
"ci:version": "changeset version",
2425
"clean": "clear-ts-build"
2526
},
2627
"author": "NodeSecure",
2728
"license": "MIT",
2829
"devDependencies": {
30+
"@arethetypeswrong/cli": "^0.18.2",
2931
"@changesets/changelog-github": "^0.5.1",
3032
"@changesets/cli": "^2.29.4",
3133
"@openally/config.eslint": "^2.1.0",

workspaces/conformance/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"build": "tsc -b",
1313
"prepublishOnly": "npm run build",
1414
"test-only": "tsx --test ./test/**/*.spec.ts",
15-
"test": "c8 -r html npm run test-only",
15+
"test-types": "attw --pack . --profile esm-only",
16+
"test": "c8 -r html npm run test-only && npm run test-types",
1617
"spdx:refresh": "node ./scripts/fetchSpdxLicenses.js"
1718
},
1819
"files": [

workspaces/contact/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"build": "tsc -b",
1313
"prepublishOnly": "npm run build",
1414
"test-only": "tsx --test ./test/**/*.spec.ts",
15-
"test": "c8 -r html npm run test-only",
16-
"test:tsd": "npm run build && tsd"
15+
"test-types": "npm run build && tsd && attw --pack . --profile esm-only",
16+
"test": "c8 -r html npm run test-only && npm run test-types"
1717
},
1818
"files": [
1919
"dist"

workspaces/flags/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"build": "tsc & cp -R ./src/flags ./dist/flags",
77
"prepublishOnly": "npm run build",
88
"test-only": "tsx --test \"./test/**/*.spec.ts\"",
9-
"test": "c8 -r html npm run test-only",
9+
"test-types": "attw --pack . --profile esm-only",
10+
"test": "c8 -r html npm run test-only && npm run test-types",
1011
"generateFlags": "tsx scripts/generateFlags.js"
1112
},
1213
"keywords": [

workspaces/fs-walk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"build": "tsc",
1313
"prepublishOnly": "npm run build",
1414
"test-only": "tsx --test \"./test/**/*.spec.ts\"",
15-
"test": "npm run test-only",
16-
"coverage": "c8 -r html npm test"
15+
"test-types": "attw --pack . --profile esm-only",
16+
"test": "c8 -r html npm run test-only && npm run test-types"
1717
},
1818
"repository": {
1919
"type": "git",

workspaces/github/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"build": "tsc",
1010
"prepublishOnly": "npm run build",
1111
"test-only": "tsx --test \"./test/**/*.spec.ts\"",
12-
"test": "c8 -r html npm run test-only"
12+
"test-types": "attw --pack . --profile esm-only",
13+
"test": "c8 -r html npm run test-only && npm run test-types"
1314
},
1415
"repository": {
1516
"type": "git",
@@ -40,4 +41,4 @@
4041
"engines": {
4142
"node": ">=20"
4243
}
43-
}
44+
}

workspaces/gitlab/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"build": "tsc",
1010
"prepublishOnly": "npm run build",
1111
"test-only": "tsx --test \"./test/**/*.spec.ts\"",
12-
"test": "c8 -r html npm run test-only"
12+
"test-types": "attw --pack . --profile esm-only",
13+
"test": "c8 -r html npm run test-only && npm run test-types"
1314
},
1415
"keywords": [
1516
"NodeSecure",

workspaces/i18n/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "tsc",
99
"prepublishOnly": "npm run build",
1010
"test-only": "tsx --test ./test/**/*.spec.ts",
11-
"test": "c8 -r html npm run test-only",
11+
"test-types": "attw --pack . --profile esm-only",
12+
"test": "c8 -r html npm run test-only && npm run test-types",
1213
"build:documentation": "tsx ./scripts/buildDocumentation.ts"
1314
},
1415
"repository": {

workspaces/mama/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"build": "tsc -b",
1010
"prepublishOnly": "npm run build",
1111
"test-only": "tsx --test ./test/**/*.spec.ts",
12-
"test:tsd": "npm run build && tsd",
13-
"test": "c8 -r html npm run test-only && npm run test:tsd"
12+
"test-types": "npm run build && tsd && attw --pack . --profile esm-only",
13+
"test": "c8 -r html npm run test-only && npm run test-types"
1414
},
1515
"files": [
1616
"dist"

0 commit comments

Comments
 (0)