Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
b935cf9c6182e1d454333a5b0ddb1742f87d60ef
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: 16
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)
bb3369fe
const pkgName = __dirname + '/../dist/angular-http-cache-interceptor/package.json'
5ff05266
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()