diff --git a/.gitignore b/.gitignore index 693133ba2a..1dc6b5c9c3 100644 --- a/.gitignore +++ b/.gitignore @@ -316,3 +316,6 @@ coverage # typescript assets *.tsbuildinfo *.js.map + +# tsup vendors folders +libraries/**/vendors diff --git a/eslint.config.cjs b/eslint.config.cjs index 0fc0670e19..644791d452 100644 --- a/eslint.config.cjs +++ b/eslint.config.cjs @@ -38,6 +38,7 @@ module.exports = [ '**/*.lu', '**/*.dialog', '**/*.js.map', + '**/vendors' ], }, diff --git a/libraries/botbuilder-azure-blobs/package.json b/libraries/botbuilder-azure-blobs/package.json index a24a28fb2e..d7aca69f02 100644 --- a/libraries/botbuilder-azure-blobs/package.json +++ b/libraries/botbuilder-azure-blobs/package.json @@ -40,7 +40,7 @@ "clean": "rimraf _ts3.4 lib vendors tsconfig.tsbuildinfo", "depcheck": "depcheck --config ../../.depcheckrc", "lint": "eslint . --config ../../eslint.config.cjs", - "prebuild": "tsup ../../node_modules/p-map/*.js --format cjs --dts --out-dir vendors/p-map --clean --sourcemap", + "prebuild": "tsup ./node_modules/p-map/*.js --format cjs --dts --out-dir vendors/p-map --clean --sourcemap", "postbuild": "downlevel-dts lib _ts3.4/lib --checksum", "test": "yarn build && nyc mocha --check-leaks tests", "test:compat": "api-extractor run --verbose" diff --git a/libraries/botbuilder-azure/package.json b/libraries/botbuilder-azure/package.json index 276db25f1d..7187fc5e02 100644 --- a/libraries/botbuilder-azure/package.json +++ b/libraries/botbuilder-azure/package.json @@ -50,7 +50,7 @@ "clean": "rimraf _ts3.4 lib vendors tsconfig.tsbuildinfo", "depcheck": "depcheck --config ../../.depcheckrc", "lint": "eslint .", - "prebuild": "tsup ../../node_modules/p-map/*.js --format cjs --dts --out-dir vendors/p-map --clean --sourcemap", + "prebuild": "tsup ./node_modules/p-map/*.js --format cjs --dts --out-dir vendors/p-map --clean --sourcemap", "postbuild": "downlevel-dts lib _ts3.4/lib --checksum", "test": "yarn build && nyc mocha tests/", "test:compat": "api-extractor run --verbose" diff --git a/package.json b/package.json index 2352fddc46..e3cf19160c 100644 --- a/package.json +++ b/package.json @@ -15,11 +15,15 @@ ], "nohoist": [ "**/@types/selenium-webdriver", - "botbuilder/filenamify" + "botbuilder/filenamify", + "botbuilder-azure/p-map", + "botbuilder-azure-blobs/p-map" ], "nohoistComments": { "**/@types/selenium-webdriver": "This package is excluded from the root @types folder as it requires ES2015+, whereas some BotBuilder libraries support ES5+.", - "botbuilder/filenamify": "This package is excluded because it's compiled as CJS by tsup as it's ESM-only." + "botbuilder/filenamify": "This package is excluded because it's compiled as CJS by tsup as it's ESM-only.", + "botbuilder-azure/p-map": "This package is excluded because it's compiled as CJS by tsup as it's ESM-only.", + "botbuilder-azure-blobs/p-map": "This package is excluded because it's compiled as CJS by tsup as it's ESM-only." } }, "scripts": {