Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nemean-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
superlin
nemean-cli
Commits
e24738e4
Commit
e24738e4
authored
Oct 18, 2019
by
super-lin0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除打包后的 nemean-cli依赖
parent
d7aa7ff6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
package.json
package.json
+1
-1
src/index.js
src/index.js
+5
-7
No files found.
package.json
View file @
e24738e4
{
{
"name"
:
"nemean-cli"
,
"name"
:
"nemean-cli"
,
"version"
:
"0.1.
4
"
,
"version"
:
"0.1.
5
"
,
"main"
:
"src/index.js"
,
"main"
:
"src/index.js"
,
"bin"
:
"bin/npmrc.js"
,
"bin"
:
"bin/npmrc.js"
,
"license"
:
"
ISC
"
,
"license"
:
"
ISC
"
,
...
...
src/index.js
View file @
e24738e4
...
@@ -90,9 +90,6 @@ class Factory {
...
@@ -90,9 +90,6 @@ class Factory {
}
else
{
}
else
{
curPackage
.
devDependencies
[
item
]
=
temPackage
.
devDependencies
[
item
];
curPackage
.
devDependencies
[
item
]
=
temPackage
.
devDependencies
[
item
];
}
}
if
(
curPackage
.
dependencies
&&
curPackage
.
dependencies
[
"
nemean-cli
"
])
{
delete
curPackage
.
dependencies
[
"
nemean-cli
"
];
}
});
});
// dependencies
// dependencies
...
@@ -112,12 +109,13 @@ class Factory {
...
@@ -112,12 +109,13 @@ class Factory {
}
else
{
}
else
{
curPackage
.
dependencies
[
item
]
=
temPackage
.
dependencies
[
item
];
curPackage
.
dependencies
[
item
]
=
temPackage
.
dependencies
[
item
];
}
}
if
(
curPackage
.
dependencies
&&
curPackage
.
dependencies
[
"
nemean-cli
"
])
{
delete
curPackage
.
dependencies
[
"
nemean-cli
"
];
}
});
});
if
(
curPackage
.
dependencies
&&
curPackage
.
dependencies
[
"
nemean-cli
"
])
{
Factory
.
log
(
"
删除nemean-cli包
"
);
delete
curPackage
.
dependencies
[
"
nemean-cli
"
];
}
// scripts
// scripts
// 暂时不考虑覆盖问题
// 暂时不考虑覆盖问题
curPackage
.
scripts
=
temPackage
.
scripts
;
curPackage
.
scripts
=
temPackage
.
scripts
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment