FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pie-lib/scripts/add-cl.js at develop · pie-framework/pie-lib · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
pie-framework
/
pie-lib
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
4
Code
Issues
4
Pull requests
3
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pie-lib
/
scripts
/
add-cl.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 425 Bytes
Breadcrumbs
pie-lib
/
scripts
/
add-cl.js
Copy path
File metadata and controls
13 lines (11 loc) · 425 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
const
{
getPackages
}
=
require
(
'@pie-framework/build-helper'
)
;
const
{
join
,
resolve
,
basename
}
=
require
(
'path'
)
;
const
{
writeJsonSync
}
=
require
(
'fs-extra'
)
;
const
pkgs
=
getPackages
(
resolve
(
__dirname
,
'..'
,
'packages'
)
)
;
pkgs
.
forEach
(
(
p
)
=>
{
if
(
p
.
pkg
.
scripts
)
{
delete
p
.
pkg
.
scripts
.
prepack
;
}
console
.
log
(
'update'
,
p
.
pkg
.
name
)
;
writeJsonSync
(
join
(
p
.
dir
,
'package.json'
)
,
p
.
pkg
,
{
spaces
:
' '
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL