Skip to content

Commit 25adbca

Browse files
committed
chore: Run pnpm -w fix:meta
1 parent 6bfa544 commit 25adbca

File tree

3 files changed

+29
-11
lines changed

3 files changed

+29
-11
lines changed

packages/generate-examples/package.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,29 @@
66
"scripts": {
77
"build": "tsx src/lib/buildDictionary",
88
"test": "jest",
9-
"test:watch": "jest --watch"
9+
"test:watch": "jest --watch",
10+
"compile:tsc": "tsc --build",
11+
"compile:esbuild": "esbuild ./src/index.ts --sourcemap --format=esm --bundle --packages=external --outfile=./out/index.js",
12+
"compile": "pnpm compile:tsc && pnpm compile:esbuild",
13+
"watch:tsc": "pnpm compile:tsc --watch",
14+
"watch:esbuild": "pnpm compile:esbuild --watch",
15+
"watch": "pnpm run --filter @cursorless/generate-examples --parallel '/^watch:.*/'",
16+
"clean": "rm -rf ./out tsconfig.tsbuildinfo ./dist ./build"
1017
},
1118
"dependencies": {
1219
"fs-extra": "11.1.0",
1320
"prettier": "2.8.4",
1421
"shiki": "0.14.3",
1522
"tsx": "3.12.7",
1623
"yaml": "2.2.1"
24+
},
25+
"license": "MIT",
26+
"main": "./out/index.js",
27+
"types": "./out/index.d.ts",
28+
"exports": {
29+
".": {
30+
"cursorless:bundler": "./src/index.ts",
31+
"default": "./out/index.js"
32+
}
1733
}
1834
}

packages/generate-examples/tsconfig.json

+9-10
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@
99
"noPropertyAccessFromIndexSignature": true,
1010
"noImplicitReturns": true,
1111
"noFallthroughCasesInSwitch": true,
12-
"esModuleInterop": true
12+
"esModuleInterop": true,
13+
"rootDir": "src",
14+
"outDir": "out"
1315
},
1416
"files": [],
15-
"include": [],
16-
"references": [
17-
{
18-
"path": "./tsconfig.lib.json"
19-
},
20-
{
21-
"path": "./tsconfig.spec.json"
22-
}
23-
]
17+
"include": [
18+
"src/**/*.ts",
19+
"src/**/*.json",
20+
"../../typings/**/*.d.ts"
21+
],
22+
"references": []
2423
}

tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
{
2727
"path": "./packages/cursorless-vscode-e2e"
2828
},
29+
{
30+
"path": "./packages/generate-examples"
31+
},
2932
{
3033
"path": "./packages/meta-updater"
3134
},

0 commit comments

Comments
 (0)