Getting Started
First let's create our project:
mkdir my-lib
cd my-lib
Then start the package configuration:
yarn init
note
In order to publish the package, you cannot have the "private"
property set to "true"
. Just remove the property.
Code Style
To ensure standard code formatting, install Prettier:
yarn add --dev prettier @resultadosdigitais/prettier-config
Then add the configuration in package.json
:
{
"prettier": "@resultadosdigitais/prettier-config",
}