@nrwl/remix 14.1.7 → 14.4.2

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,13 +1,13 @@
1
1
  {
2
2
  "name": "@nrwl/remix",
3
- "version": "14.1.7",
3
+ "version": "14.4.2",
4
4
  "main": "src/index.js",
5
5
  "generators": "./generators.json",
6
6
  "dependencies": {
7
- "@nrwl/devkit": "^13.4.3",
8
- "@nrwl/js": "^13.4.3",
9
- "@nrwl/react": "^13.4.3",
7
+ "@nrwl/devkit": "^14.4.2",
8
+ "@nrwl/js": "^14.4.2",
9
+ "@nrwl/react": "^14.4.2",
10
10
  "tslib": "^2.3.1"
11
11
  },
12
12
  "typings": "./src/index.d.ts"
13
- }
13
+ }
@@ -8,7 +8,7 @@ const get_default_export_name_1 = require("../../utils/get-default-export-name")
8
8
  const insert_statement_in_default_function_1 = require("../../utils/insert-statement-in-default-function");
9
9
  const remix_route_utils_1 = require("../../utils/remix-route-utils");
10
10
  function default_1(tree, schema) {
11
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
11
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
12
  const routeFilePath = (0, remix_route_utils_1.resolveRemixRouteFile)(tree, schema.path, schema.project);
13
13
  if (!tree.exists(routeFilePath)) {
14
14
  throw new Error(`Route path does not exist: ${routeFilePath}. Please generate a Remix route first.`);
@@ -6,7 +6,7 @@ const normalize_options_1 = require("./lib/normalize-options");
6
6
  const run_tasks_in_serial_1 = require("@nrwl/workspace/src/utilities/run-tasks-in-serial");
7
7
  const child_process_1 = require("child_process");
8
8
  function default_1(tree, _options) {
9
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
9
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
10
  const options = (0, normalize_options_1.normalizeOptions)(tree, _options);
11
11
  const tasks = [];
12
12
  (0, devkit_1.addProjectConfiguration)(tree, options.projectName, {
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
4
4
  const devkit_1 = require("@nrwl/devkit");
5
5
  const cypress_1 = require("@nrwl/cypress");
6
6
  function default_1(tree, options) {
7
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
7
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
8
  const initSideEffects = (0, cypress_1.cypressInitGenerator)(tree, {});
9
9
  const projSideEffects = (0, cypress_1.cypressProjectGenerator)(tree, Object.assign(Object.assign({}, options), { standaloneConfig: true }));
10
10
  const config = (0, devkit_1.readProjectConfiguration)(tree, options.name);
@@ -17,7 +17,7 @@ function default_1(tree, options) {
17
17
  });
18
18
  });`);
19
19
  // returning this in case the cypress generator has any side effects
20
- return () => (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
20
+ return () => tslib_1.__awaiter(this, void 0, void 0, function* () {
21
21
  yield initSideEffects;
22
22
  yield projSideEffects;
23
23
  });
@@ -7,7 +7,7 @@ const linter_1 = require("@nrwl/linter");
7
7
  const child_process_1 = require("child_process");
8
8
  const run_tasks_in_serial_1 = require("@nrwl/workspace/src/utilities/run-tasks-in-serial");
9
9
  function default_1(tree, options) {
10
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
11
  const tasks = [];
12
12
  const name = (0, devkit_1.names)(options.name).fileName;
13
13
  const pm = (0, devkit_1.detectPackageManager)();
@@ -8,7 +8,7 @@ const get_default_export_name_1 = require("../../utils/get-default-export-name")
8
8
  const insert_statement_in_default_function_1 = require("../../utils/insert-statement-in-default-function");
9
9
  const remix_route_utils_1 = require("../../utils/remix-route-utils");
10
10
  function default_1(tree, schema) {
11
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
11
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
12
  const routeFilePath = (0, remix_route_utils_1.resolveRemixRouteFile)(tree, schema.path, schema.project);
13
13
  if (!tree.exists(routeFilePath)) {
14
14
  throw new Error(`Route path does not exist: ${routeFilePath}. Please generate a Remix route first.`);
@@ -7,7 +7,7 @@ const insert_statement_after_imports_1 = require("../../utils/insert-statement-a
7
7
  const get_default_export_name_1 = require("../../utils/get-default-export-name");
8
8
  const remix_route_utils_1 = require("../../utils/remix-route-utils");
9
9
  function default_1(tree, schema) {
10
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
10
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
11
11
  const routeFilePath = (0, remix_route_utils_1.resolveRemixRouteFile)(tree, schema.path, schema.project);
12
12
  if (!tree.exists(routeFilePath)) {
13
13
  throw new Error(`Route path does not exist: ${routeFilePath}. Please generate a Remix route first.`);
@@ -8,7 +8,7 @@ const setup_impl_1 = require("../setup/setup.impl");
8
8
  const run_tasks_in_serial_1 = require("@nrwl/workspace/src/utilities/run-tasks-in-serial");
9
9
  const set_default_collection_1 = require("@nrwl/workspace/src/utilities/set-default-collection");
10
10
  function default_1(tree, _options) {
11
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
11
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
12
  const options = (0, normalize_options_1.normalizeOptions)(tree, _options);
13
13
  const tasks = [];
14
14
  const appGenTask = yield (0, application_impl_1.default)(tree, {
@@ -6,7 +6,7 @@ const loader_impl_1 = require("../loader/loader.impl");
6
6
  const action_impl_1 = require("../action/action.impl");
7
7
  const remix_route_utils_1 = require("../../utils/remix-route-utils");
8
8
  function default_1(tree, options) {
9
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
9
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
10
  const routeFilePath = (0, remix_route_utils_1.resolveRemixRouteFile)(tree, options.path, options.project, '.ts');
11
11
  if (tree.exists(routeFilePath))
12
12
  throw new Error(`Path already exists: ${options.path}`);
@@ -8,7 +8,7 @@ const action_impl_1 = require("../action/action.impl");
8
8
  const style_impl_1 = require("../style/style.impl");
9
9
  const remix_route_utils_1 = require("../../utils/remix-route-utils");
10
10
  function default_1(tree, options) {
11
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
11
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
12
  const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
13
13
  if (!project)
14
14
  throw new Error(`Project does not exist: ${options.project}`);
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
4
4
  const devkit_1 = require("@nrwl/devkit");
5
5
  function default_1(tree, options) {
6
6
  var _a;
7
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
7
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
8
  const { libsDir } = (0, devkit_1.getWorkspaceLayout)(tree);
9
9
  const pm = (_a = options.packageManager) !== null && _a !== void 0 ? _a : (0, devkit_1.detectPackageManager)();
10
10
  // Enable yarn/npm/pnpm workspaces for buildable libs
@@ -6,7 +6,7 @@ const insert_import_1 = require("../../utils/insert-import");
6
6
  const insert_statement_after_imports_1 = require("../../utils/insert-statement-after-imports");
7
7
  const remix_route_utils_1 = require("../../utils/remix-route-utils");
8
8
  function default_1(tree, options) {
9
- return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
9
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
10
  const { fileName: routePath, className: componentName } = (0, devkit_1.names)(options.path.replace(/^\//, '').replace(/\/$/, '').replace('.tsx', ''));
11
11
  const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
12
12
  if (!project)