Skip to content

Instantly share code, notes, and snippets.

@mkczarkowski
Last active June 29, 2022 14:32
Show Gist options
  • Save mkczarkowski/e26358ce2c36ec4cc1ed730d677e23b4 to your computer and use it in GitHub Desktop.
Save mkczarkowski/e26358ce2c36ec4cc1ed730d677e23b4 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
var fs = require('fs')
let appPath = process.cwd()
const execSync = require('child_process').execSync
let installedEslintConfig;
execSync(`npm uninstall @sr/spl-angular`)
execSync(`git add .`)
execSync(`git commit -m "chore: temporarly remove SR deps peer-dependent on angular"`)
execSync(`ng update @angular/core@14 @angular/cli@14`)
execSync(`npm install @sr/spl-angular@2`)
{
"name": "update-to-angular13",
"version": "1.0.3",
"bin": "./index.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment