@nx/remix 23.0.0-beta.23 → 23.0.0-beta.25
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/{generators.d.ts → dist/generators.d.ts} +0 -1
- package/{index.d.ts → dist/index.d.ts} +0 -1
- package/{plugin.d.ts → dist/plugin.d.ts} +0 -1
- package/{plugins → dist/plugins}/component-testing/index.d.ts +0 -1
- package/dist/readme-template.md +18 -0
- package/{src → dist/src}/executors/build/build.impl.d.ts +0 -1
- package/{src → dist/src}/executors/serve/serve.impl.d.ts +0 -1
- package/{src → dist/src}/executors/serve/serve.impl.js +2 -2
- package/{src → dist/src}/generators/action/action.impl.d.ts +0 -1
- package/{src → dist/src}/generators/action/action.impl.js +2 -0
- package/{src → dist/src}/generators/application/application.impl.d.ts +0 -1
- package/{src → dist/src}/generators/application/application.impl.js +3 -2
- package/{src → dist/src}/generators/application/lib/add-e2e.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/ignore-vite-temp-files.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/ignore-vite-temp-files.js +2 -35
- package/{src → dist/src}/generators/application/lib/index.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/update-unit-test-config.d.ts +0 -1
- package/{src → dist/src}/generators/application/lib/update-unit-test-config.js +1 -1
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/convert-to-inferred.js +2 -0
- package/{src → dist/src}/generators/convert-to-inferred/lib/build-post-target-transformer.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/lib/serve-post-target-transformer.d.ts +0 -1
- package/{src → dist/src}/generators/convert-to-inferred/lib/utils.d.ts +0 -1
- package/{src → dist/src}/generators/cypress-component-configuration/cypress-component-configuration.impl.d.ts +0 -1
- package/{src → dist/src}/generators/cypress-component-configuration/cypress-component-configuration.impl.js +2 -0
- package/{src → dist/src}/generators/error-boundary/error-boundary.impl.d.ts +0 -1
- package/{src → dist/src}/generators/error-boundary/error-boundary.impl.js +2 -0
- package/{src → dist/src}/generators/error-boundary/lib/add-v2-error-boundary.d.ts +0 -1
- package/{src → dist/src}/generators/error-boundary/lib/index.d.ts +0 -1
- package/{src → dist/src}/generators/error-boundary/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.d.ts +0 -1
- package/{src → dist/src}/generators/init/init.js +2 -1
- package/{src → dist/src}/generators/init/schema.json +1 -1
- package/{src → dist/src}/generators/library/lib/add-tsconfig-entry-points.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/add-unit-testing.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/add-unit-testing.js +1 -1
- package/{src → dist/src}/generators/library/lib/index.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/library/lib/update-buildable-config.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.impl.d.ts +0 -1
- package/{src → dist/src}/generators/library/library.impl.js +2 -0
- package/{src → dist/src}/generators/loader/loader.impl.d.ts +0 -1
- package/{src → dist/src}/generators/loader/loader.impl.js +2 -0
- package/{src → dist/src}/generators/meta/lib/v2.impl.d.ts +0 -1
- package/{src → dist/src}/generators/meta/meta.impl.d.ts +0 -1
- package/{src → dist/src}/generators/meta/meta.impl.js +2 -0
- package/{src → dist/src}/generators/preset/lib/normalize-options.d.ts +0 -1
- package/{src → dist/src}/generators/preset/preset.impl.d.ts +0 -1
- package/{src → dist/src}/generators/preset/preset.impl.js +2 -0
- package/{src → dist/src}/generators/resource-route/resource-route.impl.d.ts +0 -1
- package/{src → dist/src}/generators/resource-route/resource-route.impl.js +2 -0
- package/{src → dist/src}/generators/route/route.impl.d.ts +0 -1
- package/{src → dist/src}/generators/route/route.impl.js +2 -0
- package/{src → dist/src}/generators/setup/setup.impl.d.ts +0 -1
- package/{src → dist/src}/generators/setup/setup.impl.js +2 -0
- package/{src → dist/src}/generators/storybook-configuration/storybook-configuration.impl.d.ts +0 -1
- package/{src → dist/src}/generators/storybook-configuration/storybook-configuration.impl.js +3 -1
- package/{src → dist/src}/generators/style/style.impl.d.ts +0 -1
- package/{src → dist/src}/generators/style/style.impl.js +2 -0
- package/{src → dist/src}/generators/utils/update-dependencies.d.ts +0 -1
- package/{src → dist/src}/generators/utils/update-dependencies.js +5 -1
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +134 -0
- package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md +25 -0
- package/{src → dist/src}/plugins/plugin.d.ts +0 -1
- package/{src → dist/src}/utils/create-watch-paths.d.ts +0 -1
- package/{src → dist/src}/utils/deprecation.d.ts +0 -1
- package/{src → dist/src}/utils/executor-utils.d.ts +0 -1
- package/{src → dist/src}/utils/get-default-export-name.d.ts +0 -1
- package/{src → dist/src}/utils/get-default-export.d.ts +0 -1
- package/{src → dist/src}/utils/insert-import.d.ts +0 -1
- package/{src → dist/src}/utils/insert-statement-after-imports.d.ts +0 -1
- package/{src → dist/src}/utils/insert-statement-in-default-function.d.ts +0 -1
- package/{src → dist/src}/utils/remix-config.d.ts +0 -1
- package/{src → dist/src}/utils/remix-route-utils.d.ts +0 -1
- package/{src → dist/src}/utils/testing-config-utils.d.ts +0 -1
- package/{src → dist/src}/utils/versions.d.ts +2 -1
- package/{src → dist/src}/utils/versions.js +11 -2
- package/executors.json +4 -4
- package/generators.json +30 -30
- package/migrations.json +8 -70
- package/package.json +65 -21
- package/generators.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/plugin.d.ts.map +0 -1
- package/plugins/component-testing/index.d.ts.map +0 -1
- package/src/executors/build/build.impl.d.ts.map +0 -1
- package/src/executors/serve/serve.impl.d.ts.map +0 -1
- package/src/generators/action/action.impl.d.ts.map +0 -1
- package/src/generators/application/application.impl.d.ts.map +0 -1
- package/src/generators/application/lib/add-e2e.d.ts.map +0 -1
- package/src/generators/application/lib/ignore-vite-temp-files.d.ts.map +0 -1
- package/src/generators/application/lib/index.d.ts.map +0 -1
- package/src/generators/application/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/application/lib/update-unit-test-config.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/convert-to-inferred.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/build-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/serve-post-target-transformer.d.ts.map +0 -1
- package/src/generators/convert-to-inferred/lib/utils.d.ts.map +0 -1
- package/src/generators/cypress-component-configuration/cypress-component-configuration.impl.d.ts.map +0 -1
- package/src/generators/error-boundary/error-boundary.impl.d.ts.map +0 -1
- package/src/generators/error-boundary/lib/add-v2-error-boundary.d.ts.map +0 -1
- package/src/generators/error-boundary/lib/index.d.ts.map +0 -1
- package/src/generators/error-boundary/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/init/init.d.ts.map +0 -1
- package/src/generators/library/lib/add-tsconfig-entry-points.d.ts.map +0 -1
- package/src/generators/library/lib/add-unit-testing.d.ts.map +0 -1
- package/src/generators/library/lib/index.d.ts.map +0 -1
- package/src/generators/library/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/library/lib/update-buildable-config.d.ts.map +0 -1
- package/src/generators/library/library.impl.d.ts.map +0 -1
- package/src/generators/loader/loader.impl.d.ts.map +0 -1
- package/src/generators/meta/lib/v2.impl.d.ts.map +0 -1
- package/src/generators/meta/meta.impl.d.ts.map +0 -1
- package/src/generators/preset/lib/normalize-options.d.ts.map +0 -1
- package/src/generators/preset/preset.impl.d.ts.map +0 -1
- package/src/generators/resource-route/resource-route.impl.d.ts.map +0 -1
- package/src/generators/route/route.impl.d.ts.map +0 -1
- package/src/generators/setup/setup.impl.d.ts.map +0 -1
- package/src/generators/storybook-configuration/storybook-configuration.impl.d.ts.map +0 -1
- package/src/generators/style/style.impl.d.ts.map +0 -1
- package/src/generators/utils/update-dependencies.d.ts.map +0 -1
- package/src/plugins/plugin.d.ts.map +0 -1
- package/src/utils/create-watch-paths.d.ts.map +0 -1
- package/src/utils/deprecation.d.ts.map +0 -1
- package/src/utils/executor-utils.d.ts.map +0 -1
- package/src/utils/get-default-export-name.d.ts.map +0 -1
- package/src/utils/get-default-export.d.ts.map +0 -1
- package/src/utils/insert-import.d.ts.map +0 -1
- package/src/utils/insert-statement-after-imports.d.ts.map +0 -1
- package/src/utils/insert-statement-in-default-function.d.ts.map +0 -1
- package/src/utils/remix-config.d.ts.map +0 -1
- package/src/utils/remix-route-utils.d.ts.map +0 -1
- package/src/utils/testing-config-utils.d.ts.map +0 -1
- package/src/utils/versions.d.ts.map +0 -1
- /package/{LICENSE → dist/LICENSE} +0 -0
- /package/{generators.js → dist/generators.js} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{plugin.js → dist/plugin.js} +0 -0
- /package/{plugins → dist/plugins}/component-testing/index.js +0 -0
- /package/{src → dist/src}/executors/build/build.impl.js +0 -0
- /package/{src → dist/src}/executors/build/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/build/schema.json +0 -0
- /package/{src → dist/src}/executors/serve/schema.d.ts +0 -0
- /package/{src → dist/src}/executors/serve/schema.json +0 -0
- /package/{src → dist/src}/generators/action/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/action/schema.json +0 -0
- /package/{src → dist/src}/generators/application/files/common/app/entry.client.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/app/entry.server.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/app/root.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/app/routes/_index.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/public/favicon.ico +0 -0
- /package/{src → dist/src}/generators/application/files/common/tests/routes/_index.spec.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/common/vite.config.mts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/non-root/.gitignore__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/non-root/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/claimed/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/not-configured/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/nx-welcome/unclaimed/app/nx-welcome.tsx__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/ts-solution/package.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/ts-solution/tsconfig.app.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/files/ts-solution/tsconfig.json__tmpl__ +0 -0
- /package/{src → dist/src}/generators/application/lib/add-e2e.js +0 -0
- /package/{src → dist/src}/generators/application/lib/index.js +0 -0
- /package/{src → dist/src}/generators/application/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/application/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/application/schema.json +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/build-post-target-transformer.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/serve-post-target-transformer.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/lib/utils.js +0 -0
- /package/{src → dist/src}/generators/convert-to-inferred/schema.json +0 -0
- /package/{src → dist/src}/generators/cypress-component-configuration/files/cypress.config.ts__tmpl__ +0 -0
- /package/{src → dist/src}/generators/cypress-component-configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/cypress-component-configuration/schema.json +0 -0
- /package/{src → dist/src}/generators/error-boundary/lib/add-v2-error-boundary.js +0 -0
- /package/{src → dist/src}/generators/error-boundary/lib/index.js +0 -0
- /package/{src → dist/src}/generators/error-boundary/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/error-boundary/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/error-boundary/schema.json +0 -0
- /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/library/lib/add-tsconfig-entry-points.js +0 -0
- /package/{src → dist/src}/generators/library/lib/index.js +0 -0
- /package/{src → dist/src}/generators/library/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/library/lib/update-buildable-config.js +0 -0
- /package/{src → dist/src}/generators/library/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/library/schema.json +0 -0
- /package/{src → dist/src}/generators/loader/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/loader/schema.json +0 -0
- /package/{src → dist/src}/generators/meta/lib/v2.impl.js +0 -0
- /package/{src → dist/src}/generators/meta/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/meta/schema.json +0 -0
- /package/{src → dist/src}/generators/preset/lib/normalize-options.js +0 -0
- /package/{src → dist/src}/generators/preset/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/preset/schema.json +0 -0
- /package/{src → dist/src}/generators/resource-route/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/resource-route/schema.json +0 -0
- /package/{src → dist/src}/generators/route/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/route/schema.json +0 -0
- /package/{src → dist/src}/generators/setup/schema.json +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/files/vite.config.ts__tpl__ +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/storybook-configuration/schema.json +0 -0
- /package/{src → dist/src}/generators/style/schema.d.ts +0 -0
- /package/{src → dist/src}/generators/style/schema.json +0 -0
- /package/{src → dist/src}/plugins/plugin.js +0 -0
- /package/{src → dist/src}/utils/create-watch-paths.js +0 -0
- /package/{src → dist/src}/utils/deprecation.js +0 -0
- /package/{src → dist/src}/utils/executor-utils.js +0 -0
- /package/{src → dist/src}/utils/get-default-export-name.js +0 -0
- /package/{src → dist/src}/utils/get-default-export.js +0 -0
- /package/{src → dist/src}/utils/insert-import.js +0 -0
- /package/{src → dist/src}/utils/insert-statement-after-imports.js +0 -0
- /package/{src → dist/src}/utils/insert-statement-in-default-function.js +0 -0
- /package/{src → dist/src}/utils/remix-config.js +0 -0
- /package/{src → dist/src}/utils/remix-route-utils.js +0 -0
- /package/{src → dist/src}/utils/testing-config-utils.js +0 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = migrateCreateNodesV2ToCreateNodes;
|
|
4
|
+
exports.rewriteCreateNodesV2Imports = rewriteCreateNodesV2Imports;
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
|
|
7
|
+
const DEPRECATED_NAME = 'createNodesV2';
|
|
8
|
+
const CANONICAL_NAME = 'createNodes';
|
|
9
|
+
// Module specifiers from which `@nx/remix` publicly exposes `createNodesV2`.
|
|
10
|
+
// A named import or re-export of `createNodesV2` from one of these is rewritten
|
|
11
|
+
// to the canonical `createNodes` export.
|
|
12
|
+
const TARGET_SPECIFIERS = new Set(['@nx/remix/plugin']);
|
|
13
|
+
let ts;
|
|
14
|
+
async function migrateCreateNodesV2ToCreateNodes(tree) {
|
|
15
|
+
let touchedCount = 0;
|
|
16
|
+
(0, devkit_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
|
|
17
|
+
if (!TS_EXTENSIONS.some((ext) => filePath.endsWith(ext))) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const original = tree.read(filePath, 'utf-8');
|
|
21
|
+
if (!original || !original.includes(DEPRECATED_NAME)) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const updated = rewriteCreateNodesV2Imports(original, TARGET_SPECIFIERS);
|
|
25
|
+
if (updated !== original) {
|
|
26
|
+
tree.write(filePath, updated);
|
|
27
|
+
touchedCount += 1;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
if (touchedCount > 0) {
|
|
31
|
+
devkit_1.logger.info(`Renamed \`${DEPRECATED_NAME}\` imports to \`${CANONICAL_NAME}\` in ${touchedCount} file(s).`);
|
|
32
|
+
}
|
|
33
|
+
await (0, devkit_1.formatFiles)(tree);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Rewrites named imports and re-exports of `createNodesV2` to `createNodes`
|
|
37
|
+
* when they come from one of the given module specifiers. Only the named
|
|
38
|
+
* bindings are touched — the module specifier, the `import`/`export` keyword,
|
|
39
|
+
* any `type` modifier, and any default import are left untouched.
|
|
40
|
+
*/
|
|
41
|
+
function rewriteCreateNodesV2Imports(source, specifiers) {
|
|
42
|
+
ts ??= (0, devkit_1.ensurePackage)('typescript', '*');
|
|
43
|
+
const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
|
|
44
|
+
/* setParentNodes */ true, ts.ScriptKind.TSX);
|
|
45
|
+
const changes = [];
|
|
46
|
+
for (const stmt of sourceFile.statements) {
|
|
47
|
+
if (ts.isImportDeclaration(stmt)) {
|
|
48
|
+
collectImportRewrite(sourceFile, stmt, specifiers, changes);
|
|
49
|
+
}
|
|
50
|
+
else if (ts.isExportDeclaration(stmt)) {
|
|
51
|
+
collectExportRewrite(sourceFile, stmt, specifiers, changes);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return changes.length > 0 ? (0, devkit_1.applyChangesToString)(source, changes) : source;
|
|
55
|
+
}
|
|
56
|
+
function isTargetSpecifier(node, specifiers) {
|
|
57
|
+
return ts.isStringLiteral(node) && specifiers.has(node.text);
|
|
58
|
+
}
|
|
59
|
+
function collectImportRewrite(sourceFile, stmt, specifiers, changes) {
|
|
60
|
+
if (!isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const namedBindings = stmt.importClause?.namedBindings;
|
|
64
|
+
// Only `import { ... }` carries renameable named bindings. `import x`,
|
|
65
|
+
// `import * as ns`, and side-effect imports reference the module wholesale
|
|
66
|
+
// and keep working through the `createNodesV2` runtime alias, so we leave
|
|
67
|
+
// them be. A mixed `import def, { createNodesV2 }` still has its named
|
|
68
|
+
// bindings rewritten below — the default binding is untouched.
|
|
69
|
+
if (!namedBindings || !ts.isNamedImports(namedBindings)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
rewriteNamedBindings(sourceFile, namedBindings, changes);
|
|
73
|
+
}
|
|
74
|
+
function collectExportRewrite(sourceFile, stmt, specifiers, changes) {
|
|
75
|
+
if (!stmt.moduleSpecifier ||
|
|
76
|
+
!isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
// `export { ... } from '...'` can be rewritten; `export * from '...'` has no
|
|
80
|
+
// named bindings to rename.
|
|
81
|
+
if (!stmt.exportClause || !ts.isNamedExports(stmt.exportClause)) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
rewriteNamedBindings(sourceFile, stmt.exportClause, changes);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Re-renders the `{ ... }` of a named import/export, renaming any
|
|
88
|
+
* `createNodesV2` specifier to `createNodes`. If renaming would collide with a
|
|
89
|
+
* `createNodes` that is already present (e.g. `{ createNodes, createNodesV2 }`),
|
|
90
|
+
* the duplicate is dropped. Returns without recording a change when the binding
|
|
91
|
+
* list contains no `createNodesV2`.
|
|
92
|
+
*/
|
|
93
|
+
function rewriteNamedBindings(sourceFile, namedBindings, changes) {
|
|
94
|
+
const elements = namedBindings.elements;
|
|
95
|
+
const hasDeprecated = elements.some((el) => (el.propertyName ?? el.name).text === DEPRECATED_NAME);
|
|
96
|
+
if (!hasDeprecated) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const seen = new Set();
|
|
100
|
+
const rendered = [];
|
|
101
|
+
for (const el of elements) {
|
|
102
|
+
const text = renderSpecifier(el);
|
|
103
|
+
if (!seen.has(text)) {
|
|
104
|
+
seen.add(text);
|
|
105
|
+
rendered.push(text);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const start = namedBindings.getStart(sourceFile);
|
|
109
|
+
changes.push({
|
|
110
|
+
type: devkit_1.ChangeType.Delete,
|
|
111
|
+
start,
|
|
112
|
+
length: namedBindings.getEnd() - start,
|
|
113
|
+
}, {
|
|
114
|
+
type: devkit_1.ChangeType.Insert,
|
|
115
|
+
index: start,
|
|
116
|
+
text: `{ ${rendered.join(', ')} }`,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
function renderSpecifier(el) {
|
|
120
|
+
const typePrefix = el.isTypeOnly ? 'type ' : '';
|
|
121
|
+
const rename = (name) => name === DEPRECATED_NAME ? CANONICAL_NAME : name;
|
|
122
|
+
// `{ name }` — no alias, so the local binding follows the rename.
|
|
123
|
+
if (!el.propertyName) {
|
|
124
|
+
return `${typePrefix}${rename(el.name.text)}`;
|
|
125
|
+
}
|
|
126
|
+
// `{ propertyName as name }` — only the imported (left) side is renamed; the
|
|
127
|
+
// local alias is preserved. A now-redundant alias such as
|
|
128
|
+
// `createNodesV2 as createNodes` collapses to `createNodes`.
|
|
129
|
+
const canonicalImported = rename(el.propertyName.text);
|
|
130
|
+
const localName = el.name.text;
|
|
131
|
+
return canonicalImported === localName
|
|
132
|
+
? `${typePrefix}${localName}`
|
|
133
|
+
: `${typePrefix}${canonicalImported} as ${localName}`;
|
|
134
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#### Rename `createNodesV2` imports to `createNodes`
|
|
2
|
+
|
|
3
|
+
`@nx/remix` renamed its primary inferred-plugin export from `createNodesV2` to `createNodes`. The `createNodesV2` name is preserved as a deprecated alias for now, but new code should use `createNodes`.
|
|
4
|
+
|
|
5
|
+
This migration scans every `.ts`, `.tsx`, `.cts`, and `.mts` file in your workspace and rewrites named imports and re-exports of `createNodesV2` from `@nx/remix/plugin` to `createNodes`.
|
|
6
|
+
|
|
7
|
+
#### Sample Code Changes
|
|
8
|
+
|
|
9
|
+
##### Before
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { createNodesV2 } from '@nx/remix/plugin';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
##### After
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { createNodes } from '@nx/remix/plugin';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Aliases are preserved (`createNodesV2 as cn` becomes `createNodes as cn`), and if a file already imports both names (`{ createNodes, createNodesV2 }`) the redundant binding is dropped.
|
|
22
|
+
|
|
23
|
+
#### What is not rewritten
|
|
24
|
+
|
|
25
|
+
Only static `import`/`export` named bindings from `@nx/remix/plugin` are rewritten. Namespace imports, dynamic `import(...)`, `require(...)` destructuring, and property access such as `plugin.createNodesV2` are left untouched — they keep working through the `createNodesV2` runtime alias. Update those by hand if you want to drop the deprecated name everywhere.
|
|
@@ -14,4 +14,3 @@ export interface RemixPluginOptions {
|
|
|
14
14
|
export declare const createDependencies: CreateDependencies;
|
|
15
15
|
export declare const createNodes: CreateNodes<RemixPluginOptions>;
|
|
16
16
|
export declare const createNodesV2: CreateNodes<RemixPluginOptions>;
|
|
17
|
-
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -6,4 +6,3 @@ import { type ProjectGraph, type ProjectGraphProjectNode } from '@nx/devkit';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function createWatchPaths(dirname: string): Promise<string[]>;
|
|
8
8
|
export declare function getRelativeDependencyPaths(project: ProjectGraphProjectNode, deps: string[], graph: ProjectGraph): string[];
|
|
9
|
-
//# sourceMappingURL=create-watch-paths.d.ts.map
|
|
@@ -2,4 +2,3 @@ export declare const REMIX_BUILD_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/remix:
|
|
|
2
2
|
export declare const REMIX_SERVE_EXECUTOR_DEPRECATION_MESSAGE = "The `@nx/remix:serve` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/remix:convert-to-inferred` to migrate to the `@nx/remix/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.";
|
|
3
3
|
export declare function warnRemixBuildExecutorDeprecation(): void;
|
|
4
4
|
export declare function warnRemixServeExecutorDeprecation(): void;
|
|
5
|
-
//# sourceMappingURL=deprecation.d.ts.map
|
|
@@ -4,4 +4,3 @@ export declare function getRemixConfigPathDetails(tree: Tree, projectName: strin
|
|
|
4
4
|
export declare function getRemixConfigPath(tree: Tree, projectName: string): string;
|
|
5
5
|
export declare function getRemixConfigPathFromProjectRoot(tree: Tree, projectRoot: string): string;
|
|
6
6
|
export declare function getRemixConfigValues(tree: Tree, projectName: string): Promise<AppConfig>;
|
|
7
|
-
//# sourceMappingURL=remix-config.d.ts.map
|
|
@@ -2,4 +2,3 @@ import { Tree } from '@nx/devkit';
|
|
|
2
2
|
export declare function normalizeRoutePath(path: string): string;
|
|
3
3
|
export declare function checkRoutePathForErrors(path: string): RegExpMatchArray;
|
|
4
4
|
export declare function resolveRemixAppDirectory(tree: Tree, projectName: string): Promise<string>;
|
|
5
|
-
//# sourceMappingURL=remix-route-utils.d.ts.map
|
|
@@ -3,4 +3,3 @@ export declare function updateVitestTestSetup(tree: Tree, pathToVitestConfig: st
|
|
|
3
3
|
export declare function updateJestTestSetup(tree: Tree, pathToJestConfig: string, pathToTestSetup: string): void;
|
|
4
4
|
export declare function updateJestTestMatch(tree: Tree, pathToJestConfig: string, includesString: string): void;
|
|
5
5
|
export declare function updateVitestTestIncludes(tree: Tree, pathToVitestConfig: string, includesString: string): void;
|
|
6
|
-
//# sourceMappingURL=testing-config-utils.d.ts.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Tree } from '@nx/devkit';
|
|
2
2
|
export declare const nxVersion: any;
|
|
3
|
+
export declare const minSupportedRemixVersion = "2.0.0";
|
|
4
|
+
export declare function assertSupportedRemixVersion(tree: Tree): void;
|
|
3
5
|
export declare const remixVersion = "^2.17.3";
|
|
4
6
|
export declare const isbotVersion = "^4.4.0";
|
|
5
7
|
export declare const reactVersion = "^18.2.0";
|
|
@@ -16,4 +18,3 @@ export declare const testingLibraryDomVersion = "^10.4.0";
|
|
|
16
18
|
export declare const testingLibraryUserEventsVersion = "^14.5.2";
|
|
17
19
|
export declare const viteVersion = "^6.0.0";
|
|
18
20
|
export declare function getRemixVersion(tree: Tree): string;
|
|
19
|
-
//# sourceMappingURL=versions.d.ts.map
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.viteVersion = exports.testingLibraryUserEventsVersion = exports.testingLibraryDomVersion = exports.testingLibraryJestDomVersion = exports.testingLibraryReactVersion = exports.autoprefixerVersion = exports.postcssVersion = exports.typescriptVersion = exports.eslintVersion = exports.typesReactDomVersion = exports.typesReactVersion = exports.reactDomVersion = exports.reactVersion = exports.isbotVersion = exports.remixVersion = exports.nxVersion = void 0;
|
|
3
|
+
exports.viteVersion = exports.testingLibraryUserEventsVersion = exports.testingLibraryDomVersion = exports.testingLibraryJestDomVersion = exports.testingLibraryReactVersion = exports.autoprefixerVersion = exports.postcssVersion = exports.typescriptVersion = exports.eslintVersion = exports.typesReactDomVersion = exports.typesReactVersion = exports.reactDomVersion = exports.reactVersion = exports.isbotVersion = exports.remixVersion = exports.minSupportedRemixVersion = exports.nxVersion = void 0;
|
|
4
|
+
exports.assertSupportedRemixVersion = assertSupportedRemixVersion;
|
|
4
5
|
exports.getRemixVersion = getRemixVersion;
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
const internal_1 = require("@nx/devkit/internal");
|
|
9
|
+
exports.nxVersion = require((0, path_1.join)('@nx/remix', 'package.json')).version;
|
|
10
|
+
// @nx/remix supports Remix v2 only. React Router v7 (the successor to Remix) is
|
|
11
|
+
// handled by @nx/react. The floor rejects Remix v1; v2 is the only supported major.
|
|
12
|
+
exports.minSupportedRemixVersion = '2.0.0';
|
|
13
|
+
function assertSupportedRemixVersion(tree) {
|
|
14
|
+
(0, internal_1.assertSupportedPackageVersion)(tree, '@remix-run/dev', exports.minSupportedRemixVersion);
|
|
15
|
+
}
|
|
7
16
|
exports.remixVersion = '^2.17.3';
|
|
8
17
|
exports.isbotVersion = '^4.4.0';
|
|
9
18
|
exports.reactVersion = '^18.2.0';
|
package/executors.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"executors": {
|
|
3
3
|
"serve": {
|
|
4
|
-
"implementation": "./src/executors/serve/serve.impl",
|
|
5
|
-
"schema": "./src/executors/serve/schema.json",
|
|
4
|
+
"implementation": "./dist/src/executors/serve/serve.impl",
|
|
5
|
+
"schema": "./dist/src/executors/serve/schema.json",
|
|
6
6
|
"description": "Serve a Remix application."
|
|
7
7
|
},
|
|
8
8
|
"build": {
|
|
9
|
-
"implementation": "./src/executors/build/build.impl",
|
|
10
|
-
"schema": "./src/executors/build/schema.json",
|
|
9
|
+
"implementation": "./dist/src/executors/build/build.impl",
|
|
10
|
+
"schema": "./dist/src/executors/build/schema.json",
|
|
11
11
|
"description": "Build a Remix application."
|
|
12
12
|
}
|
|
13
13
|
}
|
package/generators.json
CHANGED
|
@@ -5,85 +5,85 @@
|
|
|
5
5
|
"extends": ["@nx/react"],
|
|
6
6
|
"generators": {
|
|
7
7
|
"preset": {
|
|
8
|
-
"implementation": "./src/generators/preset/preset.impl",
|
|
9
|
-
"schema": "./src/generators/preset/schema.json",
|
|
8
|
+
"implementation": "./dist/src/generators/preset/preset.impl",
|
|
9
|
+
"schema": "./dist/src/generators/preset/schema.json",
|
|
10
10
|
"description": "Generate a new Remix workspace",
|
|
11
11
|
"hidden": true
|
|
12
12
|
},
|
|
13
13
|
"setup": {
|
|
14
|
-
"implementation": "./src/generators/setup/setup.impl",
|
|
15
|
-
"schema": "./src/generators/setup/schema.json",
|
|
14
|
+
"implementation": "./dist/src/generators/setup/setup.impl",
|
|
15
|
+
"schema": "./dist/src/generators/setup/schema.json",
|
|
16
16
|
"description": "Setup a Remix in an existing workspace",
|
|
17
17
|
"hidden": true
|
|
18
18
|
},
|
|
19
19
|
"application": {
|
|
20
|
-
"implementation": "./src/generators/application/application.impl#remixApplicationGeneratorInternal",
|
|
21
|
-
"schema": "./src/generators/application/schema.json",
|
|
20
|
+
"implementation": "./dist/src/generators/application/application.impl#remixApplicationGeneratorInternal",
|
|
21
|
+
"schema": "./dist/src/generators/application/schema.json",
|
|
22
22
|
"description": "Generate a new Remix application",
|
|
23
23
|
"aliases": ["app"],
|
|
24
24
|
"x-type": "application"
|
|
25
25
|
},
|
|
26
26
|
"cypress-component-configuration": {
|
|
27
|
-
"implementation": "./src/generators/cypress-component-configuration/cypress-component-configuration.impl#cypressComponentConfigurationGeneratorInternal",
|
|
28
|
-
"schema": "./src/generators/cypress-component-configuration/schema.json",
|
|
27
|
+
"implementation": "./dist/src/generators/cypress-component-configuration/cypress-component-configuration.impl#cypressComponentConfigurationGeneratorInternal",
|
|
28
|
+
"schema": "./dist/src/generators/cypress-component-configuration/schema.json",
|
|
29
29
|
"description": "Generate a Cypress Component Testing configuration for a Remix project"
|
|
30
30
|
},
|
|
31
31
|
"library": {
|
|
32
|
-
"implementation": "./src/generators/library/library.impl#remixLibraryGeneratorInternal",
|
|
33
|
-
"schema": "./src/generators/library/schema.json",
|
|
32
|
+
"implementation": "./dist/src/generators/library/library.impl#remixLibraryGeneratorInternal",
|
|
33
|
+
"schema": "./dist/src/generators/library/schema.json",
|
|
34
34
|
"description": "Generate a new library",
|
|
35
35
|
"aliases": ["lib"],
|
|
36
36
|
"x-type": "library"
|
|
37
37
|
},
|
|
38
38
|
"init": {
|
|
39
|
-
"implementation": "./src/generators/init/init#remixInitGeneratorInternal",
|
|
40
|
-
"schema": "./src/generators/init/schema.json",
|
|
39
|
+
"implementation": "./dist/src/generators/init/init#remixInitGeneratorInternal",
|
|
40
|
+
"schema": "./dist/src/generators/init/schema.json",
|
|
41
41
|
"description": "Initialize the `@nx/remix` plugin.",
|
|
42
42
|
"hidden": true
|
|
43
43
|
},
|
|
44
44
|
"route": {
|
|
45
|
-
"implementation": "./src/generators/route/route.impl",
|
|
46
|
-
"schema": "./src/generators/route/schema.json",
|
|
45
|
+
"implementation": "./dist/src/generators/route/route.impl",
|
|
46
|
+
"schema": "./dist/src/generators/route/schema.json",
|
|
47
47
|
"description": "Generate a new route"
|
|
48
48
|
},
|
|
49
49
|
"resource-route": {
|
|
50
|
-
"implementation": "./src/generators/resource-route/resource-route.impl",
|
|
51
|
-
"schema": "./src/generators/resource-route/schema.json",
|
|
50
|
+
"implementation": "./dist/src/generators/resource-route/resource-route.impl",
|
|
51
|
+
"schema": "./dist/src/generators/resource-route/schema.json",
|
|
52
52
|
"description": "Generate a new resource route"
|
|
53
53
|
},
|
|
54
54
|
"action": {
|
|
55
|
-
"implementation": "./src/generators/action/action.impl",
|
|
56
|
-
"schema": "./src/generators/action/schema.json",
|
|
55
|
+
"implementation": "./dist/src/generators/action/action.impl",
|
|
56
|
+
"schema": "./dist/src/generators/action/schema.json",
|
|
57
57
|
"description": "Add an action function to an existing route"
|
|
58
58
|
},
|
|
59
59
|
"loader": {
|
|
60
|
-
"implementation": "./src/generators/loader/loader.impl",
|
|
61
|
-
"schema": "./src/generators/loader/schema.json",
|
|
60
|
+
"implementation": "./dist/src/generators/loader/loader.impl",
|
|
61
|
+
"schema": "./dist/src/generators/loader/schema.json",
|
|
62
62
|
"description": "Add a loader function to an existing route"
|
|
63
63
|
},
|
|
64
64
|
"style": {
|
|
65
|
-
"implementation": "./src/generators/style/style.impl",
|
|
66
|
-
"schema": "./src/generators/style/schema.json",
|
|
65
|
+
"implementation": "./dist/src/generators/style/style.impl",
|
|
66
|
+
"schema": "./dist/src/generators/style/schema.json",
|
|
67
67
|
"description": "Generates a new stylesheet and adds it to an existing route"
|
|
68
68
|
},
|
|
69
69
|
"storybook-configuration": {
|
|
70
|
-
"implementation": "./src/generators/storybook-configuration/storybook-configuration.impl#remixStorybookConfiguration",
|
|
71
|
-
"schema": "./src/generators/storybook-configuration/schema.json",
|
|
70
|
+
"implementation": "./dist/src/generators/storybook-configuration/storybook-configuration.impl#remixStorybookConfiguration",
|
|
71
|
+
"schema": "./dist/src/generators/storybook-configuration/schema.json",
|
|
72
72
|
"description": "Generates a Storybook configuration for a Remix application"
|
|
73
73
|
},
|
|
74
74
|
"meta": {
|
|
75
|
-
"implementation": "./src/generators/meta/meta.impl",
|
|
76
|
-
"schema": "./src/generators/meta/schema.json",
|
|
75
|
+
"implementation": "./dist/src/generators/meta/meta.impl",
|
|
76
|
+
"schema": "./dist/src/generators/meta/schema.json",
|
|
77
77
|
"description": "Add a meta function to an existing route"
|
|
78
78
|
},
|
|
79
79
|
"error-boundary": {
|
|
80
|
-
"implementation": "./src/generators/error-boundary/error-boundary.impl",
|
|
81
|
-
"schema": "./src/generators/error-boundary/schema.json",
|
|
80
|
+
"implementation": "./dist/src/generators/error-boundary/error-boundary.impl",
|
|
81
|
+
"schema": "./dist/src/generators/error-boundary/schema.json",
|
|
82
82
|
"description": "Add an ErrorBoundary to an existing route"
|
|
83
83
|
},
|
|
84
84
|
"convert-to-inferred": {
|
|
85
|
-
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
|
|
86
|
-
"schema": "./src/generators/convert-to-inferred/schema.json",
|
|
85
|
+
"factory": "./dist/src/generators/convert-to-inferred/convert-to-inferred",
|
|
86
|
+
"schema": "./dist/src/generators/convert-to-inferred/schema.json",
|
|
87
87
|
"description": "Convert existing Remix project(s) using `@nx/remix:*` executors to use `@nx/remix/plugin`. Defaults to migrating all projects. Pass '--project' to migrate only one target."
|
|
88
88
|
}
|
|
89
89
|
}
|
package/migrations.json
CHANGED
|
@@ -1,75 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generators": {
|
|
2
|
+
"generators": {
|
|
3
|
+
"update-23-0-0-migrate-create-nodes-v2-import": {
|
|
4
|
+
"version": "23.0.0-beta.24",
|
|
5
|
+
"description": "Rename imports of `createNodesV2` from `@nx/remix/plugin` to the canonical `createNodes` export.",
|
|
6
|
+
"implementation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes",
|
|
7
|
+
"documentation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
3
10
|
"packageJsonUpdates": {
|
|
4
|
-
"20.1.0": {
|
|
5
|
-
"version": "20.1.0-beta.5",
|
|
6
|
-
"packages": {
|
|
7
|
-
"@remix-run/node": {
|
|
8
|
-
"version": "^2.14.0",
|
|
9
|
-
"alwaysAddToPackageJson": true
|
|
10
|
-
},
|
|
11
|
-
"@remix-run/react": {
|
|
12
|
-
"version": "^2.14.0",
|
|
13
|
-
"alwaysAddToPackageJson": true
|
|
14
|
-
},
|
|
15
|
-
"@remix-run/serve": {
|
|
16
|
-
"version": "^2.14.0",
|
|
17
|
-
"alwaysAddToPackageJson": true
|
|
18
|
-
},
|
|
19
|
-
"@remix-run/dev": {
|
|
20
|
-
"version": "^2.14.0",
|
|
21
|
-
"alwaysAddToPackageJson": true
|
|
22
|
-
},
|
|
23
|
-
"@remix-run/css-bundle": {
|
|
24
|
-
"version": "^2.14.0",
|
|
25
|
-
"alwaysAddToPackageJson": true
|
|
26
|
-
},
|
|
27
|
-
"@remix-run/eslint-config": {
|
|
28
|
-
"version": "^2.14.0",
|
|
29
|
-
"alwaysAddToPackageJson": true
|
|
30
|
-
},
|
|
31
|
-
"@remix-run/server-runtime": {
|
|
32
|
-
"version": "^2.14.0",
|
|
33
|
-
"alwaysAddToPackageJson": false
|
|
34
|
-
},
|
|
35
|
-
"@remix-run/testing": {
|
|
36
|
-
"version": "^2.14.0",
|
|
37
|
-
"alwaysAddToPackageJson": false
|
|
38
|
-
},
|
|
39
|
-
"@remix-run/express": {
|
|
40
|
-
"version": "^2.14.0",
|
|
41
|
-
"alwaysAddToPackageJson": false
|
|
42
|
-
},
|
|
43
|
-
"@remix-run/cloudflare": {
|
|
44
|
-
"version": "^2.14.0",
|
|
45
|
-
"alwaysAddToPackageJson": false
|
|
46
|
-
},
|
|
47
|
-
"@remix-run/cloudflare-pages": {
|
|
48
|
-
"version": "^2.14.0",
|
|
49
|
-
"alwaysAddToPackageJson": false
|
|
50
|
-
},
|
|
51
|
-
"@remix-run/cloudflare-workers": {
|
|
52
|
-
"version": "^2.14.0",
|
|
53
|
-
"alwaysAddToPackageJson": false
|
|
54
|
-
},
|
|
55
|
-
"@remix-run/architect": {
|
|
56
|
-
"version": "^2.14.0",
|
|
57
|
-
"alwaysAddToPackageJson": false
|
|
58
|
-
},
|
|
59
|
-
"@remix-run/deno": {
|
|
60
|
-
"version": "^2.14.0",
|
|
61
|
-
"alwaysAddToPackageJson": false
|
|
62
|
-
},
|
|
63
|
-
"@remix-run/route-config": {
|
|
64
|
-
"version": "^2.14.0",
|
|
65
|
-
"alwaysAddToPackageJson": false
|
|
66
|
-
},
|
|
67
|
-
"@remix-run/fs-routes": {
|
|
68
|
-
"version": "^2.14.0",
|
|
69
|
-
"alwaysAddToPackageJson": false
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
11
|
"22.3.4": {
|
|
74
12
|
"version": "22.3.4-beta.0",
|
|
75
13
|
"packages": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/remix",
|
|
3
|
-
"version": "23.0.0-beta.
|
|
3
|
+
"version": "23.0.0-beta.25",
|
|
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",
|
|
@@ -21,47 +21,91 @@
|
|
|
21
21
|
"url": "https://github.com/nrwl/nx/issues"
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://nx.dev",
|
|
24
|
-
"main": "./index.js",
|
|
24
|
+
"main": "./dist/index.js",
|
|
25
25
|
"type": "commonjs",
|
|
26
|
-
"types": "./index.d.ts",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"!dist/tsconfig.tsbuildinfo",
|
|
30
|
+
"migrations.json",
|
|
31
|
+
"executors.json",
|
|
32
|
+
"generators.json"
|
|
33
|
+
],
|
|
34
|
+
"typesVersions": {
|
|
35
|
+
"*": {
|
|
36
|
+
"generators": [
|
|
37
|
+
"dist/generators.d.ts"
|
|
38
|
+
],
|
|
39
|
+
"plugin": [
|
|
40
|
+
"dist/plugin.d.ts"
|
|
41
|
+
],
|
|
42
|
+
"plugins/component-testing": [
|
|
43
|
+
"dist/plugins/component-testing/index.d.ts"
|
|
44
|
+
],
|
|
45
|
+
"plugins/*": [
|
|
46
|
+
"dist/plugins/*.d.ts"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
27
50
|
"generators": "./generators.json",
|
|
28
51
|
"executors": "./executors.json",
|
|
29
52
|
"nx-migrations": {
|
|
30
|
-
"migrations": "./migrations.json"
|
|
53
|
+
"migrations": "./migrations.json",
|
|
54
|
+
"supportsOptionalUpdates": true
|
|
31
55
|
},
|
|
32
56
|
"dependencies": {
|
|
33
|
-
"@nx/devkit": "23.0.0-beta.23",
|
|
34
|
-
"@nx/js": "23.0.0-beta.23",
|
|
35
|
-
"@nx/react": "23.0.0-beta.23",
|
|
36
57
|
"tslib": "^2.3.0",
|
|
37
|
-
"@phenomnomnominal/tsquery": "~6.2.0"
|
|
58
|
+
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
59
|
+
"@nx/devkit": "23.0.0-beta.25",
|
|
60
|
+
"@nx/js": "23.0.0-beta.25",
|
|
61
|
+
"@nx/react": "23.0.0-beta.25",
|
|
62
|
+
"@nx/web": "23.0.0-beta.25"
|
|
38
63
|
},
|
|
39
64
|
"devDependencies": {
|
|
40
|
-
"@nx/eslint": "23.0.0-beta.
|
|
41
|
-
"nx": "23.0.0-beta.
|
|
42
|
-
"@nx/vitest": "23.0.0-beta.
|
|
65
|
+
"@nx/eslint": "23.0.0-beta.25",
|
|
66
|
+
"nx": "23.0.0-beta.25",
|
|
67
|
+
"@nx/vitest": "23.0.0-beta.25"
|
|
43
68
|
},
|
|
44
69
|
"peerDependencies": {
|
|
45
|
-
"@remix-run/dev": "^2.
|
|
70
|
+
"@remix-run/dev": "^2.0.0"
|
|
71
|
+
},
|
|
72
|
+
"peerDependenciesMeta": {
|
|
73
|
+
"@remix-run/dev": {
|
|
74
|
+
"optional": true
|
|
75
|
+
}
|
|
46
76
|
},
|
|
47
77
|
"publishConfig": {
|
|
48
78
|
"access": "public"
|
|
49
79
|
},
|
|
50
80
|
"exports": {
|
|
51
81
|
".": {
|
|
52
|
-
"
|
|
53
|
-
"types": "./index.d.ts"
|
|
82
|
+
"@nx/nx-source": "./index.ts",
|
|
83
|
+
"types": "./dist/index.d.ts",
|
|
84
|
+
"default": "./dist/index.js"
|
|
54
85
|
},
|
|
55
|
-
"./executors/*/schema.json": "./src/executors/*/schema.json",
|
|
56
|
-
"./executors/*/schema": "./src/executors/*/schema.d.ts",
|
|
57
|
-
"./generators/*/schema.json": "./src/generators/*/schema.json",
|
|
58
|
-
"./generators/*/schema": "./src/generators/*/schema.d.ts",
|
|
59
86
|
"./package.json": "./package.json",
|
|
60
87
|
"./generators.json": "./generators.json",
|
|
61
88
|
"./executors.json": "./executors.json",
|
|
62
89
|
"./migrations.json": "./migrations.json",
|
|
63
|
-
"./generators":
|
|
64
|
-
|
|
65
|
-
|
|
90
|
+
"./generators": {
|
|
91
|
+
"@nx/nx-source": "./generators.ts",
|
|
92
|
+
"types": "./dist/generators.d.ts",
|
|
93
|
+
"default": "./dist/generators.js"
|
|
94
|
+
},
|
|
95
|
+
"./plugin": {
|
|
96
|
+
"@nx/nx-source": "./plugin.ts",
|
|
97
|
+
"types": "./dist/plugin.d.ts",
|
|
98
|
+
"default": "./dist/plugin.js"
|
|
99
|
+
},
|
|
100
|
+
"./plugins/component-testing": {
|
|
101
|
+
"@nx/nx-source": "./plugins/component-testing/index.ts",
|
|
102
|
+
"types": "./dist/plugins/component-testing/index.d.ts",
|
|
103
|
+
"default": "./dist/plugins/component-testing/index.js"
|
|
104
|
+
},
|
|
105
|
+
"./plugins/*": {
|
|
106
|
+
"@nx/nx-source": "./plugins/*.ts",
|
|
107
|
+
"types": "./dist/plugins/*.d.ts",
|
|
108
|
+
"default": "./dist/plugins/*.js"
|
|
109
|
+
}
|
|
66
110
|
}
|
|
67
111
|
}
|
package/generators.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generators.d.ts","sourceRoot":"","sources":["../../../packages/remix/generators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,sCAAsC,EAAE,MAAM,uFAAuF,CAAC;AAC1J,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACxG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACxG,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,uEAAuE,CAAC;AACnI,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC"}
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/remix/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/plugin.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../packages/remix/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/remix/plugins/component-testing/index.ts"],"names":[],"mappings":"AAMA,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG;IAC9D,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,aAAa,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CA0CA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/executors/build/build.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,eAAe,EACrB,MAAM,YAAY,CAAC;AAMpB,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAgCjD,wBAA8B,aAAa,CACzC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,eAAe;;GAiFzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serve.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/executors/serve/serve.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAKjE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA0CjD,wBAA+B,aAAa,CAC1C,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,eAAe;aAgBc,OAAO;aAAW,MAAM;cAiC/D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/remix/src/generators/action/action.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,yBAA+B,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,iBAoC9D"}
|