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')