Comparing version 0.7.4 to 0.7.5
{ | ||
"name": "unbuild", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"description": "A unified javascript build system", | ||
"repository": "unjs/unbuild", | ||
"license": "MIT", | ||
"exports": "./dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs" | ||
} | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"bin": { | ||
@@ -21,3 +26,3 @@ "unbuild": "./dist/cli.mjs" | ||
"release": "pnpm test && standard-version && git push --follow-tags && npm publish", | ||
"stub": "pnpm unbuild -- --stub", | ||
"stub": "pnpm unbuild --stub", | ||
"test": "mocha -r jiti/register ./test/*.test.*", | ||
@@ -28,27 +33,27 @@ "unbuild": "jiti ./src/cli" | ||
"@rollup/plugin-alias": "^3.1.9", | ||
"@rollup/plugin-commonjs": "^21.0.3", | ||
"@rollup/plugin-commonjs": "^22.0.1", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.2.0", | ||
"@rollup/plugin-node-resolve": "^13.3.0", | ||
"@rollup/plugin-replace": "^4.0.0", | ||
"@rollup/pluginutils": "^4.2.0", | ||
"@rollup/pluginutils": "^4.2.1", | ||
"chalk": "^5.0.1", | ||
"consola": "^2.15.3", | ||
"defu": "^6.0.0", | ||
"esbuild": "^0.14.36", | ||
"esbuild": "^0.14.49", | ||
"hookable": "^5.1.1", | ||
"jiti": "^1.13.0", | ||
"magic-string": "^0.26.1", | ||
"jiti": "^1.14.0", | ||
"magic-string": "^0.26.2", | ||
"mkdirp": "^1.0.4", | ||
"mkdist": "^0.3.10", | ||
"mlly": "^0.5.2", | ||
"mkdist": "^0.3.13", | ||
"mlly": "^0.5.4", | ||
"mri": "^1.2.0", | ||
"pathe": "^0.2.0", | ||
"pkg-types": "^0.3.2", | ||
"pathe": "^0.3.2", | ||
"pkg-types": "^0.3.3", | ||
"pretty-bytes": "^6.0.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.70.1", | ||
"rollup-plugin-dts": "^4.2.1", | ||
"rollup": "^2.77.0", | ||
"rollup-plugin-dts": "^4.2.2", | ||
"rollup-plugin-esbuild": "^4.9.1", | ||
"scule": "^0.2.1", | ||
"typescript": "^4.6.3", | ||
"typescript": "^4.7.4", | ||
"untyped": "^0.4.4" | ||
@@ -69,3 +74,3 @@ }, | ||
}, | ||
"packageManager": "pnpm@6.32.6" | ||
"packageManager": "pnpm@7.5.2" | ||
} |
@@ -52,2 +52,28 @@ # unbuild | ||
Example: | ||
```ts | ||
import { defineBuildConfig } from 'unbuild' | ||
export default defineBuildConfig({ | ||
// If entries is not provided, will be automatically inferred from package.json | ||
entries: [ | ||
// default | ||
'./src/index', | ||
// mkdist builder transpiles file-to-file keeping original sources structure | ||
{ | ||
builder: 'mkdist', | ||
input: './src/package/components/', | ||
outDir: './build/components' | ||
}, | ||
], | ||
// Change outDir, default is 'dist' | ||
outDir: 'build', | ||
// Generates .d.ts declaration file | ||
declaration: true, | ||
}) | ||
``` | ||
## 💻 Development | ||
@@ -54,0 +80,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37443
942
101
+ Added@rollup/plugin-commonjs@22.0.2(transitive)
- Removed@rollup/plugin-commonjs@21.1.0(transitive)
Updated@rollup/pluginutils@^4.2.1
Updatedesbuild@^0.14.49
Updatedjiti@^1.14.0
Updatedmagic-string@^0.26.2
Updatedmkdist@^0.3.13
Updatedmlly@^0.5.4
Updatedpathe@^0.3.2
Updatedpkg-types@^0.3.3
Updatedrollup@^2.77.0
Updatedrollup-plugin-dts@^4.2.2
Updatedtypescript@^4.7.4