From 6b7134bfd229ead4f34b074297c49b55775bf175 Mon Sep 17 00:00:00 2001 From: Peter Donovan Date: Mon, 22 Aug 2022 16:45:09 -0700 Subject: [PATCH] Work around inability to use declaration files. Declaration files can only express a subset of TS. https://github.com/microsoft/TypeScript/issues/35822 --- package.json | 9 ++++----- src/core/README.md | 1 - src/core/internal.ts | 1 - 3 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 src/core/README.md diff --git a/package.json b/package.json index 8ba295feb..3c790a8a5 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,9 @@ "name": "reactor-ts", "version": "0.1.0", "description": "Reactor runtime written in TypeScript", - "main": "lib/index.js", + "main": "lib/core/index.js", + "type": "commonjs", + "types": "src", "dependencies": { "@definitelytyped/header-parser": "0.0.29", "@definitelytyped/typescript-versions": "0.0.29", @@ -36,12 +38,9 @@ "typedoc": "^0.21.4", "typescript": "^4.3.5" }, - "files": [ - "lib" - ], "scripts": { "check-types": "tsc", - "build": "rm -rf dist lib && babel src --out-dir lib --extensions .ts", + "install": "rm -rf lib && babel src --out-dir lib --extensions .ts", "deploy": "npm run build && npm run doc", "doc": "typedoc --exclude \"**/+(example|benchmark|share)/**/*.ts\" --out docs src && touch docs/.nojekyll", "dtslint": "dtslint __tests__/types", diff --git a/src/core/README.md b/src/core/README.md deleted file mode 100644 index 97ca55a0f..000000000 --- a/src/core/README.md +++ /dev/null @@ -1 +0,0 @@ -This directory contains core reactor modules. \ No newline at end of file diff --git a/src/core/internal.ts b/src/core/internal.ts index 60564a36b..2be97ba03 100644 --- a/src/core/internal.ts +++ b/src/core/internal.ts @@ -13,4 +13,3 @@ export * from "./reactor" export * from "./bank" export * from "./event" export * from "./cli" -