]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Use npm to run typescript tests
authorKunal Marwaha <marwahaha@berkeley.edu>
Wed, 15 Mar 2017 23:19:38 +0000 (19:19 -0400)
committerIskren Chernev <iskren.chernev@gmail.com>
Sat, 18 Mar 2017 19:32:43 +0000 (21:32 +0200)
Gruntfile.js
package.json

index 490032f766fb2a1ecd972c552be93b76c57909b3..9f2f12eeb44d80278222b118abcdda9b4329b2d1 100644 (file)
@@ -170,7 +170,7 @@ module.exports = function (grunt) {
                 command: 'cd meteor && meteor publish'
             },
             'typescript-test': {
-                command: 'node_modules/.bin/tsc --project typing-tests'
+                command: 'npm run typescript-test'
             }
         }
 
index 413cfaba99346113a6d8f31480bde9489fea33b6..9f0ff14f62f078a19685c95340899652f920a42f 100644 (file)
@@ -85,6 +85,7 @@
         }
     },
     "scripts": {
+        "typescript-test": "tsc --project typing-tests",
         "test": "grunt test",
         "coverage": "nyc npm test && nyc report",
         "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"