chore(core): update @types/node version to 14.14.33
This commit is contained in:
parent
564a86e096
commit
17dd93362c
@ -25189,7 +25189,7 @@ export const mediumGraph: ProjectGraphCache = {
|
||||
type: 'npm',
|
||||
name: 'npm:@types/node',
|
||||
data: {
|
||||
version: '~8.9.4',
|
||||
version: '14.14.33',
|
||||
packageName: '@types/node',
|
||||
files: [],
|
||||
},
|
||||
|
||||
@ -9513,7 +9513,7 @@ export const smallGraph: ProjectGraphCache = {
|
||||
type: 'npm',
|
||||
name: 'npm:@types/node',
|
||||
data: {
|
||||
version: '12.12.38',
|
||||
version: '14.14.33',
|
||||
packageName: '@types/node',
|
||||
files: [],
|
||||
},
|
||||
|
||||
@ -392,7 +392,7 @@ export function createFile(f: string, content: string = ''): void {
|
||||
|
||||
export function updateFile(
|
||||
f: string,
|
||||
content: string | ((content: string) => void)
|
||||
content: string | ((content: string) => string)
|
||||
): void {
|
||||
ensureDirSync(path.dirname(tmpProjPath(f)));
|
||||
if (typeof content === 'string') {
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
"@types/jasminewd2": "~2.0.3",
|
||||
"@types/jest": "26.0.8",
|
||||
"@types/lodash": "^4.14.165",
|
||||
"@types/node": "12.12.38",
|
||||
"@types/node": "14.14.33",
|
||||
"@types/prettier": "2.0.0",
|
||||
"@types/react": "16.9.17",
|
||||
"@types/react-dom": "16.9.4",
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// we can't import from '@nrwl/workspace' because it will require typescript
|
||||
import { output } from '@nrwl/workspace/src/utilities/output';
|
||||
import { getPackageManagerCommand } from '@nrwl/tao/src/shared/package-manager';
|
||||
import { dirSync } from 'tmp';
|
||||
import { writeFileSync, readFileSync, removeSync } from 'fs-extra';
|
||||
import * as path from 'path';
|
||||
import { output } from '@nrwl/workspace/src/utilities/output';
|
||||
import { execSync } from 'child_process';
|
||||
import { readFileSync, removeSync, writeFileSync } from 'fs-extra';
|
||||
import * as inquirer from 'inquirer';
|
||||
import yargsParser = require('yargs-parser');
|
||||
import * as path from 'path';
|
||||
import { dirSync } from 'tmp';
|
||||
import { showNxWarning } from './shared';
|
||||
import yargsParser = require('yargs-parser');
|
||||
|
||||
const tsVersion = 'TYPESCRIPT_VERSION';
|
||||
const cliVersion = 'NX_VERSION';
|
||||
@ -100,7 +100,7 @@ function createNxPlugin(
|
||||
function updateWorkspace(workspaceName: string) {
|
||||
const nxJsonPath = path.join(workspaceName, 'nx.json');
|
||||
|
||||
const nxJson = JSON.parse(readFileSync(nxJsonPath).toString('UTF-8'));
|
||||
const nxJson = JSON.parse(readFileSync(nxJsonPath).toString('utf-8'));
|
||||
|
||||
nxJson['workspaceLayout'] = {
|
||||
appsDir: 'e2e',
|
||||
@ -182,13 +182,13 @@ function showHelp() {
|
||||
|
||||
Create a new Nx workspace
|
||||
|
||||
Args:
|
||||
Args:
|
||||
|
||||
name workspace name (e.g., org name)
|
||||
|
||||
Options:
|
||||
|
||||
pluginName the name of the plugin to be created
|
||||
pluginName the name of the plugin to be created
|
||||
`);
|
||||
}
|
||||
|
||||
|
||||
@ -3,13 +3,11 @@ import {
|
||||
parseTargetString,
|
||||
readTargetOptions,
|
||||
} from '@nrwl/devkit';
|
||||
|
||||
import { ChildProcess, fork } from 'child_process';
|
||||
import { join } from 'path';
|
||||
|
||||
import { GatsbyPluginBuilderSchema } from './schema';
|
||||
import { runGatsbyBuild } from '../build/build.impl';
|
||||
import { GatsbyPluginBuilderSchema as BuildBuilderSchema } from '../build/schema';
|
||||
import { GatsbyPluginBuilderSchema } from './schema';
|
||||
|
||||
export default async function* serverExecutor(
|
||||
options: GatsbyPluginBuilderSchema,
|
||||
@ -83,7 +81,7 @@ async function runGatsbyDevelop(workspaceRoot, projectRoot, options) {
|
||||
}
|
||||
);
|
||||
|
||||
childProcess.on('message', ({ action }) => {
|
||||
childProcess.on('message', ({ action }: any) => {
|
||||
if (
|
||||
action?.type === 'ACTIVITY_END' &&
|
||||
action?.payload?.status === 'SUCCESS' &&
|
||||
|
||||
@ -869,6 +869,10 @@
|
||||
"dotenv": {
|
||||
"version": "8.2.0",
|
||||
"alwaysAddToPackageJson": false
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "14.14.33",
|
||||
"alwaysAddToPackageJson": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,18 +1,18 @@
|
||||
import { toOldFormatOrNull, Workspaces } from '@nrwl/tao/src/shared/workspace';
|
||||
import { execSync } from 'child_process';
|
||||
import * as fs from 'fs';
|
||||
import { readFileSync } from 'fs';
|
||||
import * as path from 'path';
|
||||
import { extname, join } from 'path';
|
||||
import { performance } from 'perf_hooks';
|
||||
import { NxArgs } from '../command-line/utils';
|
||||
import { WorkspaceResults } from '../command-line/workspace-results';
|
||||
import { appRootPath } from '../utilities/app-root';
|
||||
import { fileExists, readJsonFile } from '../utilities/fileutils';
|
||||
import { jsonDiff } from '../utilities/json-diff';
|
||||
import { defaultFileHasher } from './hasher/file-hasher';
|
||||
import { ProjectGraphNode } from './project-graph';
|
||||
import { Environment, NxJson } from './shared-interfaces';
|
||||
import { defaultFileHasher } from './hasher/file-hasher';
|
||||
import { performance } from 'perf_hooks';
|
||||
import { toOldFormatOrNull, Workspaces } from '@nrwl/tao/src/shared/workspace';
|
||||
|
||||
const ignore = require('ignore');
|
||||
|
||||
@ -160,7 +160,9 @@ function getIgnoredGlobs() {
|
||||
}
|
||||
|
||||
function readFileIfExisting(path: string) {
|
||||
return fs.existsSync(path) ? fs.readFileSync(path, 'UTF-8').toString() : '';
|
||||
return fs.existsSync(path)
|
||||
? fs.readFileSync(path, { encoding: 'utf-8' }).toString()
|
||||
: '';
|
||||
}
|
||||
|
||||
export function readWorkspaceJson(): any {
|
||||
@ -189,7 +191,7 @@ export function workspaceFileName() {
|
||||
export type FileRead = (s: string) => string;
|
||||
|
||||
export function defaultFileRead(filePath: string): string | null {
|
||||
return readFileSync(join(appRootPath, filePath), 'UTF-8');
|
||||
return readFileSync(join(appRootPath, filePath), { encoding: 'utf-8' });
|
||||
}
|
||||
|
||||
export function readPackageJson(): any {
|
||||
|
||||
@ -9,7 +9,7 @@ Object {
|
||||
"@nrwl/cli": "*",
|
||||
"@nrwl/tao": "*",
|
||||
"@nrwl/workspace": "*",
|
||||
"@types/node": "12.12.38",
|
||||
"@types/node": "14.14.33",
|
||||
"dotenv": "8.2.0",
|
||||
"prettier": "2.2.1",
|
||||
"ts-node": "~9.1.1",
|
||||
@ -52,7 +52,7 @@ Object {
|
||||
"@nrwl/cli": "*",
|
||||
"@nrwl/tao": "*",
|
||||
"@nrwl/workspace": "*",
|
||||
"@types/node": "12.12.38",
|
||||
"@types/node": "14.14.33",
|
||||
"dotenv": "8.2.0",
|
||||
"prettier": "2.2.1",
|
||||
"ts-node": "~9.1.1",
|
||||
@ -96,7 +96,7 @@ Object {
|
||||
"@nrwl/react": "*",
|
||||
"@nrwl/tao": "*",
|
||||
"@nrwl/workspace": "*",
|
||||
"@types/node": "12.12.38",
|
||||
"@types/node": "14.14.33",
|
||||
"dotenv": "8.2.0",
|
||||
"prettier": "2.2.1",
|
||||
"ts-node": "~9.1.1",
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
"@nrwl/tao": "<%= nxVersion %>",
|
||||
"@nrwl/cli": "<%= nxVersion %>",
|
||||
"@nrwl/workspace": "<%= nxVersion %>",
|
||||
"@types/node": "12.12.38",
|
||||
"@types/node": "14.14.33",
|
||||
"dotenv": "8.2.0",
|
||||
"ts-node": "~9.1.1",
|
||||
"typescript": "<%= typescriptVersion %>",
|
||||
|
||||
@ -4605,10 +4605,10 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.20.tgz#0da05cddbc761e1fa98af88a17244c8c1ff37231"
|
||||
integrity sha512-MRn/NP3dee8yL5QhbSA6riuwkS+UOcsPUMOIOG3KMUQpuor/2TopdRBu8QaaB4fGU+gz/bzyDWt0FtUbeJ8H1A==
|
||||
|
||||
"@types/node@12.12.38":
|
||||
version "12.12.38"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.38.tgz#58841a382f231ad005dbb935c36d44aa1118a26b"
|
||||
integrity sha512-75eLjX0pFuTcUXnnWmALMzzkYorjND0ezNEycaKesbUBg9eGZp4GHPuDmkRc4mQQvIpe29zrzATNRA6hkYqwmA==
|
||||
"@types/node@14.14.33":
|
||||
version "14.14.33"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.33.tgz#9e4f8c64345522e4e8ce77b334a8aaa64e2b6c78"
|
||||
integrity sha512-oJqcTrgPUF29oUP8AsUqbXGJNuPutsetaa9kTQAQce5Lx5dTYWV02ScBiT/k1BX/Z7pKeqedmvp39Wu4zR7N7g==
|
||||
|
||||
"@types/normalize-package-data@^2.4.0":
|
||||
version "2.4.0"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user