Skip to content

Commit aad9354

Browse files
Added file system package (#2485)
## 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 2664ea9 commit aad9354

File tree

7 files changed

+58
-0
lines changed

7 files changed

+58
-0
lines changed

packages/cursorless-vscode/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,7 @@
12401240
"dependencies": {
12411241
"@cursorless/common": "workspace:*",
12421242
"@cursorless/cursorless-engine": "workspace:*",
1243+
"@cursorless/file-system-common": "workspace:*",
12431244
"@cursorless/vscode-common": "workspace:*",
12441245
"immer": "^10.0.4",
12451246
"itertools": "^2.2.5",

packages/cursorless-vscode/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
{
1414
"path": "../cursorless-engine"
1515
},
16+
{
17+
"path": "../file-system-common"
18+
},
1619
{
1720
"path": "../vscode-common"
1821
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@cursorless/file-system-common",
3+
"version": "1.0.0",
4+
"description": "Package containing common file system utilities",
5+
"main": "./out/index.js",
6+
"scripts": {
7+
"compile:tsc": "tsc --build",
8+
"compile:esbuild": "esbuild ./src/index.ts --sourcemap --format=esm --bundle --packages=external --outfile=./out/index.js",
9+
"compile": "pnpm compile:tsc && pnpm compile:esbuild",
10+
"watch:tsc": "pnpm compile:tsc --watch",
11+
"watch:esbuild": "pnpm compile:esbuild --watch",
12+
"watch": "pnpm run --filter @cursorless/file-system-common --parallel '/^watch:.*/'",
13+
"clean": "rm -rf ./out tsconfig.tsbuildinfo ./dist ./build"
14+
},
15+
"keywords": [],
16+
"author": "",
17+
"license": "MIT",
18+
"type": "module",
19+
"types": "./out/index.d.ts",
20+
"exports": {
21+
".": {
22+
"cursorless:bundler": "./src/index.ts",
23+
"default": "./out/index.js"
24+
}
25+
},
26+
"dependencies": {
27+
"@cursorless/common": "workspace:*"
28+
}
29+
}

packages/file-system-common/src/index.ts

Whitespace-only changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"rootDir": "src",
5+
"outDir": "out"
6+
},
7+
"include": ["src/**/*.ts", "src/**/*.json", "../../typings/**/*.d.ts"],
8+
"references": [
9+
{
10+
"path": "../common"
11+
}
12+
]
13+
}

pnpm-lock.yaml

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

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
{
2727
"path": "./packages/cursorless-vscode-e2e"
2828
},
29+
{
30+
"path": "./packages/file-system-common"
31+
},
2932
{
3033
"path": "./packages/meta-updater"
3134
},

0 commit comments

Comments
 (0)