Skip to content

Commit

Permalink
Merge pull request #1139 from pawel-twardziak/bugs/1137-implementatio…
Browse files Browse the repository at this point in the history
…n-is-not-a-function

Bugs: implementation is not a function - add default export for all the generators
  • Loading branch information
edbzn authored Oct 14, 2024
2 parents 67f4076 + cdd34de commit f7c56ab
Show file tree
Hide file tree
Showing 26 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/preact/src/generators/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,5 @@ export async function applicationGenerator(

return runTasksInSerial(initTask, viteTask, lintTask, jestTask, cypressTask);
}

export default applicationGenerator;
2 changes: 2 additions & 0 deletions packages/preact/src/generators/component/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ export async function componentGenerator(
createComponentInProject(tree, options);
addExportsToBarrel(tree, options);
}

export default componentGenerator;
2 changes: 2 additions & 0 deletions packages/preact/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ export async function initGenerator(host: Tree, options: Schema) {
}
return runTasksInSerial(installTask, jestTask, cypressTask);
}

export default initGenerator;
2 changes: 2 additions & 0 deletions packages/preact/src/generators/library/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,5 @@ export async function libraryGenerator(

return runTasksInSerial(initTask, viteTask, vitestTask, lintTask, jestTask);
}

export default libraryGenerator;
2 changes: 2 additions & 0 deletions packages/solid/src/generators/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,5 @@ export async function applicationGeneratorInternal(tree: Tree, schema: Schema) {

return runTasksInSerial(initTask, viteTask, lintTask, jestTask, cypressTask);
}

export default applicationGenerator;
2 changes: 2 additions & 0 deletions packages/solid/src/generators/component/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ export async function componentGenerator(
createComponentInProject(tree, options);
addExportsToBarrel(tree, options);
}

export default componentGenerator;
2 changes: 2 additions & 0 deletions packages/solid/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ export async function initGenerator(host: Tree, schema: Schema) {
}
return runTasksInSerial(...tasks);
}

export default initGenerator;
2 changes: 2 additions & 0 deletions packages/solid/src/generators/library/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,5 @@ export async function libraryGeneratorInternal(

return runTasksInSerial(initTask, viteTask, vitestTask, lintTask, jestTask);
}

export default libraryGenerator;
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,5 @@ export async function addAngularGenerator(

return libraryTarget;
}

export default addAngularGenerator;
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ export async function outputtargetGenerator(

return runTasksInSerial(...tasks);
}

export default outputtargetGenerator;
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,5 @@ export async function addReactGenerator(

return libraryTarget;
}

export default addReactGenerator;
2 changes: 2 additions & 0 deletions packages/stencil/src/generators/application/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,5 @@ export async function applicationGenerator(

return runTasksInSerial(initTask, lintTask, cypressTask);
}

export default applicationGenerator;
2 changes: 2 additions & 0 deletions packages/stencil/src/generators/component/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,5 @@ export async function componentGenerator(host: Tree, options: ComponentSchema) {
await formatFiles(host);
}
}

export default componentGenerator;
2 changes: 2 additions & 0 deletions packages/stencil/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ export async function initGenerator<T extends InitSchema>(
jestInitTask
);
}

export default initGenerator;
2 changes: 2 additions & 0 deletions packages/stencil/src/generators/library/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,5 @@ export async function libraryGenerator(host: Tree, schema: RawLibrarySchema) {

return runTasksInSerial(initTask);
}

export default libraryGenerator;
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,5 @@ export async function makeLibBuildableGenerator(

await formatFiles(host);
}

export default makeLibBuildableGenerator;
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,5 @@ function addStorybookTask(

updateProjectConfiguration(tree, projectName, projectConfig);
}

export default storybookConfigurationGenerator;
2 changes: 2 additions & 0 deletions packages/svelte/src/generators/application/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ export async function applicationGeneratorInternal(host: Tree, schema: Schema) {

return runTasksInSerial(initTask, viteTask, lintTask, jestTask, cypressTask);
}

export default applicationGenerator;
2 changes: 2 additions & 0 deletions packages/svelte/src/generators/component/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ export async function componentGenerator(
createComponentInProject(tree, options);
addExportsToBarrel(tree, options);
}

export default componentGenerator;
2 changes: 2 additions & 0 deletions packages/svelte/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export async function initGenerator(host: Tree, schema: Schema) {
}
return runTasksInSerial(...tasks);
}

export default initGenerator;
2 changes: 2 additions & 0 deletions packages/svelte/src/generators/library/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,5 @@ export async function libraryGenerator(

return runTasksInSerial(initTask, lintTask, viteTask, jestTask, vitestTask);
}

export default libraryGenerator;
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ function normalizeSchema(
...schema,
};
}

export default configurationGenerator;
2 changes: 2 additions & 0 deletions packages/sveltekit/src/generators/application/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ export async function applicationGenerator(

return runTasksInSerial(...tasks);
}

export default applicationGenerator;
2 changes: 2 additions & 0 deletions packages/sveltekit/src/generators/component/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ export async function componentGenerator(
createComponentInProject(tree, options);
addExportsToBarrel(tree, options);
}

export default componentGenerator;
2 changes: 2 additions & 0 deletions packages/sveltekit/src/generators/library/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ export async function libraryGenerator(
createLibInProject(tree, options);
addExportsToBarrel(tree, options);
}

export default libraryGenerator;
2 changes: 2 additions & 0 deletions packages/sveltekit/src/generators/route/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ export interface SvelteRouteSchema {
export async function routeGenerator(tree: Tree, options: SvelteRouteSchema) {
createRouteInProject(tree, options);
}

export default routeGenerator;

0 comments on commit f7c56ab

Please sign in to comment.