From 60f50f4c0e76677a12fd57f420a62491fb389988 Mon Sep 17 00:00:00 2001 From: Chris Holt Date: Fri, 13 Jan 2023 11:42:31 -0800 Subject: [PATCH] fix clean file and ensure rimraf is enumerated as dependency (#26350) --- ...eb-components-19128575-ce2e-40b1-8a3b-8334eb585f40.json | 7 +++++++ packages/web-components/build/{clean.js => clean.cjs} | 0 packages/web-components/package.json | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 change/@fluentui-web-components-19128575-ce2e-40b1-8a3b-8334eb585f40.json rename packages/web-components/build/{clean.js => clean.cjs} (100%) diff --git a/change/@fluentui-web-components-19128575-ce2e-40b1-8a3b-8334eb585f40.json b/change/@fluentui-web-components-19128575-ce2e-40b1-8a3b-8334eb585f40.json new file mode 100644 index 00000000000000..870dde0ba9b23b --- /dev/null +++ b/change/@fluentui-web-components-19128575-ce2e-40b1-8a3b-8334eb585f40.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "update clean file to .cjs and ensure rimraf is in dependency tree", + "packageName": "@fluentui/web-components", + "email": "chhol@microsoft.com", + "dependentChangeType": "none" +} diff --git a/packages/web-components/build/clean.js b/packages/web-components/build/clean.cjs similarity index 100% rename from packages/web-components/build/clean.js rename to packages/web-components/build/clean.cjs diff --git a/packages/web-components/package.json b/packages/web-components/package.json index 3bed54f6654c09..074a49770078f1 100644 --- a/packages/web-components/package.json +++ b/packages/web-components/package.json @@ -32,7 +32,7 @@ "scripts": { "tsc": "tsc", "api-extractor": "api-extractor", - "clean": "node ./build/clean.js dist", + "clean": "node ./build/clean.cjs dist", "doc": "api-extractor run --local", "doc:ci": "yarn doc", "build": "tsc -p ./tsconfig.json && rollup -c && yarn doc", @@ -84,6 +84,7 @@ "karma-webpack": "5.0.0", "mocha": "7.2.0", "@microsoft/api-extractor": "7.31.2", + "rimraf": "^3.0.2", "typescript": "4.7.4" }, "dependencies": {