chore(repo): update nx to 16.6.0-beta.8 (#18356)

This commit is contained in:
Jason Jean 2023-07-29 10:39:53 -04:00 committed by GitHub
parent d1d06349e7
commit 989f7f8f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 1228 additions and 787 deletions

View File

@ -211,6 +211,7 @@ jobs:
NX_DAEMON: 'true'
NX_PERF_LOGGING: 'false'
SELECTED_PM: 'npm' # explicitly define npm for macOS tests
NX_SKIP_NX_CACHE: 'true' # TODO: Figure out what is going on with the cache and renable it
steps:
- run:
name: Set dynamic nx run variable

View File

@ -202,11 +202,19 @@ export function runCreateWorkspace(
command += ` ${extraArgs}`;
}
if (isCI) {
command += ` --verbose`;
}
try {
const create = execSync(`${command}${isVerbose() ? ' --verbose' : ''}`, {
cwd,
stdio: 'pipe',
env: { CI: 'true', ...process.env },
env: {
CI: 'true',
NX_VERBOSE_LOGGING: isCI ? 'true' : 'false',
...process.env,
},
encoding: 'utf-8',
});

10
nx.json
View File

@ -58,8 +58,14 @@
},
"targetDefaults": {
"build": {
"dependsOn": ["build-base"],
"inputs": ["production", "^production"]
"dependsOn": ["build-base", "build-native"],
"inputs": [
"production",
"^production",
{
"dependentTasksOutputFiles": "**/*.node"
}
]
},
"build-native": {
"inputs": ["native"]

View File

@ -63,17 +63,17 @@
"@ngrx/router-store": "~16.0.0",
"@ngrx/store": "~16.0.0",
"@nguniversal/builders": "~16.1.0",
"@nx/cypress": "16.6.0-beta.4",
"@nx/devkit": "16.6.0-beta.4",
"@nx/eslint-plugin": "16.6.0-beta.4",
"@nx/jest": "16.6.0-beta.4",
"@nx/js": "16.6.0-beta.4",
"@nx/linter": "16.6.0-beta.4",
"@nx/next": "16.6.0-beta.4",
"@nx/react": "16.6.0-beta.4",
"@nx/storybook": "16.6.0-beta.4",
"@nx/web": "16.6.0-beta.4",
"@nx/webpack": "16.6.0-beta.4",
"@nx/cypress": "16.6.0-beta.8",
"@nx/devkit": "16.6.0-beta.8",
"@nx/eslint-plugin": "16.6.0-beta.8",
"@nx/jest": "16.6.0-beta.8",
"@nx/js": "16.6.0-beta.8",
"@nx/linter": "16.6.0-beta.8",
"@nx/next": "16.6.0-beta.8",
"@nx/react": "16.6.0-beta.8",
"@nx/storybook": "16.6.0-beta.8",
"@nx/web": "16.6.0-beta.8",
"@nx/webpack": "16.6.0-beta.8",
"@parcel/watcher": "2.0.4",
"@phenomnomnominal/tsquery": "~5.0.1",
"@playwright/test": "^1.36.1",
@ -88,10 +88,10 @@
"@rollup/plugin-url": "^7.0.0",
"@schematics/angular": "~16.1.0",
"@side/jest-runtime": "^1.1.0",
"@storybook/addon-essentials": "^7.0.24",
"@storybook/core-server": "^7.0.24",
"@storybook/react": "^7.0.24",
"@storybook/react-webpack5": "^7.0.24",
"@storybook/addon-essentials": "7.1.1",
"@storybook/core-server": "7.1.1",
"@storybook/react": "7.1.1",
"@storybook/react-webpack5": "7.1.1",
"@storybook/types": "^7.0.24",
"@supabase/supabase-js": "^2.26.0",
"@svgr/rollup": "^8.0.1",
@ -214,7 +214,7 @@
"next-sitemap": "^3.1.10",
"ng-packagr": "~16.1.0",
"node-fetch": "^2.6.7",
"nx": "16.6.0-beta.4",
"nx": "16.6.0-beta.8",
"nx-cloud": "16.2.0-beta.0",
"octokit": "^2.0.14",
"open": "^8.4.0",

View File

@ -11,7 +11,7 @@
"project": "packages-legacy/angular/ng-package.json",
"tsConfig": "packages-legacy/angular/tsconfig.runtime.json"
},
"outputs": ["build/packages/angular-legacy"]
"outputs": ["{workspaceRoot}/build/packages/angular-legacy"]
},
"build-base": {
"executor": "@nx/js:tsc",

View File

@ -12,7 +12,7 @@
"project": "packages/angular/ng-package.json",
"tsConfig": "packages/angular/tsconfig.lib.runtime.json"
},
"outputs": ["build/packages/angular"]
"outputs": ["{workspaceRoot}/build/packages/angular"]
},
"build-base": {
"executor": "@nx/js:tsc",

View File

@ -20,7 +20,7 @@ import * as log from 'ng-packagr/lib/utils/log';
import { dirname, extname, join } from 'path';
import * as postcssPresetEnv from 'postcss-preset-env';
import * as postcssUrl from 'postcss-url';
import { pathToFileURL } from 'url';
import { pathToFileURL } from 'node:url';
import { getInstalledAngularVersionInfo } from '../../../utilities/angular-version-utils';
import {
getTailwindPostCssPlugins,

View File

@ -20,7 +20,7 @@ import * as log from 'ng-packagr/lib/utils/log';
import { dirname, extname, join } from 'path';
import * as postcssPresetEnv from 'postcss-preset-env';
import * as postcssUrl from 'postcss-url';
import { pathToFileURL } from 'url';
import { pathToFileURL } from 'node:url';
import { getInstalledAngularVersionInfo } from '../../../utilities/angular-version-utils';
import {
getTailwindPostCssPlugins,

View File

@ -1,5 +1,5 @@
const Module = require('module');
const url = require('url');
const url = require('node:url');
const originalLoader = Module._load;
const dynamicImport = new Function('specifier', 'return import(specifier)');

View File

@ -7,7 +7,7 @@
* - Hapi: https://github.com/vercel/next.js/tree/canary/examples/custom-server-hapi
*/
import { createServer } from 'http';
import { parse } from 'url';
import { parse } from 'node:url';
import * as path from 'path';
import next from 'next';

View File

@ -6,7 +6,7 @@ import * as http from 'http';
import * as open from 'open';
import { basename, dirname, extname, isAbsolute, join, parse } from 'path';
import { performance } from 'perf_hooks';
import { URL } from 'url';
import { URL } from 'node:url';
import { readNxJson, workspaceLayout } from '../../config/configuration';
import { output } from '../../utils/output';
import { writeJsonFile } from '../../utils/fileutils';

View File

@ -13,7 +13,7 @@ import {
satisfies,
valid,
} from 'semver';
import { URL } from 'url';
import { URL } from 'node:url';
import { promisify } from 'util';
import {
MigrationsJson,

View File

@ -11,9 +11,9 @@ exports[`@nx/storybook:init dependencies for package.json should add angular rel
"@angular/forms": "*",
"@nx/js": "0.0.1",
"@nx/storybook": "0.0.1",
"@storybook/addon-essentials": "7.0.24",
"@storybook/angular": "7.0.24",
"@storybook/core-server": "7.0.24",
"@storybook/addon-essentials": "7.1.1",
"@storybook/angular": "7.1.1",
"@storybook/core-server": "7.1.1",
"existing": "1.0.0",
"prettier": "^2.6.2",
"typescript": "~5.1.3",

View File

@ -1,7 +1,7 @@
import { interpolateName } from 'loader-utils';
import * as path from 'path';
import type { Declaration } from 'postcss';
import * as url from 'url';
import * as url from 'node:url';
import { LoaderContext } from 'webpack';
function wrapUrl(url: string): string {

1932
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -7,5 +7,6 @@ const p = process.argv[2];
const nativeFiles = glob.sync(`packages/${p}/**/*.node`);
nativeFiles.forEach((file) => {
console.log('COPY', file, '=>', `build/${file}`);
fs.copyFileSync(file, `build/${file}`);
});

View File

@ -2,7 +2,7 @@
import * as yargs from 'yargs';
import { execSync } from 'child_process';
import { existsSync, readFileSync, rmSync, writeFileSync } from 'fs';
import { URL } from 'url';
import { URL } from 'node:url';
import { join } from 'path';
import { parse } from 'semver';
@ -51,6 +51,9 @@ function hideFromGitIndex(uncommittedFiles: string[]) {
execSync(buildCommand, {
stdio: [0, 1, 2],
});
execSync(`ls -lah build/packages/nx/src/native`, {
stdio: [0, 1, 2],
});
if (options.local) {
updateLernaJsonVersion(currentLatestVersion);