Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

omni-utils

leanne70713MIT1.0.5TypeScript support: included

Publishing module 1. Create repository 2. Create an account in https://www.npmjs.com/ 3. Set tsconfig.json ` { "compilerOptions": { "target": "es5", "module": "commonjs", "lib": ["es2017", "es7", "es6", "dom"], "declaration": true,

readme

omni-utils

Publishing module

  1. Create repository
  2. Create an account in https://www.npmjs.com/
  3. Set tsconfig.json
    {
    "compilerOptions": {
     "target": "es5",
     "module": "commonjs",
     "lib": ["es2017", "es7", "es6", "dom"],
     "declaration": true,
     "outDir": "dist",
     "strict": true,
     "esModuleInterop": true
    },
    "exclude": [
     "node_modules",
     "dist"
    ]
    }
  4. Set .npmignore lib
  5. Set .gitignore
    node_modules
    dist/
  6. Create lib folder, add functions or exports in index.ts
  7. Build package npm run build
  8. Publishing and patching:
    npm login
    npm publish
    npm version patch -m "Version <version> - <message>"

Note

  • Ensure changes have been pushed
  • Build project before publishing

Version structure

Version <step>.<feature>.<patch>

How to use package

Installation

npm install omni-utils

Updating package

npm update omni-utils