From b8d36438b77a3edb539d6fff784d32f014bc3b6d Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Tue, 8 Nov 2016 07:28:35 -0800 Subject: [PATCH] Add compile-scripts script --- README.md | 9 ++++++++- package.json | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c5ca5f4c6..cd3220316d 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index 2bc1eae594..a73561d712 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "node": ">= 0.12.0" }, "scripts": { + "compile-scripts": "tsc -p scripts", "test": "dt --all", "changes": "dt --changes", "lint": "dt --lint",