Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/utils/create-project-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export function runCreateWorkspace(
// Needed for bun workarounds, see below
const registry = execSync('npm config get registry').toString().trim();

let command = `${pm.createWorkspace} ${name} --nxCloud=skip --no-interactive`;
let command = `${pm.createWorkspace} ${name} --no-interactive`;

if (preset) {
command += ` --preset=${preset}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
cleanupProject,
expectCodeIsFormatted,
getSelectedPackageManager,
readJson,
runCreateWorkspace,
uniq,
} from '@nx/e2e-utils';
Expand Down Expand Up @@ -34,6 +35,9 @@ describe('create-nx-workspace --preset=angular', () => {
checkFilesExist('src/app/app-module.ts');
checkFilesDoNotExist('src/app/app.routes.ts');
expectCodeIsFormatted();

const nxJson = readJson(`nx.json`);
expect(nxJson.nxCloudId).toBeUndefined();
});

it('should create a workspace with a single angular app at the root using standalone APIs', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
cleanupProject,
readJson,
runCLI,
runCreateWorkspace,
uniq,
Expand All @@ -25,6 +26,9 @@ describe('create-nx-workspace --template', () => {
});

expect(() => runCLI('run-many -t lint,test,build')).not.toThrow();

const nxJson = readJson(`nx.json`);
expect(nxJson.nxCloudId).toBeUndefined();
},
600_000
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
expectCodeIsFormatted,
expectNoAngularDevkit,
getSelectedPackageManager,
readJson,
runCreateWorkspace,
uniq,
} from '@nx/e2e-utils';
Expand All @@ -30,6 +31,9 @@ describe('create-nx-workspace --preset=next', () => {

expectNoAngularDevkit();
expectCodeIsFormatted();

const nxJson = readJson(`nx.json`);
expect(nxJson.nxCloudId).toBeUndefined();
});

it('should be able to create a nextjs standalone workspace using app router', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
cleanupProject,
expectCodeIsFormatted,
getSelectedPackageManager,
readJson,
runCreateWorkspace,
uniq,
} from '@nx/e2e-utils';
Expand All @@ -29,6 +30,9 @@ describe('create-nx-workspace --preset=nuxt', () => {
checkFilesExist('app/app.vue');
checkFilesExist('app/pages/index.vue');
expectCodeIsFormatted();

const nxJson = readJson(`nx.json`);
expect(nxJson.nxCloudId).toBeUndefined();
});

it('should be able to create a nuxt monorepo', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
cleanupProject,
expectCodeIsFormatted,
getSelectedPackageManager,
readJson,
runCreateWorkspace,
uniq,
} from '@nx/e2e-utils';
Expand All @@ -29,6 +30,9 @@ describe('create-nx-workspace --preset=vue', () => {
checkFilesExist('src/main.ts');
checkFilesExist('src/app/App.vue');
expectCodeIsFormatted();

const nxJson = readJson(`nx.json`);
expect(nxJson.nxCloudId).toBeUndefined();
});

it('should be able to create a vue monorepo', () => {
Expand Down
3 changes: 3 additions & 0 deletions e2e/workspace-create/src/create-nx-workspace-npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ describe('create-nx-workspace --preset=npm', () => {
} else {
expect(packageJson.workspaces).toEqual(['packages/*']);
}

const nxJson = readJson(`nx.json`);
expect(nxJson.nxCloudId).toBeUndefined();
});

it('should add angular application', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
cleanupProject,
runCLI,
readJson,
runCreateWorkspace,
uniq,
} from '@nx/e2e-utils';
Expand All @@ -22,6 +23,9 @@ describe('create-nx-workspace --template', () => {
});

expect(() => runCLI('run-many -t lint,test,build')).not.toThrow();

const nxJson = readJson(`nx.json`);
expect(nxJson.nxCloudId).toBeUndefined();
},
600_000
);
Expand Down
3 changes: 3 additions & 0 deletions e2e/workspace-create/src/create-nx-workspace-react.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ describe('create-nx-workspace --preset=react', () => {
checkFilesExist('vite.config.mts');
checkFilesDoNotExist('tsconfig.base.json');
expectCodeIsFormatted();

const nxJson = readJson(`nx.json`);
expect(nxJson.nxCloudId).toBeUndefined();
});

it('should create a workspace with a single react app with webpack and playwright at the root', () => {
Expand Down
3 changes: 3 additions & 0 deletions packages/create-nx-workspace/src/create-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ export async function createWorkspace<T extends CreateWorkspaceOptions>(
...options,
preset,
workspaceGlobs,
// We want new workspaces to have a short URL to finish Cloud onboarding, but not have nxCloudId set up since it will be handled as part of the onboarding flow.
// This is skipping nxCloudId for the "custom" flow.
nxCloud: 'skip',
});

// Mark workspace as ready for SIGINT handler
Expand Down
Loading