Optional
autoOptional
binOptional
binOptional
binsOptional
cwdCurrent working directory
Optional
defaultOptional
defaultOptional
developmentWhere should exports point to in your development packageJson file
By default, to let you develop locally with the same code as you'd publish, the development packageJson targets the outDir where your built package is supposed to be. This expects you to build the package before running it. (Turbo can orchestrate this for you!)
But if you wish your local packages to use the source code directly you can set this to 'source' and then exports will point inside your 'src' folder. This can be useful for packages that are not transpiled and are supposed to be used as is.
Types always point to the source dir so the typescript LSP can provide real-time feedback in other packages too without having to rebuild all the time!
Optional
disabledIf left empty, all features will remain enabled. Takes precedence over 'enabledFeatures'
Optional
dryActual operations are turned off when dry
is set to true.
For example Post requests won't be made, filesystem operations won't write, but still send get requests and read from filesystem.
Optional
dtsGenerate dts definitions using https://github.com/qmhc/vite-plugin-dts
Optional
enabledIf left empty, all features will remain enabled. Except the disabled ones
Optional
enabledIf a bin's name matches with an entry here (which is by default every NPM hook, 'postinstall' 'prebuild' etc.) then it will be automatically added to your packageJson file's scripts. To not interfere with development, hooks invoked during install are disabled for the source packageJson and are only avilable in the distributed packageJson.
Optional
exportOptional
exportWhether or not automatically export the package.json file too.
Note: If you want to refer to the actual distributed package.json in your scripts, you should import it through an export and not use a direct json import, your bundler will bundle your compile time package.json in, and your users will end up using that information, not what was published.
Optional
exportsOptional
exportsOptional
fallbackOptional
keysOptional
loggerAn optional Logger target.
Optional
logA minimum logLevel
Optional
mandatoryOptional
outThe expected output directory relative to the package's directory.
Optional
overrideOptional
preserveAn option to preserve import attributes in output bundles. It can preserve both 'assert' and 'with' attributes but by default it only keeps asserts.
Set to false to turn it off.
Optional
shimA directory where shims for the built bins would be placed All these scripts do is to import the yet-to-be-built binary so package managers hava something to symlink to before it's built.
! This folder has to be ignored by typescript as it contains broken ! imports before the package is built
Optional
sourcepackageJson to modify and put in the artifact, relative to the package's directory.
Optional
srcSource root, relative to the package directory
Optional
staticOptional
svelteAdd svelte export conditions or not
Optional
targetWhich packageJson to act on. Will do both when left empty.
By default is undefined, meaning both.
Formats the json file using prettier and your configuration.
Disable if you don't have prettier