fix(core): rearrange the core and npm presets to avoid breaking existing workspaces
This commit is contained in:
parent
550b185921
commit
fbc14d6544
@ -1,10 +1,6 @@
|
||||
{
|
||||
"implicitDependencies": {
|
||||
"package.json": {
|
||||
"dependencies": "*",
|
||||
"devDependencies": "*"
|
||||
},
|
||||
".eslintrc.json": "*"
|
||||
"package.json": "*"
|
||||
},
|
||||
"tasksRunnerOptions": {
|
||||
"default": {
|
||||
@ -14,10 +10,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"workspaceLayout": {
|
||||
"libsDir": "packages",
|
||||
"appsDir": "packages"
|
||||
},
|
||||
"pluginsConfig": {
|
||||
"@nrwl/js": {
|
||||
"analyzeSourceFiles": false
|
||||
|
||||
@ -10,6 +10,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"workspaceLayout": {
|
||||
"libsDir": "packages",
|
||||
"appsDir": "packages"
|
||||
},
|
||||
"pluginsConfig": {
|
||||
"@nrwl/js": {
|
||||
"analyzeSourceFiles": false
|
||||
|
||||
@ -29,7 +29,7 @@ export function initHandler() {
|
||||
if (!fileExists('nx.json')) {
|
||||
writeJsonFile(
|
||||
'nx.json',
|
||||
readJsonFile(join(__dirname, '..', '..', 'presets', 'npm.json'))
|
||||
readJsonFile(join(__dirname, '..', '..', 'presets', 'core.json'))
|
||||
);
|
||||
|
||||
output.success({
|
||||
|
||||
@ -197,7 +197,9 @@ export class Workspaces {
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
return readJsonFile(join(__dirname, '..', '..', 'presets', 'npm.json'));
|
||||
return readJsonFile(
|
||||
join(__dirname, '..', '..', 'presets', 'core.json')
|
||||
);
|
||||
} catch (e) {
|
||||
return {};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user