A template for publishing a React + TypeScript package to npm
Because we want to import the package, as it is in npm (and not with a relative path) we need to link the root project, containing msal-react-tester, to the example.
cd /example
# Install all required packages for the example
npm i
# Then link the project on level up in the folder tree (containing package.json form msal-react-tester)
npm link "../"
# confirm "msal-react-tester" is a link "extraneous"
npm ls
├── @azure/[email protected]
├── @fluentui/[email protected]
├── @testing-library/[email protected]
├── @testing-library/[email protected]
├── @testing-library/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── @types/[email protected]
├── [email protected] extraneous -> ./..
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]