create-nx-workspace 19.0.0-beta.1 → 19.0.0-beta.10

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.
@@ -86,7 +86,7 @@ exports.commandsObject = yargs
86
86
  })
87
87
  .option('e2eTestRunner', {
88
88
  describe: chalk.dim `Test runner to use for end to end (E2E) tests.`,
89
- choices: ['cypress', 'playwright', 'none'],
89
+ choices: ['playwright', 'cypress', 'none'],
90
90
  type: 'string',
91
91
  })
92
92
  .option('ssr', {
@@ -104,14 +104,7 @@ exports.commandsObject = yargs
104
104
  });
105
105
  throw error;
106
106
  });
107
- }, [
108
- normalizeArgsMiddleware,
109
- normalizeAndWarnOnDeprecatedPreset({
110
- // TODO(v19): Remove Empty and Core presets
111
- [preset_1.Preset.Core]: preset_1.Preset.NPM,
112
- [preset_1.Preset.Empty]: preset_1.Preset.Apps,
113
- }),
114
- ])
107
+ }, [normalizeArgsMiddleware])
115
108
  .help('help', chalk.dim `Show help`)
116
109
  .updateLocale(decorator_1.yargsDecorator)
117
110
  .version('version', chalk.dim `Show version`, nx_version_1.nxVersion);
@@ -142,22 +135,6 @@ async function main(parsedArgs) {
142
135
  });
143
136
  }
144
137
  }
145
- function normalizeAndWarnOnDeprecatedPreset(deprecatedPresets) {
146
- return async (args) => {
147
- if (!args.preset)
148
- return;
149
- if (deprecatedPresets[args.preset]) {
150
- output_1.output.addVerticalSeparator();
151
- output_1.output.note({
152
- title: `The "${args.preset}" preset is deprecated.`,
153
- bodyLines: [
154
- `The "${args.preset}" preset will be removed in a future Nx release. Use the "${deprecatedPresets[args.preset]}" preset instead.`,
155
- ],
156
- });
157
- args.preset = deprecatedPresets[args.preset];
158
- }
159
- };
160
- }
161
138
  /**
162
139
  * This function is used to normalize the arguments passed to the command.
163
140
  * It would:
@@ -1005,14 +982,14 @@ async function determineE2eTestRunner(parsedArgs) {
1005
982
  type: 'autocomplete',
1006
983
  name: 'e2eTestRunner',
1007
984
  choices: [
1008
- {
1009
- name: 'cypress',
1010
- message: 'Cypress [ https://www.cypress.io/ ]',
1011
- },
1012
985
  {
1013
986
  name: 'playwright',
1014
987
  message: 'Playwright [ https://playwright.dev/ ]',
1015
988
  },
989
+ {
990
+ name: 'cypress',
991
+ message: 'Cypress [ https://www.cypress.io/ ]',
992
+ },
1016
993
  {
1017
994
  name: 'none',
1018
995
  message: 'None',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nx-workspace",
3
- "version": "19.0.0-beta.1",
3
+ "version": "19.0.0-beta.10",
4
4
  "private": false,
5
5
  "description": "Smart Monorepos · Fast CI",
6
6
  "repository": {
@@ -17,6 +17,7 @@
17
17
  "Nest",
18
18
  "Jest",
19
19
  "Cypress",
20
+ "Playwright",
20
21
  "CLI"
21
22
  ],
22
23
  "bin": {
@@ -1,7 +1,5 @@
1
1
  export declare enum Preset {
2
2
  Apps = "apps",
3
- Empty = "empty",// same as apps, deprecated
4
- Core = "core",// same as npm, deprecated
5
3
  NPM = "npm",
6
4
  TS = "ts",
7
5
  WebComponents = "web-components",
@@ -4,8 +4,6 @@ exports.isKnownPreset = exports.Preset = void 0;
4
4
  var Preset;
5
5
  (function (Preset) {
6
6
  Preset["Apps"] = "apps";
7
- Preset["Empty"] = "empty";
8
- Preset["Core"] = "core";
9
7
  Preset["NPM"] = "npm";
10
8
  Preset["TS"] = "ts";
11
9
  Preset["WebComponents"] = "web-components";