Skip to content

Commit ecc5bb4

Browse files
committed
Remove check-types
1 parent e18f032 commit ecc5bb4

File tree

5 files changed

+10
-50
lines changed

5 files changed

+10
-50
lines changed

knip.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"*.js"
1010
],
1111
"project": ["perf/**", "registry/**", "scripts/**", "src/**", "test/**"],
12-
"ignore": ["packages/**", "test/npm/node_workspaces/**"]
12+
"ignore": ["packages/**", "test/npm/packages/**"]
1313
}

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818
"check": "run-p -c --aggregate-output check:*",
1919
"check:lint": "eslint --report-unused-disable-directives .",
2020
"check:registry-package-types": "dotenvx -q run -f .env.local -- node ./scripts/check-registry-package-types.js",
21-
"check:tsc": "dotenvx -q run -f .env.local -- node ./scripts/check-types.js",
21+
"check:tsc": "tsc --noEmit",
2222
"check-ci": "pnpm check:lint",
2323
"clean": "run-s -c clean:*",
2424
"clean:cache": "del-cli '**/.cache'",
25-
"clean:node_workspaces": "del-cli 'test/**/node_workspaces'",
2625
"clean:registry": "dotenvx -q run -f .env.local -- pnpm --filter registry run clean",
2726
"clean:node_modules": "del-cli '**/node_modules'",
28-
"clean:temp": "del-cli 'test/**/.tmp-*'",
27+
"clean:test": "del-cli 'test/**/.tmp-*' 'test/**/packages'",
2928
"build": "run-p -c --aggregate-output build:*",
3029
"build:registry": "dotenvx -q run -f .env.local -- pnpm --filter registry run build",
3130
"fix": "pnpm run lint:fix",

scripts/check-types.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

scripts/update-test-npm-package-json.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async function installAndMergePackage(pkgName, pkgVersion, options) {
7878
const hasOverride = existsSync(overridePkgPath)
7979

8080
// Determine the final destination path.
81-
// Packages with Socket overrides go to node_workspaces, others to node_modules.
81+
// Packages with Socket overrides go to test/npm/packages, others to test/npm/node_modules.
8282
const finalPath = hasOverride
8383
? path.join(testNpmNodeWorkspacesPath, socketPkgName)
8484
: path.join(testNpmNodeModulesPath, pkgName)
@@ -377,7 +377,7 @@ async function installMissingPackageTests(packageNames, options) {
377377
: origPkgName
378378
const hasOverride = existsSync(path.join(npmPackagesPath, socketPkgName))
379379

380-
// Packages with overrides are in node_workspaces, others in node_modules.
380+
// Packages with overrides are in test/npm/packages, others in test/npm/node_modules.
381381
const nmPkgPath = hasOverride
382382
? path.join(testNpmNodeWorkspacesPath, socketPkgName)
383383
: path.join(testNpmNodeModulesPath, origPkgName)
@@ -464,7 +464,7 @@ async function resolveDevDependencies(packageNames, options) {
464464
const missingPackages = packageNames.filter(sockRegPkgName => {
465465
const origPkgName = resolveOriginalPackageName(sockRegPkgName)
466466
// Missing packages can occur if the script is stopped part way through.
467-
// Check both node_modules and node_workspaces locations.
467+
// Check both node_modules and test/npm/packages locations.
468468
const hasOverride = existsSync(path.join(npmPackagesPath, sockRegPkgName))
469469
const pkgPath = hasOverride
470470
? path.join(testNpmNodeWorkspacesPath, sockRegPkgName)
@@ -555,7 +555,7 @@ async function linkPackages(packageNames, options) {
555555
return
556556
}
557557

558-
// Check if it's already a symlink to node_workspaces (already processed).
558+
// Check if it's already a symlink to test/npm/packages (already processed).
559559
if (isSymLinkSync(nmPkgPath)) {
560560
const realPath = realpathSync(nmPkgPath)
561561
if (realPath === path.join(testNpmNodeWorkspacesPath, sockRegPkgName)) {
@@ -737,7 +737,7 @@ async function linkPackages(packageNames, options) {
737737

738738
async function cleanupNodeWorkspaces(linkedPackageNames, options) {
739739
// Cleanup up override packages and move them from
740-
// test/npm/node_modules/ to test/npm/node_workspaces/
740+
// test/npm/node_modules to test/npm/packages
741741
const { spinner } = { __proto__: null, ...options }
742742
spinner?.start(`Cleaning up ${relTestNpmPath} workspaces...`)
743743

@@ -784,7 +784,7 @@ async function cleanupNodeWorkspaces(linkedPackageNames, options) {
784784
// Fallback to fs.rm if trash fails (e.g., for .github directories on macOS).
785785
await safeRemove(unnecessaryPaths, { spinner })
786786
}
787-
// Move override package from test/npm/node_modules/ to test/npm/node_workspaces/
787+
// Move override package from test/npm/node_modules to test/npm/packages
788788
await move(srcPath, destPath, { overwrite: true })
789789
},
790790
{ concurrency: DEFAULT_CONCURRENCY }

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
"noUncheckedSideEffectImports": true
3838
},
3939
"include": ["**/*.ts"],
40-
"exclude": ["**/node_modules/**/*", "test/**/node_workspaces/**/*"]
40+
"exclude": ["**/node_modules/**/*", "test/**/packages/**/*"]
4141
}

0 commit comments

Comments
 (0)