Skip to content

Separated validation concerns

Compare
Choose a tag to compare
@ijlee2 ijlee2 released this 10 Jun 13:37
· 157 commits to main since this release
82af4ff

Updated packages

  • @codemod-utils/json (#16)

Migration guide for updating @codemod-utils/json from 0.1.2 to 0.2.0

In @codemod-utils/[email protected], readPackageJson checked whether package.json has the fields name and version. In 0.2.0, you will need to call validatePackageJson explicitly (opt-in).

import { readPackageJson, validatePackageJson } from '@codemod-utils/json';

const packageJson = readPackageJson({
  projectRoot: '__projectRoot__',
});

validatePackageJson(packageJson);

const { name, version } = packageJson;

Latest versions

Name Version
@codemod-utils/ast 0.1.1
@codemod-utils/blueprints 0.1.2
@codemod-utils/files 0.3.1
@codemod-utils/json 0.2.0
@codemod-utils/tests 0.1.2