Skip to content

Commit

Permalink
chore(repo): changes for review
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed May 25, 2022
1 parent d156ff8 commit 40b06e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions packages/nx-plugin/src/generators/plugin/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ function updateWorkspaceJson(host: Tree, options: NormalizedSchema) {

export async function pluginGenerator(host: Tree, schema: Schema) {
const options = normalizeOptions(host, schema);
const tasks: GeneratorCallback[] = [];

const libraryTask = await libraryGenerator(host, {
...schema,
Expand All @@ -136,8 +135,6 @@ export async function pluginGenerator(host: Tree, schema: Schema) {
importPath: options.npmPackageName,
});

tasks.push(libraryTask);

addDependenciesToPackageJson(
host,
{},
Expand Down
8 changes: 3 additions & 5 deletions packages/nx/src/utils/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ export const registerTsProject = (
path: string,
configFilename = 'tsconfig.json'
): (() => void) => {
const cleanupFunctions: (() => void)[] = [];

// Function to register transpiler that returns cleanup function
let registerTranspiler: () => () => void;

const tsConfigPath = join(path, configFilename);
cleanupFunctions.push(registerTsConfigPaths(tsConfigPath));
const cleanupFunctions = [registerTsConfigPaths(tsConfigPath)];

const swcNodeInstalled = packageIsInstalled('@swc-node/register');
if (swcNodeInstalled) {
Expand Down Expand Up @@ -50,7 +48,7 @@ export const registerTsProject = (
module: 'commonjs',
},
});
return () => {};
return () => { };
};
}
}
Expand Down Expand Up @@ -94,7 +92,7 @@ export function registerTsConfigPaths(tsConfigPath): () => void {
} catch (err) {
warnNoTsconfigPaths();
}
return () => {};
return () => { };
}

function warnTsNodeUsage() {
Expand Down

0 comments on commit 40b06e3

Please sign in to comment.