From 8eca32a38467e81f53a849560e936ca36489c8df Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Wed, 22 Sep 2021 12:36:58 -0400 Subject: [PATCH] really include promise stuff --- package.json | 5 +++-- promise.d.ts | 1 + promise.js | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 903ecb1..6bf0384 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shelljs-live", - "version": "0.0.3", + "version": "0.0.4", "repository": "https://github.com/arshaw/shelljs-live.git", "author": "Adam Shaw", "license": "MIT", @@ -11,7 +11,8 @@ "./promise": "./dist/promise.js" }, "files": [ - "dist" + "dist", + "promise.*" ], "scripts": { "preinstall": "npx only-allow yarn", diff --git a/promise.d.ts b/promise.d.ts index 1e0af2f..9bf039f 100644 --- a/promise.d.ts +++ b/promise.d.ts @@ -1,6 +1,7 @@ /* This file is included as a HACK for export maps not working in TypeScript https://github.com/microsoft/TypeScript/issues/33079 +After removing this hack, remove the line in package.json::files */ import { Options } from './dist/utils'; declare function live(command: string | string[], options?: Options): Promise; diff --git a/promise.js b/promise.js index 9da13fb..1fdbd3a 100644 --- a/promise.js +++ b/promise.js @@ -1,4 +1,5 @@ /* See note in promise.d.ts. A JavaScript file is required too. +After removing this hack, remove the line in package.json::files */ module.exports = require('./dist/promise')