Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.08 KB

DEV.md

File metadata and controls

43 lines (31 loc) · 1.08 KB

npm-react-typescript-template

A template for publishing a React + TypeScript package to npm

How to make the example working

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]