Skip to content

Commit

Permalink
update nuxt deps
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckyMaler committed Nov 6, 2021
1 parent 5b60ad0 commit fd577b1
Show file tree
Hide file tree
Showing 6 changed files with 1,532 additions and 789 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Expand Up @@ -4,7 +4,7 @@ orbs:
jobs:
all:
docker:
- image: cypress/base:12
- image: cypress/base:14.17.3
steps:
- checkout
- node/install-packages:
Expand All @@ -17,7 +17,7 @@ jobs:
no_output_timeout: 40m
affected:
docker:
- image: cypress/base:12
- image: cypress/base:14.17.3
steps:
- checkout
- node/install-packages:
Expand Down
30 changes: 30 additions & 0 deletions libs/nuxt/migrations.json
Expand Up @@ -9,6 +9,11 @@
"version": "12.2.0",
"description": "update vue test dependencies for Jest v27",
"factory": "./src/migrations/update-12.2.0/update-12.2.0"
},
"update-12.3.0": {
"version": "12.3.0",
"description": "update dependencies",
"factory": "./src/migrations/update-12.3.0/update-12.3.0"
}
},
"packageJsonUpdates": {
Expand Down Expand Up @@ -37,6 +42,31 @@
"alwaysAddToPackageJson": false
}
}
},
"12.3.0": {
"version": "12.3.0",
"packages": {
"core-js": {
"version": "^3.15.1",
"alwaysAddToPackageJson": false
},
"nuxt": {
"version": "^2.15.7",
"alwaysAddToPackageJson": false
},
"@nuxtjs/eslint-config-typescript": {
"version": "^6.0.1",
"alwaysAddToPackageJson": false
},
"@nuxt/types": {
"version": "^2.15.7",
"alwaysAddToPackageJson": false
},
"@nuxt/typescript-build": {
"version": "^2.1.0",
"alwaysAddToPackageJson": false
}
}
}
}
}
24 changes: 24 additions & 0 deletions libs/nuxt/src/migrations/update-12.3.0/update-12.3.0.ts
@@ -0,0 +1,24 @@
import { chain, SchematicContext } from '@angular-devkit/schematics';
import { getPackageManagerCommand } from '@nrwl/devkit';
import { updateJsonInTree, updatePackagesInPackageJson } from '@nrwl/workspace';
import * as path from 'path';

export default function update() {
return chain([
updateJsonInTree('package.json', (json) => {
delete json.dependencies['@nuxt/typescript-runtime'];
return json;
}),
updatePackagesInPackageJson(
path.join(__dirname, '../../../', 'migrations.json'),
'12.3.0'
),
(_, context: SchematicContext) => {
context.logger.warn(
`Make sure to run ${
getPackageManagerCommand().install
} to (un)install dependencies.`
);
},
]);
}
11 changes: 5 additions & 6 deletions libs/nuxt/src/schematics/application/schematic.ts
Expand Up @@ -311,14 +311,13 @@ export default function (options: ApplicationSchematicSchema): Rule {
: noop(),
addDepsToPackageJson(
{
'@nuxt/typescript-runtime': '^2.0.1',
'core-js': '^3.8.3',
nuxt: '2.14.12',
'core-js': '^3.15.1',
nuxt: '^2.15.7',
},
{
'@nuxtjs/eslint-config-typescript': '^5.0.0',
'@nuxt/types': '2.14.12',
'@nuxt/typescript-build': '^2.0.4',
'@nuxtjs/eslint-config-typescript': '^6.0.1',
'@nuxt/types': '^2.15.7',
'@nuxt/typescript-build': '^2.1.0',
'eslint-plugin-nuxt': '^2.0.0',
},
true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -65,7 +65,7 @@
"husky": "^4.2.5",
"jest": "27.0.3",
"lint-staged": "^10.2.11",
"nuxt": "2.14.12",
"nuxt": "^2.15.7",
"prettier": "2.3.2",
"rxjs": "6.5.5",
"semver": "^7.3.2",
Expand Down

0 comments on commit fd577b1

Please sign in to comment.