Skip to content

Commit

Permalink
fix: readd options to queueTransformStream
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 9, 2023
1 parent 18c7967 commit 33cbbe5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"dependencies": {
"@types/node": "^16.18.3",
"@yeoman/namespace": "^0.0.1",
"@yeoman/types": "^0.1.2",
"@yeoman/types": "^0.1.3",
"chalk": "^5.1.2",
"debug": "^4.1.1",
"execa": "^7.1.1",
Expand Down
6 changes: 3 additions & 3 deletions src/actions/lifecycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { createRequire } from 'node:module';
import { stat } from 'node:fs/promises';
import createDebug from 'debug';
import chalk from 'chalk';
import type { BaseGenerator, GetGeneratorOptions } from '@yeoman/types';
import type { ApplyTransformsOptions, BaseGenerator, GetGeneratorOptions } from '@yeoman/types';
import type { Task, TaskOptions, BaseOptions, Priority } from '../types.js';
import type Generator from '../index.js';
import { GeneratorOrigin } from '../generator-parent.js';
Expand Down Expand Up @@ -584,12 +584,12 @@ await this.composeWith({
* or a single one.
* @return This generator
*/
queueTransformStream(transformStreams: Transform | Transform[]) {
queueTransformStream(transformStreams: Transform | Transform[], options?: ApplyTransformsOptions) {
assert(transformStreams, 'expected to receive a transform stream as parameter');

this.queueTask({
method: async () =>
this.env.applyTransforms(Array.isArray(transformStreams) ? transformStreams : [transformStreams]),
this.env.applyTransforms(Array.isArray(transformStreams) ? transformStreams : [transformStreams], options),
taskName: 'transformStream',
queueName: 'transform',
});
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lib": [
"ES2022"
] /* Specify a set of bundled library declaration files that describe the target runtime environment. */,
"types": ["node"],
"types": ["node", "inquirer"],

/* Modules */
"module": "node16" /* Specify what module code is generated. */,
Expand Down

0 comments on commit 33cbbe5

Please sign in to comment.