1.21.0 • Published 8 months ago

@comet/upgrade v1.21.0

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
8 months ago

@comet/upgrade

Upgrade scripts for Comet DXP

Usage

npx @comet/upgrade <target-version>

For example:

npx @comet/upgrade v4

You can also run a single upgrade script by providing the path to the script:

npx @comet/upgrade v7/hide-graphql-field-suggestions.ts

Create a new upgrade script

  1. Start the development process:

    npm start
  2. Add a new script for the version you want to upgrade to, for instance, src/v4/change-something.ts. The script must have a function as default export that performs the changes. See src/v4/remove-clear-types-script.ts for an example.

  3. Test the upgrade script

    Navigate to the project you want to upgrade:

    cd project-you-want-to-upgrade/

    Create a new branch to test the script:

    git checkout -b upgrade-comet-to-4

    Execute the local @comet/upgrade binary:

    ../comet-upgrade/bin/index.js 4 # comet-upgrade directory

    Verify the changes in your project. If something is not as expected, adapt the upgrade script accordingly and then run it again on a clean state:

    git reset --hard HEAD
    
    ../comet-upgrade/bin/index.js 4
1.21.0

8 months ago

1.20.0

8 months ago

1.19.0

8 months ago

1.18.0

8 months ago

1.17.0

8 months ago

1.15.0

12 months ago

1.14.0

12 months ago

1.13.0

12 months ago

1.12.0

12 months ago

1.16.0

11 months ago

1.9.0

12 months ago

1.8.0

1 year ago

1.11.0

12 months ago

1.10.0

12 months ago

1.7.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.2.0

1 year ago

1.3.0

1 year ago

1.1.0

2 years ago