]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Remove npx
authorIskren Chernev <iskren.chernev@gmail.com>
Tue, 28 Apr 2020 18:17:08 +0000 (21:17 +0300)
committerIskren Chernev <iskren.chernev@gmail.com>
Tue, 28 Apr 2020 18:17:14 +0000 (21:17 +0300)
npx was used to run a different version of typescript.
* install typescript3 via npm aliases
* update runscripts from npx to node_modules/*/bin/tcs

package-lock.json
package.json

index 174d3c61bbb2bfc711682aaa7e5d2367825b78cc..b44cf43e3e87c1b20fb3853b5c4819334c0d2733 100644 (file)
             "integrity": "sha1-tHXW4N/wv1DyluXKbvn7tccyDx4=",
             "dev": true
         },
+        "typescript3": {
+            "version": "npm:typescript@3.1.6",
+            "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.1.6.tgz",
+            "integrity": "sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA=="
+        },
         "ua-parser-js": {
             "version": "0.7.21",
             "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.21.tgz",
index 13b1899308138b8396c70a3317b54f65d4ebbcae..bd9f2ef276e969924870d3254b25bca4988d8442 100644 (file)
         "load-grunt-tasks": "~3.5.2",
         "node-qunit": "latest",
         "nyc": "latest",
-        "npx": "latest",
         "prettier": "latest",
         "rollup": "~0.67.4",
         "typescript": "^1.8.10",
+        "typescript3": "npm:typescript@^3.1.6",
         "uglify-js": "latest"
     },
     "ender": "./ender.js",
@@ -92,8 +92,8 @@
         }
     },
     "scripts": {
-        "ts3.1-typescript-test": "npx typescript@3.1 --project ts3.1-typing-tests",
-        "typescript-test": "tsc --project typing-tests",
+        "ts3.1-typescript-test": "node_modules/typescript3/bin/tsc --project ts3.1-typing-tests",
+        "typescript-test": "node_modules/typescript/bin/tsc --project typing-tests",
         "test": "grunt test",
         "eslint": "eslint Gruntfile.js tasks src",
         "prettier-check": "prettier --check Gruntfile.js 'tasks/*.js' 'src/**/*.js'",