Skip to content

EditPackageJsonOptions

Options for editPackageJson.

Import:

import type { EditPackageJsonOptions } from 'obsidian-dev-utils/script-utils/npm';

Signature:

export interface EditPackageJsonOptions

Properties

PropertyTypeDescription
cwd?stringA current working folder where package.json is located.
shouldSkipIfMissing?booleanIf true, skips editing if the file does not exist.

Links to this page: