mirror of
https://github.com/denoland/deno
synced 2024-08-24 18:47:06 +00:00
fix: move generated napi symbols to cli/ (#16330)
<!-- Before submitting a PR, please read http://deno.land/manual/contributing 1. Give the PR a descriptive title. Examples of good title: - fix(std/http): Fix race condition in server - docs(console): Update docstrings - feat(doc): Handle nested reexports Examples of bad title: - fix #7123 - update docs - fix bugs 2. Ensure there is a related issue and it is referenced in the PR text. 3. Ensure there are tests that cover the changes. 4. Ensure `cargo test` passes. 5. Ensure `./tools/format.js` passes without changing files. 6. Ensure `./tools/lint.js` passes. -->
This commit is contained in:
parent
44a89dd6dc
commit
b560246f30
|
@ -333,11 +333,7 @@ fn main() {
|
|||
}
|
||||
|
||||
let symbols_path = std::path::Path::new(
|
||||
format!(
|
||||
"napi_sym/generated_symbol_exports_list_{}.def",
|
||||
env::consts::OS
|
||||
)
|
||||
.as_str(),
|
||||
format!("generated_symbol_exports_list_{}.def", env::consts::OS).as_str(),
|
||||
)
|
||||
.canonicalize()
|
||||
.expect(
|
||||
|
|
|
@ -17,7 +17,7 @@ const symbolExportLists = {
|
|||
|
||||
for await (const [os, def] of Object.entries(symbolExportLists)) {
|
||||
const defUrl = new URL(
|
||||
`../../cli/napi_sym/generated_symbol_exports_list_${os}.def`,
|
||||
`../../cli/generated_symbol_exports_list_${os}.def`,
|
||||
import.meta.url,
|
||||
);
|
||||
await Deno.writeTextFile(defUrl.pathname, def, { create: true });
|
||||
|
|
Loading…
Reference in a new issue