jsii-config
v1.105.0
Published
CLI tool for configuring jsii module configuration in package.json
Downloads
264
Readme
jsii-config is a command line utility for configuring jsii enabled modules. It is useful to help convert an existing typescript module to a jsii module. It can also be used to revise existing jsii compiler configuration optiions, such as adding a new language target.
See the jsii documentation for more information on how the configuration options affect jsii's output.
Usage
jsii-config requires an existing package.json with the following fields:
- name
- version
- repository
- main
- author
For details on the content of these fields, see the jsii documentation.
jsii-config can be called via npx.
npx jsii-config
When called without arguments, the resulting jsii-config will be written to the package.json in the current working directory. To specify a package.json file in another location, use the --package-json
or -p
option.
npx jsii-config -p ./some-dir/package.json
jsii-config can be run with the --dry-run
or -d
option to print the resulting config to stdout instead of writing to package.json. This can be useful for viewing the tool's output withou changing your package.json.