fix(js): fix minimal publish script devkit import (#16559)
This commit is contained in:
parent
a1819bcadd
commit
555cacd87d
@ -10,11 +10,13 @@ const publishScriptContent = `
|
||||
* You might need to authenticate with NPM before running this script.
|
||||
*/
|
||||
|
||||
import { readCachedProjectGraph } from '@nx/devkit';
|
||||
import { execSync } from 'child_process';
|
||||
import { readFileSync, writeFileSync } from 'fs';
|
||||
import chalk from 'chalk';
|
||||
|
||||
import devkit from '@nx/devkit';
|
||||
const { readCachedProjectGraph } = devkit;
|
||||
|
||||
function invariant(condition, message) {
|
||||
if (!condition) {
|
||||
console.error(chalk.bold.red(message));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user