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 ee0268a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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
4 changes: 1 addition & 3 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

0 comments on commit ee0268a

Please sign in to comment.