Skip to content

Commit

Permalink
chore: Migrate react-avatar to use new build (#24969)
Browse files Browse the repository at this point in the history
* chore: Migrate react-avatar to use new build

Migrates the react-avatar package to use the new build experience
introduced in #23369

* changefile
  • Loading branch information
ling1726 authored Sep 28, 2022
1 parent f45099d commit 1333dab
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: Migrate react-avatar to use new build",
"packageName": "@fluentui/react-avatar",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -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": "<projectFolder>/dist/types/index.d.ts"
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "<projectFolder>/dist/index.d.ts"
}
}

This file was deleted.

9 changes: 4 additions & 5 deletions packages/react-components/react-avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
"just": "just-scripts",
"lint": "just-scripts lint",
"start": "yarn storybook",
"e2e": "yarn cypress run --component",
"e2e:local": "yarn cypress open --component",
"e2e": "cypress run --component",
"e2e:local": "cypress open --component",
"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-avatar/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": "*",
Expand Down
3 changes: 3 additions & 0 deletions packages/react-components/react-avatar/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
},
{
"path": "./.storybook/tsconfig.json"
},
{
"path": "./e2e/tsconfig.json"
}
]
}
4 changes: 2 additions & 2 deletions packages/react-components/react-avatar/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
},
Expand Down

0 comments on commit 1333dab

Please sign in to comment.