Skip to content

Commit 06bb4ee

Browse files
committed
script, bugfix: structural error in package.json generated by --init.
1 parent f78492f commit 06bb4ee

File tree

2 files changed

+19
-23
lines changed

2 files changed

+19
-23
lines changed

fibjs/scripts/opt_tools/init.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@ if (info === undefined) {
102102
"repository": '',
103103
"keywords": '',
104104
"author": '',
105-
"license": 'ISC',
106-
"dependencies": [],
107-
"devDependencies": []
105+
"license": 'ISC'
108106
}
109107
}
110108

fibjs/src/base/opt_tools.cpp

+18-20
Original file line numberDiff line numberDiff line change
@@ -3887,26 +3887,24 @@ const char* opt_tools[] = {
38873887
"\x22\x3a\x20\x27\x27\x2c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22\x72\x65\x70\x6f\x73\x69\x74\x6f\x72\x79\x22\x3a\x20\x27"
38883888
"\x27\x2c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22\x6b\x65\x79\x77\x6f\x72\x64\x73\x22\x3a\x20\x27\x27\x2c\x0a\x20\x20\x20"
38893889
"\x20\x20\x20\x20\x20\x22\x61\x75\x74\x68\x6f\x72\x22\x3a\x20\x27\x27\x2c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22\x6c\x69"
3890-
"\x63\x65\x6e\x73\x65\x22\x3a\x20\x27\x49\x53\x43\x27\x2c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22\x64\x65\x70\x65\x6e\x64"
3891-
"\x65\x6e\x63\x69\x65\x73\x22\x3a\x20\x5b\x5d\x2c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22\x64\x65\x76\x44\x65\x70\x65\x6e"
3892-
"\x64\x65\x6e\x63\x69\x65\x73\x22\x3a\x20\x5b\x5d\x0a\x20\x20\x20\x20\x7d\x0a\x7d\x0a\x0a\x5b\x22\x6e\x61\x6d\x65\x22\x2c"
3893-
"\x20\x22\x76\x65\x72\x73\x69\x6f\x6e\x22\x2c\x20\x22\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e\x22\x2c\x20\x22\x72\x65"
3894-
"\x70\x6f\x73\x69\x74\x6f\x72\x79\x22\x2c\x20\x22\x6b\x65\x79\x77\x6f\x72\x64\x73\x22\x2c\x20\x22\x61\x75\x74\x68\x6f\x72"
3895-
"\x22\x2c\x20\x22\x6c\x69\x63\x65\x6e\x73\x65\x22\x5d\x2e\x66\x6f\x72\x45\x61\x63\x68\x28\x6e\x20\x3d\x3e\x20\x7b\x0a\x20"
3896-
"\x20\x20\x20\x76\x61\x72\x20\x76\x20\x3d\x20\x63\x6f\x6e\x73\x6f\x6c\x65\x2e\x72\x65\x61\x64\x4c\x69\x6e\x65\x28\x60\x24"
3897-
"\x7b\x6e\x7d\x3a\x20\x60\x20\x2b\x20\x28\x69\x6e\x66\x6f\x5b\x6e\x5d\x20\x3f\x20\x60\x28\x24\x7b\x69\x6e\x66\x6f\x5b\x6e"
3898-
"\x5d\x7d\x29\x20\x60\x20\x3a\x20\x27\x27\x29\x29\x3b\x0a\x20\x20\x20\x20\x69\x66\x20\x28\x76\x20\x21\x3d\x3d\x20\x27\x27"
3899-
"\x29\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x69\x6e\x66\x6f\x5b\x6e\x5d\x20\x3d\x20\x76\x3b\x0a\x7d\x29\x3b\x0a\x0a\x76\x61"
3900-
"\x72\x20\x66\x20\x3d\x20\x70\x61\x74\x68\x2e\x6a\x6f\x69\x6e\x28\x70\x72\x6f\x63\x65\x73\x73\x2e\x63\x77\x64\x28\x29\x2c"
3901-
"\x20\x27\x70\x61\x63\x6b\x61\x67\x65\x2e\x6a\x73\x6f\x6e\x27\x29\x3b\x0a\x63\x6f\x6e\x73\x6f\x6c\x65\x2e\x6c\x6f\x67\x28"
3902-
"\x60\x41\x62\x6f\x75\x74\x20\x74\x6f\x20\x77\x72\x69\x74\x65\x20\x74\x6f\x20\x24\x5b\x66\x7d\x3a\x60\x29\x3b\x0a\x0a\x76"
3903-
"\x61\x72\x20\x74\x78\x74\x20\x3d\x20\x6a\x73\x6f\x6e\x5f\x66\x6f\x72\x6d\x61\x74\x28\x69\x6e\x66\x6f\x2c\x20\x7b\x0a\x20"
3904-
"\x20\x20\x20\x74\x79\x70\x65\x3a\x20\x27\x73\x70\x61\x63\x65\x27\x2c\x0a\x20\x20\x20\x20\x73\x69\x7a\x65\x3a\x20\x32\x0a"
3905-
"\x7d\x29\x3b\x0a\x0a\x63\x6f\x6e\x73\x6f\x6c\x65\x2e\x6c\x6f\x67\x28\x74\x78\x74\x29\x3b\x0a\x0a\x76\x61\x72\x20\x70\x20"
3906-
"\x3d\x20\x63\x6f\x6e\x73\x6f\x6c\x65\x2e\x72\x65\x61\x64\x4c\x69\x6e\x65\x28\x27\x49\x73\x20\x74\x68\x69\x73\x20\x6f\x6b"
3907-
"\x3f\x20\x28\x79\x65\x73\x29\x27\x29\x3b\x0a\x69\x66\x20\x28\x70\x20\x3d\x3d\x3d\x20\x27\x27\x20\x7c\x7c\x20\x70\x20\x3d"
3908-
"\x3d\x3d\x20\x27\x79\x65\x73\x27\x29\x0a\x20\x20\x20\x20\x66\x73\x2e\x77\x72\x69\x74\x65\x46\x69\x6c\x65\x28\x66\x2c\x20"
3909-
"\x74\x78\x74\x29\x3b",
3890+
"\x63\x65\x6e\x73\x65\x22\x3a\x20\x27\x49\x53\x43\x27\x0a\x20\x20\x20\x20\x7d\x0a\x7d\x0a\x0a\x5b\x22\x6e\x61\x6d\x65\x22"
3891+
"\x2c\x20\x22\x76\x65\x72\x73\x69\x6f\x6e\x22\x2c\x20\x22\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e\x22\x2c\x20\x22\x72"
3892+
"\x65\x70\x6f\x73\x69\x74\x6f\x72\x79\x22\x2c\x20\x22\x6b\x65\x79\x77\x6f\x72\x64\x73\x22\x2c\x20\x22\x61\x75\x74\x68\x6f"
3893+
"\x72\x22\x2c\x20\x22\x6c\x69\x63\x65\x6e\x73\x65\x22\x5d\x2e\x66\x6f\x72\x45\x61\x63\x68\x28\x6e\x20\x3d\x3e\x20\x7b\x0a"
3894+
"\x20\x20\x20\x20\x76\x61\x72\x20\x76\x20\x3d\x20\x63\x6f\x6e\x73\x6f\x6c\x65\x2e\x72\x65\x61\x64\x4c\x69\x6e\x65\x28\x60"
3895+
"\x24\x7b\x6e\x7d\x3a\x20\x60\x20\x2b\x20\x28\x69\x6e\x66\x6f\x5b\x6e\x5d\x20\x3f\x20\x60\x28\x24\x7b\x69\x6e\x66\x6f\x5b"
3896+
"\x6e\x5d\x7d\x29\x20\x60\x20\x3a\x20\x27\x27\x29\x29\x3b\x0a\x20\x20\x20\x20\x69\x66\x20\x28\x76\x20\x21\x3d\x3d\x20\x27"
3897+
"\x27\x29\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x69\x6e\x66\x6f\x5b\x6e\x5d\x20\x3d\x20\x76\x3b\x0a\x7d\x29\x3b\x0a\x0a\x76"
3898+
"\x61\x72\x20\x66\x20\x3d\x20\x70\x61\x74\x68\x2e\x6a\x6f\x69\x6e\x28\x70\x72\x6f\x63\x65\x73\x73\x2e\x63\x77\x64\x28\x29"
3899+
"\x2c\x20\x27\x70\x61\x63\x6b\x61\x67\x65\x2e\x6a\x73\x6f\x6e\x27\x29\x3b\x0a\x63\x6f\x6e\x73\x6f\x6c\x65\x2e\x6c\x6f\x67"
3900+
"\x28\x60\x41\x62\x6f\x75\x74\x20\x74\x6f\x20\x77\x72\x69\x74\x65\x20\x74\x6f\x20\x24\x5b\x66\x7d\x3a\x60\x29\x3b\x0a\x0a"
3901+
"\x76\x61\x72\x20\x74\x78\x74\x20\x3d\x20\x6a\x73\x6f\x6e\x5f\x66\x6f\x72\x6d\x61\x74\x28\x69\x6e\x66\x6f\x2c\x20\x7b\x0a"
3902+
"\x20\x20\x20\x20\x74\x79\x70\x65\x3a\x20\x27\x73\x70\x61\x63\x65\x27\x2c\x0a\x20\x20\x20\x20\x73\x69\x7a\x65\x3a\x20\x32"
3903+
"\x0a\x7d\x29\x3b\x0a\x0a\x63\x6f\x6e\x73\x6f\x6c\x65\x2e\x6c\x6f\x67\x28\x74\x78\x74\x29\x3b\x0a\x0a\x76\x61\x72\x20\x70"
3904+
"\x20\x3d\x20\x63\x6f\x6e\x73\x6f\x6c\x65\x2e\x72\x65\x61\x64\x4c\x69\x6e\x65\x28\x27\x49\x73\x20\x74\x68\x69\x73\x20\x6f"
3905+
"\x6b\x3f\x20\x28\x79\x65\x73\x29\x27\x29\x3b\x0a\x69\x66\x20\x28\x70\x20\x3d\x3d\x3d\x20\x27\x27\x20\x7c\x7c\x20\x70\x20"
3906+
"\x3d\x3d\x3d\x20\x27\x79\x65\x73\x27\x29\x0a\x20\x20\x20\x20\x66\x73\x2e\x77\x72\x69\x74\x65\x46\x69\x6c\x65\x28\x66\x2c"
3907+
"\x20\x74\x78\x74\x29\x3b",
39103908
"opt_tools/install",
39113909
"\x2f\x2f\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x20\x6a\x73\x6f\x6e\x5f\x66"
39123910
"\x6f\x72\x6d\x61\x74\x20\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d\x2d"

0 commit comments

Comments
 (0)