Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scilla-declare-generator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
scilla-declare-generator
Commits
5ab9ab60
Commit
5ab9ab60
authored
Apr 29, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
d5b2491b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
cli-wrapper.js
bin/cli-wrapper.js
+6
-4
No files found.
bin/cli-wrapper.js
View file @
5ab9ab60
...
@@ -27,7 +27,7 @@ exports.execute = async function (program) {
...
@@ -27,7 +27,7 @@ exports.execute = async function (program) {
return
source
.
fileName
.
indexOf
(
inputFileFolder
)
>=
0
;
return
source
.
fileName
.
indexOf
(
inputFileFolder
)
>=
0
;
}
}
const
result
=
generateDeclareMap
(
const
{
declareMap
,
dependencies
,
missingDependencies
}
=
generateDeclareMap
(
tsconfig
,
tsconfig
,
inputFile
,
inputFile
,
componentsSrcPath
,
componentsSrcPath
,
...
@@ -40,10 +40,12 @@ exports.execute = async function (program) {
...
@@ -40,10 +40,12 @@ exports.execute = async function (program) {
console
.
log
(
result
);
console
.
log
(
result
);
}
}
if
(
Object
.
keys
(
result
.
missingDependencies
).
length
>
0
)
{
declareMap
.
dependencies
=
dependencies
;
console
.
warn
(
JSON
.
stringify
(
result
.
missingDependencies
,
null
,
'
\
t'
));
if
(
Object
.
keys
(
missingDependencies
).
length
>
0
)
{
console
.
warn
(
JSON
.
stringify
(
missingDependencies
,
null
,
'
\
t'
));
process
.
exit
(
2
);
process
.
exit
(
2
);
}
}
fs
.
writeJsonSync
(
outputFile
,
result
.
declareMap
);
fs
.
writeJsonSync
(
outputFile
,
declareMap
);
};
};
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