Skip to content

Commit

Permalink
feat(scripts-generators): update tsconfig.base.all.json after creatin…
Browse files Browse the repository at this point in the history
…g new package
  • Loading branch information
Hotell committed Apr 11, 2023
1 parent 41b782d commit c7df259
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
17 changes: 10 additions & 7 deletions scripts/generators/create-package/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { NodePlopAPI, AddManyActionConfig } from 'plop';
import { Actions } from 'node-plop';
import { spawnSync } from 'child_process';
import * as path from 'path';

import { PackageJson, findGitRoot } from '@fluentui/scripts-monorepo';
import { createPathAliasesConfig } from '@fluentui/scripts-storybook';
import { WorkspaceJsonConfiguration } from '@nrwl/devkit';
import chalk from 'chalk';
import * as fs from 'fs-extra';
import * as jju from 'jju';
import _ from 'lodash';
import chalk from 'chalk';
import { spawnSync } from 'child_process';
import { WorkspaceJsonConfiguration } from '@nrwl/devkit';

import { findGitRoot, PackageJson } from '@fluentui/scripts-monorepo';
import { Actions } from 'node-plop';
import { AddManyActionConfig, NodePlopAPI } from 'plop';

const root = findGitRoot();

Expand Down Expand Up @@ -301,6 +302,8 @@ function updateNxWorkspace(_answers: Answers, config: { root: string; projectNam
const updatedNxWorkspace = jju.update(nxWorkspaceContent, nxWorkspace, { mode: 'json', indent: 2 });

fs.writeFileSync(paths.workspace, updatedNxWorkspace, 'utf-8');

createPathAliasesConfig({ relativeFolderPathFromRoot: '.' });
}

function getProjectMetadata(options: { root: string; name: string }) {
Expand Down
1 change: 1 addition & 0 deletions scripts/generators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"dependencies": {
"@fluentui/scripts-monorepo": "*",
"@fluentui/scripts-storybook": "*",
"@fluentui/scripts-projects-test": "*"
}
}

0 comments on commit c7df259

Please sign in to comment.