Skip to content

Commit 7781732

Browse files
Added compile clean script (#1556)
## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
1 parent 5df0356 commit 7781732

File tree

13 files changed

+30
-11
lines changed

13 files changed

+30
-11
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"build": "pnpm -r build",
8+
"clean": "pnpm -r clean",
89
"compile": "tsc --build",
910
"fix:eslint": "pnpm lint:ts --fix",
1011
"fix:meta": "pnpm run meta-updater:base && pnpm -r exec prettier --write tsconfig.json package.json",

packages/cheatsheet-local/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"webpack": "pnpm compile && webpack --config ./src/webpack.config.ts",
1111
"build": "pnpm build:prod",
1212
"build:dev": "pnpm webpack --mode=development",
13-
"build:prod": "pnpm webpack --mode=production --node-env=production"
13+
"build:prod": "pnpm webpack --mode=production --node-env=production",
14+
"clean": "rm -rf ./out"
1415
},
1516
"keywords": [],
1617
"author": "",

packages/cheatsheet/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"test": "jest",
88
"compile": "tsc --build",
9-
"watch": "tsc --build --watch"
9+
"watch": "tsc --build --watch",
10+
"clean": "rm -rf ./out"
1011
},
1112
"keywords": [],
1213
"author": "",

packages/common/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "./out/index.js",
66
"scripts": {
77
"compile": "tsc --build",
8-
"watch": "tsc --build --watch"
8+
"watch": "tsc --build --watch",
9+
"clean": "rm -rf ./out"
910
},
1011
"keywords": [],
1112
"author": "",

packages/cursorless-engine/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "./out/index.js",
66
"scripts": {
77
"compile": "tsc --build",
8-
"watch": "tsc --build --watch"
8+
"watch": "tsc --build --watch",
9+
"clean": "rm -rf ./out"
910
},
1011
"keywords": [],
1112
"author": "",

packages/cursorless-org-docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"write-translations": "docusaurus write-translations",
1515
"write-heading-ids": "docusaurus write-heading-ids",
1616
"compile": "tsc --build",
17-
"watch": "tsc --build --watch"
17+
"watch": "tsc --build --watch",
18+
"clean": "rm -rf ./out"
1819
},
1920
"dependencies": {
2021
"@algolia/client-search": "4.15.0",

packages/cursorless-org/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"start": "http-server out -a 127.0.0.1 -p 8080",
1010
"lint": "next lint",
1111
"compile": "tsc --build",
12-
"watch": "tsc --build --watch"
12+
"watch": "tsc --build --watch",
13+
"clean": "rm -rf ./out"
1314
},
1415
"dependencies": {
1516
"@cursorless/cheatsheet": "workspace:*",

packages/cursorless-vscode-e2e/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
},
1313
"scripts": {
1414
"compile": "tsc --build",
15-
"watch": "tsc --build --watch"
15+
"watch": "tsc --build --watch",
16+
"clean": "rm -rf ./out"
1617
},
1718
"keywords": [],
1819
"author": "",

packages/cursorless-vscode/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,8 @@
845845
"hat-adjustment-add": "tsx --conditions=cursorless:bundler src/scripts/hatAssignments/add.ts",
846846
"hat-adjustment-average": "tsx --conditions=cursorless:bundler src/scripts/hatAssignments/add.ts",
847847
"compile": "tsc --build",
848-
"watch": "tsc --build --watch"
848+
"watch": "tsc --build --watch",
849+
"clean": "rm -rf ./out"
849850
},
850851
"devDependencies": {
851852
"@types/chai": "^4.3.3",

packages/meta-updater/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"build": "esbuild ./src/index.ts --conditions=cursorless:bundler --bundle --outfile=dist/index.cjs --format=cjs --platform=node",
88
"compile": "tsc --build",
9-
"watch": "tsc --build --watch"
9+
"watch": "tsc --build --watch",
10+
"clean": "rm -rf ./out"
1011
},
1112
"dependencies": {
1213
"@cursorless/common": "workspace:*",

0 commit comments

Comments
 (0)