From 066761e615b944b44ee0246de2d4c1d788220b71 Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Tue, 18 Dec 2018 14:20:51 -0800 Subject: [PATCH] Initial work to add support back for local and latest scripts --- .scripts/latest.ts | 3 +++ .scripts/local.ts | 3 +++ package.json | 8 ++++---- 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .scripts/latest.ts create mode 100644 .scripts/local.ts diff --git a/.scripts/latest.ts b/.scripts/latest.ts new file mode 100644 index 0000000..bc71731 --- /dev/null +++ b/.scripts/latest.ts @@ -0,0 +1,3 @@ +import { changeClonedDependenciesTo } from "@ts-common/azure-js-dev-tools"; + +changeClonedDependenciesTo(__dirname, "latest"); \ No newline at end of file diff --git a/.scripts/local.ts b/.scripts/local.ts new file mode 100644 index 0000000..e3d8f5d --- /dev/null +++ b/.scripts/local.ts @@ -0,0 +1,3 @@ +import { changeClonedDependenciesTo } from "@ts-common/azure-js-dev-tools"; + +changeClonedDependenciesTo(__dirname, "local"); \ No newline at end of file diff --git a/package.json b/package.json index c784b3e..a467c86 100644 --- a/package.json +++ b/package.json @@ -41,11 +41,11 @@ ], "license": "MIT", "dependencies": { - "@azure/ms-rest-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.3", "tslib": "^1.9.2" }, "devDependencies": { - "@ts-common/azure-js-dev-tools": "^0.4.9", + "@ts-common/azure-js-dev-tools": "file:C:/Users/daschult/Sources/azure-js-dev-tools", "@types/chai": "^4.1.4", "@types/mocha": "^5.2.1", "@types/node": "^10.9.4", @@ -104,8 +104,8 @@ "test:coverage": "npm run test && opn coverage/index.html", "prepack": "npm install && npm run build", "publish-preview": "npm test && shx rm -rf dist/test && node ./.scripts/publish", - "local": "npm explore @ts-common/azure-js-dev-tools -- npm run local", - "latest": "npm explore @ts-common/azure-js-dev-tools -- npm run latest", + "local": "ts-node ./.scripts/local.ts", + "latest": "ts-node ./.scripts/latest.ts", "check:packagejsonversion": "ts-node ./.scripts/checkPackageJsonVersion.ts" }, "sideEffects": false