1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

refactor: move generated_symbol_exports_list_* files to napi folder (#16822)

This commit is contained in:
David Sherret 2022-11-25 18:49:02 -05:00 committed by GitHub
parent 6de3d7f184
commit e0dd275935
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 3 deletions

View file

@ -351,7 +351,7 @@ fn main() {
panic!("Cross compiling with snapshot is not supported.");
}
let symbols_path = std::path::Path::new(
let symbols_path = std::path::Path::new("napi").join(
format!("generated_symbol_exports_list_{}.def", env::consts::OS).as_str(),
)
.canonicalize()

View file

@ -13,7 +13,7 @@
//! To add a new napi function:
//! 1. Place `#[napi_sym]` on top of your implementation.
//! 2. Add the function's identifier to this JSON list.
//! 3. Finally, run `./tools/napi/generate_symbols_list.js` to update `cli/generated_symbol_exports_list_*.def`.
//! 3. Finally, run `tools/napi/generate_symbols_list.js` to update `cli/napi/generated_symbol_exports_list_*.def`.
pub mod r#async;
pub mod env;

View file

@ -17,7 +17,7 @@ const symbolExportLists = {
for await (const [os, def] of Object.entries(symbolExportLists)) {
const defUrl = new URL(
`../../cli/generated_symbol_exports_list_${os}.def`,
`../../cli/napi/generated_symbol_exports_list_${os}.def`,
import.meta.url,
);
await Deno.writeTextFile(defUrl.pathname, def, { create: true });