chore: update Node dependencies
* and get rid of Taobao NPM registry. * I used it because I was blocked from official repo by npmjs for whatever reason.
This commit is contained in:
parent
d6df7147bc
commit
24f8b36aff
3 changed files with 1035 additions and 1264 deletions
4
build.rs
4
build.rs
|
@ -71,7 +71,7 @@ fn generate_hljs_loader(config: &serde_json::Value) {
|
|||
}).collect::<String>();
|
||||
|
||||
let js_code = format!(
|
||||
"const hljs = require(\\\"highlight.js/lib/highlight.js\\\");\n{}module.exports = hljs;",
|
||||
"const hljs = require(\\\"highlight.js/lib/core\\\");\n{}module.exports = hljs;",
|
||||
highlight_lang);
|
||||
let rs_code = fs::read_to_string("./src/hljs_tpl.rs").unwrap();
|
||||
let rs_code = format!("#[wasm_bindgen(inline_js = \"{}\")]\n{}", js_code, rs_code);
|
||||
|
@ -79,4 +79,4 @@ fn generate_hljs_loader(config: &serde_json::Value) {
|
|||
let mut out_file = fs::File::create(out_path.join("load_hljs.rs")).unwrap();
|
||||
out_file.write_all(rs_code.as_bytes()).unwrap();
|
||||
out_file.sync_data().unwrap();
|
||||
}
|
||||
}
|
||||
|
|
2289
package-lock.json
generated
2289
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -17,8 +17,8 @@
|
|||
},
|
||||
"homepage": "https://github.com/PeterCxy/paprika#readme",
|
||||
"devDependencies": {
|
||||
"@wasm-tool/wasm-pack-plugin": "^1.2.0",
|
||||
"highlight.js": "^9.18.1",
|
||||
"webpack": "^4.42.1"
|
||||
"@wasm-tool/wasm-pack-plugin": "^1.3.1",
|
||||
"highlight.js": "^10.1.1",
|
||||
"webpack": "^4.43.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue