Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
94d0b7659c8cfd663178c7d30f817b8d9f50bbbf
Branches
master
Files
Commits
Log
Graph
Stats
angular-http-cache-interceptor.git
scripts
post-lib-build.js
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 15
Mode: javascript
Binary: false
Hang on, we reloading big blames...
5ff05266
#!/usr/bin/env node const fs = require('fs').promises const execAsync = async () => {
ed6aac4b
const rootPkgName = __dirname + '/../package.json' const rootPkg = require(rootPkgName)
5ff05266
const pkgName = __dirname + '/../release/angular-http-cache-interceptor/package.json' let pkg = require(pkgName) pkg.devDependencies = pkg.devDependencies || {}
3628f82b
pkg.name = rootPkg.name pkg.devDependencies['corifeus-builder'] = rootPkg.devDependencies['corifeus-builder']
5ff05266
pkg.corifeus = { publish: true }
3628f82b
delete rootPkg.devDependencies delete rootPkg.dependencies delete rootPkg.corifeus delete rootPkg.scripts delete rootPkg.private pkg = Object.assign(pkg, rootPkg)
5ff05266
const data = JSON.stringify(pkg, null, 4) await fs.writeFile(pkgName, data)
6a3af673
ed6aac4b
const finalRootPkg = JSON.parse((await fs.readFile(rootPkgName)).toString())
3628f82b
finalRootPkg.dependencies['p3x-interceptor'] = `npm:p3x-angular-http-cache-interceptor@^${finalRootPkg.version}`
6a3af673
3628f82b
const finalRootPkgNameData = JSON.stringify(finalRootPkg, null, 4)
ed6aac4b
await fs.writeFile(rootPkgName, finalRootPkgNameData)
6a3af673
5ff05266
} execAsync()