Skip to content

Commit

Permalink
chore: more aggressively clean local dev caches (#6197)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Dec 12, 2022
1 parent 0c6bea6 commit 88cd9ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/ast-spec/src/base/BaseNode.ts
Expand Up @@ -3,13 +3,13 @@ import type { AST_NODE_TYPES } from '../ast-node-types';
import type { NodeOrTokenData } from './NodeOrTokenData';

export interface BaseNode extends NodeOrTokenData {
type: AST_NODE_TYPES;

/**
* The parent node of the current node
*
* This is added in the @typescript-eslint/types package as ESLint adds it
* while traversing.
*/
// parent?: Node;

type: AST_NODE_TYPES;
}
2 changes: 1 addition & 1 deletion packages/types/package.json
Expand Up @@ -33,7 +33,7 @@
"build": "tsc -b tsconfig.build.json",
"postbuild": "downlevel-dts dist _ts3.4/dist",
"clean": "tsc -b tsconfig.build.json --clean",
"postclean": "rimraf dist && rimraf _ts3.4 && rimraf coverage",
"postclean": "rimraf dist && rimraf src/generated && rimraf _ts3.4 && rimraf coverage",
"format": "prettier --write \"./**/*.{ts,mts,cts,tsx,js,mjs,cjs,jsx,json,md,css}\" --ignore-path ../../.prettierignore",
"generate:lib": "../../node_modules/.bin/ts-node --files --transpile-only ../scope-manager/tools/generate-lib.ts",
"lint": "nx lint",
Expand Down
5 changes: 4 additions & 1 deletion tools/postinstall.ts
Expand Up @@ -21,7 +21,10 @@ void (async function (): Promise<void> {
// Install git hooks
await $`yarn husky install`;

// // Build all the packages ready for use
// Clean any caches that may be invalid now
await $`yarn clean`;

// Build all the packages ready for use
await $`yarn build`;
})();

Expand Down

0 comments on commit 88cd9ca

Please sign in to comment.