OptionalautoOptionalbinOptionalbinOptionalbinsOptionalcwdCurrent working directory
OptionaldefaultOptionaldefaultOptionaldevelopmentWhere 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!
OptionaldisabledIf left empty, all features will remain enabled. Takes precedence over 'enabledFeatures'
OptionaldryActual 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.
OptionaldtsGenerate dts definitions using https://github.com/qmhc/vite-plugin-dts
OptionalenabledIf left empty, all features will remain enabled. Except the disabled ones
OptionalenabledIf 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.
OptionalexportOptionalexportWhether 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.
OptionalexportsOptionalexportsOptionalfallbackOptionalkeysOptionalloggerAn optional Logger target.
OptionallogA minimum logLevel
OptionalmandatoryOptionaloutThe expected output directory relative to the package's directory.
OptionaloverrideOptionalpreserveAn 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.
OptionalshimA 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
OptionalsourcepackageJson to modify and put in the artifact, relative to the package's directory.
OptionalsrcSource root, relative to the package directory
OptionalstaticOptionalsvelteAdd svelte export conditions or not
OptionaltargetWhich 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