Skip to content
lilliCao edited this page Apr 24, 2020 · 16 revisions

TypeScript Merger

TS-Merger is a tool designed to parse and merge a base and a patch file into one single file depending on the merge strategy defined.

Currently, the merger supports the following AST node types:

  1. ImportDeclaration

  2. ClassDeclaration

  3. Constructor

  4. MethodDeclaration

  5. PropertyDeclaration

  6. Decorator

  7. Body (no merging but conflict handling)

  8. FunctionDeclaration

  9. InterfaceDeclaration

  10. PropertySignature

Requirements

  1. Node 6.9.2 or higher

  2. Webpack

    npm install -g webpack
  3. yarn

    npm install -g yarn

Deploy new version to npm

  1. be sure to have the permission to publish a new version, otherwise please contact admin of ts-merger

  2. change version in package.json to the release version

  3. yarn install

  4. yarn login

  5. yarn publish

  6. commit new code change to the ts-merger repo (master)

Overview

Development

Clone this wiki locally