@nx/js 20.1.0-beta.1 → 20.1.0-beta.3

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/js",
3
- "version": "20.1.0-beta.1",
3
+ "version": "20.1.0-beta.3",
4
4
  "private": false,
5
5
  "description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
6
6
  "repository": {
@@ -39,8 +39,8 @@
39
39
  "@babel/preset-env": "^7.23.2",
40
40
  "@babel/preset-typescript": "^7.22.5",
41
41
  "@babel/runtime": "^7.22.6",
42
- "@nx/devkit": "20.1.0-beta.1",
43
- "@nx/workspace": "20.1.0-beta.1",
42
+ "@nx/devkit": "20.1.0-beta.3",
43
+ "@nx/workspace": "20.1.0-beta.3",
44
44
  "@zkochan/js-yaml": "0.0.7",
45
45
  "babel-plugin-const-enum": "^1.0.1",
46
46
  "babel-plugin-macros": "^2.8.0",
@@ -74,6 +74,6 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "type": "commonjs",
78
- "types": "./src/index.d.ts"
77
+ "types": "./src/index.d.ts",
78
+ "type": "commonjs"
79
79
  }
@@ -479,14 +479,14 @@ async function normalizeOptions(tree, options) {
479
479
  const isUsingTsSolutionConfig = (0, ts_solution_setup_1.isUsingTsSolutionSetup)(tree);
480
480
  if (isUsingTsSolutionConfig) {
481
481
  options.linter ??= await (0, prompt_1.promptWhenInteractive)({
482
- type: 'select',
482
+ type: 'autocomplete',
483
483
  name: 'linter',
484
484
  message: `Which linter would you like to use?`,
485
485
  choices: [{ name: 'none' }, { name: 'eslint' }],
486
486
  initial: 0,
487
487
  }, { linter: 'none' }).then(({ linter }) => linter);
488
488
  options.unitTestRunner ??= await (0, prompt_1.promptWhenInteractive)({
489
- type: 'select',
489
+ type: 'autocomplete',
490
490
  name: 'unitTestRunner',
491
491
  message: `Which unit test runner would you like to use?`,
492
492
  choices: [{ name: 'none' }, { name: 'vitest' }, { name: 'jest' }],
@@ -495,14 +495,14 @@ async function normalizeOptions(tree, options) {
495
495
  }
496
496
  else {
497
497
  options.linter ??= await (0, prompt_1.promptWhenInteractive)({
498
- type: 'select',
498
+ type: 'autocomplete',
499
499
  name: 'linter',
500
500
  message: `Which linter would you like to use?`,
501
501
  choices: [{ name: 'eslint' }, { name: 'none' }],
502
502
  initial: 0,
503
503
  }, { linter: 'eslint' }).then(({ linter }) => linter);
504
504
  options.unitTestRunner ??= await (0, prompt_1.promptWhenInteractive)({
505
- type: 'select',
505
+ type: 'autocomplete',
506
506
  name: 'unitTestRunner',
507
507
  message: `Which unit test runner would you like to use?`,
508
508
  choices: [{ name: 'jest' }, { name: 'vitest' }, { name: 'none' }],