-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Change main file to index.ts * Change main to pre-defined index * Add index file at root This is to allow 'slang' imports. The rootDir has been changed to '.' since the index file exists here. In addition, the main file in package.json has been changed to the root index file. * Change index to src/index This is because we will be exporting everything to the /dist directory anyways. * Add types export for tsconfig Allows exporting types for the built files. Also changed rootDir * Fix shadowing name error When building, the Error type returned could also refer to Error defined in node. So, I explicitly defined the return type. * Change properties for publishing - Change main and typings - Add files to be included in publishing - Add pre-publish script * Use types property Typings will be deprecated * Change name and author * Add organization name
- Loading branch information
Showing
4 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,7 +191,7 @@ export class ArrowClosure { | |
} | ||
} | ||
|
||
interface Error { | ||
export interface Error { | ||
status: 'error' | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@remo5000 Actually, is this necessary, if there's already a
build
script that does the same thing? Does the npm publishing toolchain require an exact key in scripts with the name prepublishOnly?