From 04840298db78656c0ca421ed2b94ab3c9cc07b03 Mon Sep 17 00:00:00 2001 From: Bernardo Sunderhus Date: Fri, 23 Sep 2022 12:39:39 +0000 Subject: [PATCH] chore(react-overflow): update package scaffold --- ...eact-overflow-3f2dd77e-a705-42d4-a878-308d7dd21c53.json | 7 +++++++ .../react-overflow/config/api-extractor.json | 6 +++++- .../react-overflow/config/api-extractor.local.json | 5 ----- packages/react-components/react-overflow/package.json | 5 ++--- packages/react-components/react-overflow/tsconfig.lib.json | 4 ++-- 5 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 change/@fluentui-react-overflow-3f2dd77e-a705-42d4-a878-308d7dd21c53.json delete mode 100644 packages/react-components/react-overflow/config/api-extractor.local.json diff --git a/change/@fluentui-react-overflow-3f2dd77e-a705-42d4-a878-308d7dd21c53.json b/change/@fluentui-react-overflow-3f2dd77e-a705-42d4-a878-308d7dd21c53.json new file mode 100644 index 00000000000000..9e384181244cb2 --- /dev/null +++ b/change/@fluentui-react-overflow-3f2dd77e-a705-42d4-a878-308d7dd21c53.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore: update package scaffold", + "packageName": "@fluentui/react-overflow", + "email": "bernardo.sunderhus@gmail.com", + "dependentChangeType": "none" +} diff --git a/packages/react-components/react-overflow/config/api-extractor.json b/packages/react-components/react-overflow/config/api-extractor.json index eee94ff6de902d..637d9797ae3e6e 100644 --- a/packages/react-components/react-overflow/config/api-extractor.json +++ b/packages/react-components/react-overflow/config/api-extractor.json @@ -1,5 +1,9 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "extends": "@fluentui/scripts/api-extractor/api-extractor.common.v-next.json", - "mainEntryPointFilePath": "/dist/types/index.d.ts" + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "/dist/index.d.ts" + } } diff --git a/packages/react-components/react-overflow/config/api-extractor.local.json b/packages/react-components/react-overflow/config/api-extractor.local.json deleted file mode 100644 index 69e764bce3a592..00000000000000 --- a/packages/react-components/react-overflow/config/api-extractor.local.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "./api-extractor.json", - "mainEntryPointFilePath": "/dist/types/packages/react-components//src/index.d.ts" -} diff --git a/packages/react-components/react-overflow/package.json b/packages/react-components/react-overflow/package.json index 65949fe1f17229..6a123f622ac13c 100644 --- a/packages/react-components/react-overflow/package.json +++ b/packages/react-components/react-overflow/package.json @@ -20,10 +20,9 @@ "lint": "just-scripts lint", "start": "yarn storybook", "test": "jest --passWithNoTests", - "docs": "api-extractor run --config=config/api-extractor.local.json --local", - "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/types/packages/react-components/react-overflow/src && yarn docs", "storybook": "start-storybook", - "type-check": "tsc -b tsconfig.json" + "type-check": "tsc -b tsconfig.json", + "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor" }, "devDependencies": { "@fluentui/eslint-plugin": "*", diff --git a/packages/react-components/react-overflow/tsconfig.lib.json b/packages/react-components/react-overflow/tsconfig.lib.json index ef66992c5a174a..008c602dc19d24 100644 --- a/packages/react-components/react-overflow/tsconfig.lib.json +++ b/packages/react-components/react-overflow/tsconfig.lib.json @@ -3,9 +3,9 @@ "compilerOptions": { "noEmit": false, "lib": ["ES2019", "dom"], - "outDir": "dist", "declaration": true, - "declarationDir": "dist/types", + "declarationDir": "../../../dist/out-tsc/types", + "outDir": "../../../dist/out-tsc", "inlineSources": true, "types": ["static-assets", "environment"] },