Skip to content

Commit

Permalink
fix: leave exports alone
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Feb 17, 2024
1 parent 9edaa1e commit 4fcdf62
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/template.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { join, dirname } from "node:path";
import { createWriteStream } from "node:fs";
import { Writable } from 'node:stream';
import { Writable } from "node:stream";
import { mkdir } from "node:fs/promises";
import { matcher } from "matching-iterator";
import {
Expand Down Expand Up @@ -124,8 +124,7 @@ export class Template extends LogLevelMixin(class {}) {
return this.name;
}

get logLevel()
{
get logLevel() {
return this.options.logLevel;
}

Expand Down Expand Up @@ -408,8 +407,8 @@ export class Template extends LogLevelMixin(class {}) {
const d = join(dest, entry.name);
await mkdir(dirname(d), { recursive: true });
const readStream = await entry.readStream;
console.log(readStream)
// readStream.pipe(Writable.toWeb(createWriteStream(d)));
console.log(readStream);
// readStream.pipe(Writable.toWeb(createWriteStream(d)));
readStream.pipe(createWriteStream(d));
}
}
Expand All @@ -424,12 +423,12 @@ export class Template extends LogLevelMixin(class {}) {
const pkg = await this.package();

return {
template: {
key: this.key,
name: this.name
},
...pkg.template?.properties
};
template: {
key: this.key,
name: this.name
},
...pkg.template?.properties
};
}

/**
Expand Down Expand Up @@ -512,7 +511,6 @@ export function mergeTemplate(a, b) {
const mvl = { keepHints: true, merge: mergeVersionsLargest };
return merge(a, b, "", undefined, {
"engines.*": mvl,
"exports.*": mvl,
"scripts.*": { keepHints: true, merge: mergeExpressions },
"dependencies.*": mvl,
"devDependencies.*": mvl,
Expand Down

0 comments on commit 4fcdf62

Please sign in to comment.