@nx/remix 21.2.3 → 21.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/remix",
3
- "version": "21.2.3",
3
+ "version": "21.3.0-beta.1",
4
4
  "description": "The Remix plugin for Nx contains executors and generators for managing Remix applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Vitest, Jest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, routes, loaders, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,9 +29,9 @@
29
29
  "migrations": "./migrations.json"
30
30
  },
31
31
  "dependencies": {
32
- "@nx/devkit": "21.2.3",
33
- "@nx/js": "21.2.3",
34
- "@nx/react": "21.2.3",
32
+ "@nx/devkit": "21.3.0-beta.1",
33
+ "@nx/js": "21.3.0-beta.1",
34
+ "@nx/react": "21.3.0-beta.1",
35
35
  "tslib": "^2.3.1",
36
36
  "@phenomnomnominal/tsquery": "~5.0.1"
37
37
  },
@@ -65,10 +65,15 @@ async function buildExecutor(options, context) {
65
65
  }
66
66
  if (options.generateLockfile) {
67
67
  const packageManager = (0, devkit_1.detectPackageManager)(context.root);
68
- const lockFile = (0, js_1.createLockFile)(packageJson, context.projectGraph, packageManager);
69
- (0, fs_extra_1.writeFileSync)(`${options.outputPath}/${(0, js_1.getLockFileName)(packageManager)}`, lockFile, {
70
- encoding: 'utf-8',
71
- });
68
+ if (packageManager === 'bun') {
69
+ devkit_1.logger.warn('Bun lockfile generation is not supported. The generated package.json will not include a lockfile. Run "bun install" in the output directory after deployment if needed.');
70
+ }
71
+ else {
72
+ const lockFile = (0, js_1.createLockFile)(packageJson, context.projectGraph, packageManager);
73
+ (0, fs_extra_1.writeFileSync)(`${options.outputPath}/${(0, js_1.getLockFileName)(packageManager)}`, lockFile, {
74
+ encoding: 'utf-8',
75
+ });
76
+ }
72
77
  }
73
78
  // If output path is different from source path, then copy over the config and public files.
74
79
  // This is the default behavior when running `nx build <app>`.
@@ -5,8 +5,8 @@ const devkit_1 = require("@nx/devkit");
5
5
  const js_1 = require("@nx/js");
6
6
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
7
7
  function addTsconfigEntryPoints(tree, options) {
8
- const project = (0, devkit_1.readProjectConfiguration)(tree, options.projectName);
9
- const projectSourceRoot = (0, ts_solution_setup_1.getProjectSourceRoot)(project, tree);
8
+ const { root: projectRoot, sourceRoot } = (0, devkit_1.readProjectConfiguration)(tree, options.projectName);
9
+ const projectSourceRoot = (0, ts_solution_setup_1.getProjectSourceRoot)(tree, sourceRoot, projectRoot);
10
10
  const serverFilePath = (0, devkit_1.joinPathFragments)(projectSourceRoot, 'server.ts');
11
11
  tree.write(serverFilePath, `// This file should be used to export ONLY server-code from the library.`);
12
12
  const baseTsConfig = (0, js_1.getRootTsConfigPathInTree)(tree);