Add compile-scripts script

This commit is contained in:
Andy Hanson
2016-11-08 07:28:35 -08:00
parent 23c73fff46
commit b8d36438b7
2 changed files with 9 additions and 1 deletions

View File

@@ -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.

View File

@@ -15,6 +15,7 @@
"node": ">= 0.12.0"
},
"scripts": {
"compile-scripts": "tsc -p scripts",
"test": "dt --all",
"changes": "dt --changes",
"lint": "dt --lint",