@g123jp/app-ctr-navbar
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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

/@g123jp/app-ctr-navbar/

    Package Sidebar

    Install

    npm i @g123jp/app-ctr-navbar

    Weekly Downloads

    0

    Version

    1.0.6

    License

    none

    Unpacked Size

    2.41 MB

    Total Files

    26

    Last publish

    Collaborators

    • lukaszmoskwactw
    • chinterry
    • huli-ctw
    • hydranger
    • kouhin