@o3r/create 11.6.0-prerelease.2 → 11.6.0-prerelease.20

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.
Files changed (2) hide show
  1. package/index.js +8 -10
  2. package/package.json +22 -18
package/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const node_child_process_1 = require("node:child_process");
5
- const node_path_1 = require("node:path");
6
5
  const node_fs_1 = require("node:fs");
6
+ const node_path_1 = require("node:path");
7
7
  const minimist = require("minimist");
8
8
  const shell_quote_1 = require("shell-quote");
9
9
  const { properties } = JSON.parse((0, node_fs_1.readFileSync)(require.resolve('@schematics/angular/ng-new/schema').replace(/\.js$/, '.json'), { encoding: 'utf8' }));
@@ -96,13 +96,11 @@ if (argvPackageManager && supportedPackageManagerRegExp.test(argvPackageManager)
96
96
  packageManager = argvPackageManager;
97
97
  }
98
98
  else if (argvPackageManager) {
99
- // eslint-disable-next-line no-console
100
99
  console.error(`The package manager option supports only npm and yarn, you provided "${argvPackageManager}"`);
101
100
  process.exit(-1);
102
101
  }
103
102
  const exactO3rVersion = !!argv['exact-o3r-version'];
104
103
  if (argv._.length === 0) {
105
- // eslint-disable-next-line no-console
106
104
  console.error('The project name is mandatory');
107
105
  process.exit(-1);
108
106
  }
@@ -129,7 +127,6 @@ const INSTALL_PROCESS_ERROR_CODE = 6;
129
127
  const exitProcessIfErrorInSpawnSync = (exitCode, { error, status }) => {
130
128
  if (error || status !== 0) {
131
129
  if (error) {
132
- // eslint-disable-next-line no-console
133
130
  console.error(error);
134
131
  }
135
132
  process.exit(exitCode);
@@ -137,7 +134,7 @@ const exitProcessIfErrorInSpawnSync = (exitCode, { error, status }) => {
137
134
  };
138
135
  const schematicsCliOptions = Object.entries(argv)
139
136
  .filter(([key]) => key !== '_' && !optionsList.includes(key))
140
- .map(([key, value]) => value === true && [key] || value === false && key.length > 1 && [`no-${key}`] || [key, value])
137
+ .map(([key, value]) => value === true ? [key] : (value === false && key.length > 1 ? [`no-${key}`] : [key, value]))
141
138
  .map(([key, value]) => {
142
139
  const optionKey = key.length > 1 ? `--${key}` : `-${key}`;
143
140
  return typeof value === 'undefined' ? [optionKey] : [optionKey, value];
@@ -219,11 +216,12 @@ const addOtterFramework = (relativeDirectory = '.', projectPackageManager = 'npm
219
216
  stdio: 'inherit',
220
217
  cwd,
221
218
  shell: true,
222
- env: exactO3rVersion && projectPackageManager === 'npm' ? {
223
- ...process.env,
224
- // eslint-disable-next-line @typescript-eslint/naming-convention, camelcase
225
- NPM_CONFIG_SAVE_EXACT: 'true'
226
- } : undefined
219
+ env: exactO3rVersion && projectPackageManager === 'npm'
220
+ ? {
221
+ ...process.env,
222
+ NPM_CONFIG_SAVE_EXACT: 'true'
223
+ }
224
+ : undefined
227
225
  }));
228
226
  };
229
227
  const projectFolder = argv._[0]?.replaceAll(' ', '-').toLowerCase() || '.';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/create",
3
- "version": "11.6.0-prerelease.2",
3
+ "version": "11.6.0-prerelease.20",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,7 +18,7 @@
18
18
  "prepare:publish": "prepare-publish ./dist"
19
19
  },
20
20
  "peerDependencies": {
21
- "@o3r/telemetry": "^11.6.0-prerelease.2"
21
+ "@o3r/telemetry": "^11.6.0-prerelease.20"
22
22
  },
23
23
  "peerDependenciesMeta": {
24
24
  "@o3r/telemetry": {
@@ -37,32 +37,35 @@
37
37
  "@angular-devkit/architect": "~0.1802.0",
38
38
  "@angular-devkit/core": "~18.2.0",
39
39
  "@angular-devkit/schematics": "~18.2.0",
40
- "@angular-eslint/eslint-plugin": "~18.3.0",
41
- "@angular-eslint/eslint-plugin-template": "~18.3.0",
40
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
42
41
  "@nx/eslint": "~19.5.0",
43
42
  "@nx/eslint-plugin": "~19.5.0",
44
43
  "@nx/jest": "~19.5.0",
45
44
  "@nx/js": "~19.5.0",
46
- "@o3r/build-helpers": "^11.6.0-prerelease.2",
47
- "@o3r/eslint-config-otter": "^11.6.0-prerelease.2",
48
- "@o3r/eslint-plugin": "^11.6.0-prerelease.2",
49
- "@o3r/schematics": "^11.6.0-prerelease.2",
50
- "@o3r/test-helpers": "^11.6.0-prerelease.2",
51
- "@stylistic/eslint-plugin-ts": "~2.4.0",
45
+ "@o3r/build-helpers": "^11.6.0-prerelease.20",
46
+ "@o3r/eslint-config": "^11.6.0-prerelease.20",
47
+ "@o3r/eslint-plugin": "^11.6.0-prerelease.20",
48
+ "@o3r/schematics": "^11.6.0-prerelease.20",
49
+ "@o3r/test-helpers": "^11.6.0-prerelease.20",
50
+ "@stylistic/eslint-plugin": "~2.7.0",
52
51
  "@types/jest": "~29.5.2",
53
52
  "@types/minimist": "^1.2.2",
54
53
  "@types/node": "^20.0.0",
55
54
  "@types/shell-quote": "^1.7.5",
56
- "@typescript-eslint/eslint-plugin": "^7.14.1",
57
- "@typescript-eslint/parser": "^7.14.1",
58
- "@typescript-eslint/utils": "^7.14.1",
55
+ "@typescript-eslint/parser": "~8.16.0",
56
+ "angular-eslint": "~18.4.0",
59
57
  "cpy-cli": "^5.0.0",
60
- "eslint": "^8.57.0",
58
+ "eslint": "~9.14.0",
61
59
  "eslint-import-resolver-node": "^0.3.9",
60
+ "eslint-import-resolver-typescript": "^3.6.3",
61
+ "eslint-plugin-import": "^2.31.0",
62
+ "eslint-plugin-import-newlines": "^1.4.0",
62
63
  "eslint-plugin-jest": "~28.8.0",
63
- "eslint-plugin-jsdoc": "~48.11.0",
64
+ "eslint-plugin-jsdoc": "~50.2.0",
64
65
  "eslint-plugin-prefer-arrow": "~1.2.3",
65
- "eslint-plugin-unicorn": "^54.0.0",
66
+ "eslint-plugin-unicorn": "^56.0.0",
67
+ "eslint-plugin-unused-imports": "^4.1.4",
68
+ "globals": "^15.9.0",
66
69
  "jest": "~29.7.0",
67
70
  "jest-junit": "~16.0.0",
68
71
  "jsonc-eslint-parser": "~2.4.0",
@@ -73,11 +76,12 @@
73
76
  "semver": "^7.5.2",
74
77
  "ts-jest": "~29.2.0",
75
78
  "type-fest": "^4.10.2",
76
- "typescript": "~5.5.4"
79
+ "typescript": "~5.5.4",
80
+ "typescript-eslint": "~8.16.0"
77
81
  },
78
82
  "engines": {
79
83
  "node": "^18.19.1 || ^20.11.1 || >=22.0.0",
80
- "yarn": "<2.0.0",
84
+ "yarn": ">=2.0.0 <5.0.0",
81
85
  "npm": ">=4"
82
86
  },
83
87
  "contributors": [