Skip to content

Commit 88cd9ca

Browse files
chore: more aggressively clean local dev caches (typescript-eslint#6197)
1 parent 0c6bea6 commit 88cd9ca

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

packages/ast-spec/src/base/BaseNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import type { AST_NODE_TYPES } from '../ast-node-types';
33
import type { NodeOrTokenData } from './NodeOrTokenData';
44

55
export interface BaseNode extends NodeOrTokenData {
6+
type: AST_NODE_TYPES;
7+
68
/**
79
* The parent node of the current node
810
*
911
* This is added in the @typescript-eslint/types package as ESLint adds it
1012
* while traversing.
1113
*/
1214
// parent?: Node;
13-
14-
type: AST_NODE_TYPES;
1515
}

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"build": "tsc -b tsconfig.build.json",
3434
"postbuild": "downlevel-dts dist _ts3.4/dist",
3535
"clean": "tsc -b tsconfig.build.json --clean",
36-
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf coverage",
36+
"postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf coverage",
3737
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
3838
"generate:lib": "../../node_modules/.bin/ts-node --files --transpile-only ../scope-manager/tools/generate-lib.ts",
3939
"lint": "nx lint",

tools/postinstall.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ void (async function (): Promise<void> {
2121
// Install git hooks
2222
await $`yarn husky install`;
2323

24-
// // Build all the packages ready for use
24+
// Clean any caches that may be invalid now
25+
await $`yarn clean`;
26+
27+
// Build all the packages ready for use
2528
await $`yarn build`;
2629
})();
2730

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy