Easily enable or disable
typeinpackage.json
yarn add -D @flex-development/toggle-pkg-typeTo install from the GitHub Package Registry, setup a .npmrc or .yarnrc.yml
file to authenticate with the registry.
A Personal Access Token with the read:packages scope is required.
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@flex-development:registry=https://npm.pkg.github.com/
npmRegistries:
//npm.pkg.github.com:
npmAlwaysAuth: true
npmAuthToken: ${GITHUB_TOKEN}
npmScopes:
flex-development:
npmRegistryServer: https://npm.pkg.github.comSee npm-install or Git - Protocols | Yarn for details on requesting a specific branch, commit, or tag.
npm i -D flex-development/toggle-pkg-typeyarn add -D @flex-development/toggle-pkg-type@flex-development/toggle-pkg-type Usage
$ toggle-pkg-type [off|on] [options]
Options
-v, --version Displays current version
-h, --help Displays this message
Examples
$ toggle-pkg-type
$ toggle-pkg-type off
$ toggle-pkg-type onimport toggle from '@flex-development/toggle-pkg-type'
toggle()
toggle('off')
toggle('on)