@package-json/create
v0.0.11
Published
Zero-config package.json creator.
Downloads
14
Readme
@package-json/create
Zero-config package.json
creator.
Usage
cli
# npm
npx create @package-json
# pnpm
pnpm create @package-json
# bun
bun create @package-json
programmatic
import { create } from '@package-json/create'
const json = create()
export default json
config
// pkgc.config.ts / package-json-create.config.ts
import { defineConfig } from '@package-json/create'
export default defineConfig({
name: '@package-json/foo', // scope: @package-json
scripts: {
'build': 'pkgroll',
'build:watch': 'pkgroll --watch',
'test': 'vitest run',
'test:watch': 'vitest watch',
},
type: 'module',
})