Skip to content

Commit

Permalink
chore: remove leftover commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Jun 27, 2023
1 parent f7b278e commit e4f2fe2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
25 changes: 0 additions & 25 deletions scripts/generators/create-package/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,28 +296,3 @@ function updateNxProject(_answers: Answers, config: { projectName: string; proje
implicitDependencies: [],
});
}

// function updateNxWorkspace(_answers: Answers, config: { root: string; projectName: string; projectRoot: string }) {
// const paths = {
// workspace: `${config.root}/workspace.json`,
// config: `${config.root}/nx.json`,
// };

// const templates = {
// workspace: {
// [config.projectName]: {
// root: config.projectRoot,
// projectType: 'library',
// implicitDependencies: [],
// },
// },
// };

// const nxWorkspaceContent = fs.readFileSync(paths.workspace, 'utf-8');
// const nxWorkspace: ProjectsConfigurations = jju.parse(nxWorkspaceContent);
// Object.assign(nxWorkspace.projects, templates.workspace);

// const updatedNxWorkspace = jju.update(nxWorkspaceContent, nxWorkspace, { mode: 'json', indent: 2 });

// fs.writeFileSync(paths.workspace, updatedNxWorkspace, 'utf-8');
// }
1 change: 0 additions & 1 deletion scripts/storybook/src/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe(`utils`, () => {
const packageRootPath = path.join('packages', options.packageName);
const packageRootAbsolutePath = path.join(rootDir, packageRootPath);
const paths = {
// workspaceJsonPath: path.join(rootDir, 'workspace.json'),
nxJsonPath: path.join(rootDir, 'nx.json'),
projectJsonPath: path.join(packageRootAbsolutePath, 'project.json'),
rootTsconfigPath: path.join(rootDir, 'tsconfig.base.json'),
Expand Down

0 comments on commit e4f2fe2

Please sign in to comment.