From 25adbcadd01bd6de7aae2a75d45340150d3219b5 Mon Sep 17 00:00:00 2001 From: Trillium Smith Date: Mon, 25 Mar 2024 15:41:03 -0700 Subject: [PATCH] chore: Run pnpm -w fix:meta --- packages/generate-examples/package.json | 18 +++++++++++++++++- packages/generate-examples/tsconfig.json | 19 +++++++++---------- tsconfig.json | 3 +++ 3 files changed, 29 insertions(+), 11 deletions(-) diff --git a/packages/generate-examples/package.json b/packages/generate-examples/package.json index fa9701bbbdf..35f73d691c9 100644 --- a/packages/generate-examples/package.json +++ b/packages/generate-examples/package.json @@ -6,7 +6,14 @@ "scripts": { "build": "tsx src/lib/buildDictionary", "test": "jest", - "test:watch": "jest --watch" + "test:watch": "jest --watch", + "compile:tsc": "tsc --build", + "compile:esbuild": "esbuild ./src/index.ts --sourcemap --format=esm --bundle --packages=external --outfile=./out/index.js", + "compile": "pnpm compile:tsc && pnpm compile:esbuild", + "watch:tsc": "pnpm compile:tsc --watch", + "watch:esbuild": "pnpm compile:esbuild --watch", + "watch": "pnpm run --filter @cursorless/generate-examples --parallel '/^watch:.*/'", + "clean": "rm -rf ./out tsconfig.tsbuildinfo ./dist ./build" }, "dependencies": { "fs-extra": "11.1.0", @@ -14,5 +21,14 @@ "shiki": "0.14.3", "tsx": "3.12.7", "yaml": "2.2.1" + }, + "license": "MIT", + "main": "./out/index.js", + "types": "./out/index.d.ts", + "exports": { + ".": { + "cursorless:bundler": "./src/index.ts", + "default": "./out/index.js" + } } } diff --git a/packages/generate-examples/tsconfig.json b/packages/generate-examples/tsconfig.json index 01d978e7e6b..005ffac406d 100644 --- a/packages/generate-examples/tsconfig.json +++ b/packages/generate-examples/tsconfig.json @@ -9,16 +9,15 @@ "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, - "esModuleInterop": true + "esModuleInterop": true, + "rootDir": "src", + "outDir": "out" }, "files": [], - "include": [], - "references": [ - { - "path": "./tsconfig.lib.json" - }, - { - "path": "./tsconfig.spec.json" - } - ] + "include": [ + "src/**/*.ts", + "src/**/*.json", + "../../typings/**/*.d.ts" + ], + "references": [] } diff --git a/tsconfig.json b/tsconfig.json index e05ff589f5c..9a3c682a17a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,6 +26,9 @@ { "path": "./packages/cursorless-vscode-e2e" }, + { + "path": "./packages/generate-examples" + }, { "path": "./packages/meta-updater" },