Skip to content

Commit

Permalink
really include promise stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Sep 22, 2021
1 parent 018e380 commit 8eca32a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -11,7 +11,8 @@
"./promise": "./dist/promise.js"
},
"files": [
"dist"
"dist",
"promise.*"
],
"scripts": {
"preinstall": "npx only-allow yarn",
Expand Down
1 change: 1 addition & 0 deletions promise.d.ts
Original file line number Diff line number Diff line change
@@ -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<void>;
Expand Down
1 change: 1 addition & 0 deletions promise.js
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit 8eca32a

Please sign in to comment.