@o3r/create 13.0.0-prerelease.3 → 13.0.0-rc.0
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/index.js +4 -0
- package/package.json +7 -7
package/index.js
CHANGED
@@ -105,6 +105,7 @@ const YARN_CONFIG_REGISTRY_ERROR_CODE = 5;
|
|
105
105
|
const INSTALL_PROCESS_ERROR_CODE = 6;
|
106
106
|
const YARN_SET_PACKAGE_EXTENSIONS = 7;
|
107
107
|
const NPM_CONFIG_PEER_LEGACY_ERROR_CODE = 8;
|
108
|
+
const NPM_CONFIG_IGNORE_SCRIPT = 9;
|
108
109
|
const exitProcessIfErrorInSpawnSync = (exitCode, { error, status }) => {
|
109
110
|
if (error || status !== 0) {
|
110
111
|
if (error) {
|
@@ -181,6 +182,9 @@ const prepareWorkspace = (relativeDirectory = '.', projectPackageManager = 'npm'
|
|
181
182
|
// TODO temporarily fixed until https://github.com/listr2/listr2/pull/719 is merged
|
182
183
|
['config', 'set', 'packageExtensions["@listr2/prompt-adapter-inquirer@*"].peerDependencies.listr2', '"*"'], spawnSyncOpts));
|
183
184
|
}
|
185
|
+
exitProcessIfErrorInSpawnSync(NPM_CONFIG_IGNORE_SCRIPT, (0, node_child_process_1.spawnSync)(runner, ['config', 'set', ...(projectPackageManager === 'yarn'
|
186
|
+
? ['enableScripts', 'false']
|
187
|
+
: ['-L', 'project', 'ignore-scripts', 'true'])], spawnSyncOpts));
|
184
188
|
const registry = process.env.npm_config_registry || (argv.registry && (0, shell_quote_1.quote)([argv.registry]));
|
185
189
|
if (registry) {
|
186
190
|
// Need to add this even for yarn because `ng add` only reads registry from .npmrc
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@o3r/create",
|
3
|
-
"version": "13.0.0-
|
3
|
+
"version": "13.0.0-rc.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"postbuild": "cpy package.json dist/"
|
18
18
|
},
|
19
19
|
"peerDependencies": {
|
20
|
-
"@o3r/telemetry": "^13.0.0-
|
20
|
+
"@o3r/telemetry": "^13.0.0-rc.0"
|
21
21
|
},
|
22
22
|
"peerDependenciesMeta": {
|
23
23
|
"@o3r/telemetry": {
|
@@ -41,11 +41,11 @@
|
|
41
41
|
"@nx/eslint-plugin": "~21.3.11",
|
42
42
|
"@nx/jest": "~21.3.11",
|
43
43
|
"@nx/js": "~21.3.11",
|
44
|
-
"@o3r/build-helpers": "^13.0.0-
|
45
|
-
"@o3r/eslint-config": "^13.0.0-
|
46
|
-
"@o3r/eslint-plugin": "^13.0.0-
|
47
|
-
"@o3r/schematics": "^13.0.0-
|
48
|
-
"@o3r/test-helpers": "^13.0.0-
|
44
|
+
"@o3r/build-helpers": "^13.0.0-rc.0",
|
45
|
+
"@o3r/eslint-config": "^13.0.0-rc.0",
|
46
|
+
"@o3r/eslint-plugin": "^13.0.0-rc.0",
|
47
|
+
"@o3r/schematics": "^13.0.0-rc.0",
|
48
|
+
"@o3r/test-helpers": "^13.0.0-rc.0",
|
49
49
|
"@stylistic/eslint-plugin": "~5.2.0",
|
50
50
|
"@types/jest": "~29.5.2",
|
51
51
|
"@types/minimist": "^1.2.2",
|