diff --git a/libraries/botbuilder-dialogs-adaptive/package.json b/libraries/botbuilder-dialogs-adaptive/package.json index b0c699765e..be6544484a 100644 --- a/libraries/botbuilder-dialogs-adaptive/package.json +++ b/libraries/botbuilder-dialogs-adaptive/package.json @@ -47,10 +47,8 @@ "node-fetch": "^2.6.7" }, "devDependencies": { - "@types/node-fetch": "^2.5.3" - }, - "resolutions": { - "@microsoft/recognizers-text-number": "1.3.1" + "@types/node-fetch": "^2.5.3", + "rimraf": "^3.0.2" }, "scripts": { "build": "npm-run-all build:src build:tests", @@ -62,7 +60,11 @@ "lint": "eslint . --ext .js,.ts", "postbuild": "downlevel-dts lib _ts3.4/lib --checksum", "test": "yarn build && nyc mocha tests/", - "test:compat": "api-extractor run --verbose" + "test:compat": "api-extractor run --verbose", + "postinstall": "yarn text-suite && yarn date-time && yarn number-with-unit", + "text-suite": "npx rimraf ../@microsoft/recognizers-text-suite/node_modules/@microsoft/recognizers-text-number", + "date-time": "npx rimraf ../@microsoft/recognizers-text-date-time/node_modules/@microsoft/recognizers-text-number", + "number-with-unit": "npx rimraf ../@microsoft/recognizers-text-number-with-unit/node_modules/@microsoft/recognizers-text-number" }, "files": [ "_ts3.4", diff --git a/libraries/botbuilder-dialogs/package.json b/libraries/botbuilder-dialogs/package.json index 114fc51610..880fe4061d 100644 --- a/libraries/botbuilder-dialogs/package.json +++ b/libraries/botbuilder-dialogs/package.json @@ -41,10 +41,8 @@ }, "devDependencies": { "@types/globalize": "^1.5.0", - "line-reader": "^0.4.0" - }, - "resolutions": { - "@microsoft/recognizers-text-number": "1.3.1" + "line-reader": "^0.4.0", + "rimraf": "^3.0.2" }, "scripts": { "build": "tsc -b", @@ -56,7 +54,11 @@ "postbuild": "downlevel-dts lib _ts3.4/lib --checksum", "test": "npm-run-all build test:mocha", "test:mocha": "nyc mocha --recursive --require source-map-support/register tests", - "test:compat": "api-extractor run --verbose" + "test:compat": "api-extractor run --verbose", + "postinstall": "yarn text-suite && yarn date-time && yarn number-with-unit", + "text-suite": "npx rimraf ../@microsoft/recognizers-text-suite/node_modules/@microsoft/recognizers-text-number", + "date-time": "npx rimraf ../@microsoft/recognizers-text-date-time/node_modules/@microsoft/recognizers-text-number", + "number-with-unit": "npx rimraf ../@microsoft/recognizers-text-number-with-unit/node_modules/@microsoft/recognizers-text-number" }, "files": [ "_ts3.4",