Skip to content

Commit

Permalink
add scripts to remove old version of recognizers-text-number
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Jan 16, 2024
1 parent dec4605 commit 5fee426
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions libraries/botbuilder-dialogs-adaptive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
12 changes: 7 additions & 5 deletions libraries/botbuilder-dialogs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 5fee426

Please sign in to comment.