1.0.6 • Published 2 years ago

@g123jp/app-ctr-navbar v1.0.6

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

react-ts-package-template

A react + ts package template with rollup,

feel free using it to create a new UI package.

(ref to: tree-shakable-component-library)

links:

used dependencies

Important note

Deploying

  1. change version in package.json file
  2. run yarn build
  3. replace all the code in a types-package/index.d.ts file with the following code.
import React from 'react';

import { G123NavigationSideBarProps } from './type';

export declare function renderComponent(
  props: G123NavigationSideBarProps,
): void;

declare global {
  namespace G123NavigationSideBar {
    const NavigationSideBar: React.NamedExoticComponent<G123NavigationSideBarProps>;
    function renderComponent(props: G123NavigationSideBarProps): void;
    function login(jwt: string): void;
  }
}
  1. run
npm publish --access public --tag latest --registry https://registry.npmjs.org/ --package-lock false --json