@batijs/build
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -26,3 +26,3 @@ // src/exec.ts | ||
} | ||
async function* walk(dir, meta) { | ||
async function* walk(dir) { | ||
if (!existsSync(dir)) | ||
@@ -33,3 +33,3 @@ return; | ||
if (d.isDirectory()) { | ||
yield* walk(entry, meta); | ||
yield* walk(entry); | ||
} else if (d.isFile()) | ||
@@ -63,3 +63,3 @@ yield entry; | ||
for (const source of sources) { | ||
for await (const p of walk(source, meta)) { | ||
for await (const p of walk(source)) { | ||
const target = toDist(p, source, options.dist); | ||
@@ -101,3 +101,4 @@ const parsed = path.parse(p); | ||
export { | ||
main as default | ||
main as default, | ||
walk | ||
}; |
import { VikeMeta } from '@batijs/core'; | ||
declare function walk(dir: string): AsyncGenerator<string>; | ||
declare function main(options: { | ||
@@ -8,2 +9,2 @@ source: string | string[]; | ||
export { main as default }; | ||
export { main as default, walk }; |
@@ -26,3 +26,3 @@ // src/exec.ts | ||
} | ||
async function* walk(dir, meta) { | ||
async function* walk(dir) { | ||
if (!existsSync(dir)) | ||
@@ -33,3 +33,3 @@ return; | ||
if (d.isDirectory()) { | ||
yield* walk(entry, meta); | ||
yield* walk(entry); | ||
} else if (d.isFile()) | ||
@@ -63,3 +63,3 @@ yield entry; | ||
for (const source of sources) { | ||
for await (const p of walk(source, meta)) { | ||
for await (const p of walk(source)) { | ||
const target = toDist(p, source, options.dist); | ||
@@ -101,3 +101,4 @@ const parsed = path.parse(p); | ||
export { | ||
main as default | ||
main as default, | ||
walk | ||
}; |
{ | ||
"name": "@batijs/build", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "", | ||
@@ -11,6 +11,6 @@ "type": "module", | ||
"@types/node": "^16.18.34", | ||
"@batijs/tsup": "0.0.20" | ||
"@batijs/tsup": "0.0.21" | ||
}, | ||
"dependencies": { | ||
"@batijs/core": "0.0.20" | ||
"@batijs/core": "0.0.21" | ||
}, | ||
@@ -17,0 +17,0 @@ "main": "./dist/exec.js", |
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
7492
207
+ Added@batijs/core@0.0.21(transitive)
+ Added@types/which@3.0.4(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedwhich@3.0.1(transitive)
- Removed@batijs/core@0.0.20(transitive)
Updated@batijs/core@0.0.21