Skip to content

Commit

Permalink
Add compile-scripts script
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Hanson committed Nov 8, 2016
1 parent 23c73ff commit b8d3643
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ Your package should have this structure:
| foo-tests.ts | This contains sample code which tests the typings. This code does *not* run, but it is type-checked. |
| tsconfig.json | This allows you to run `tsc` within the package. |

Generate these by running `tsc -p scripts`, then `node scripts/new-package.js new-package-name`.
Generate these by running the following from the root directory:

```sh
npm install
npm run compile-scripts
node scripts/new-package.js new-package-name
```

You may edit the `tsconfig.json` to add new files or to add the `"jsx"` compiler option.

DefinitelyTyped members routinely monitor for new PRs, though keep in mind that the number of other PRs may slow things down.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"node": ">= 0.12.0"
},
"scripts": {
"compile-scripts": "tsc -p scripts",
"test": "dt --all",
"changes": "dt --changes",
"lint": "dt --lint",
Expand Down

0 comments on commit b8d3643

Please sign in to comment.