mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05: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
5 changed files with 2 additions and 6 deletions
|
@ -333,11 +333,7 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
let symbols_path = std::path::Path::new(
|
let symbols_path = std::path::Path::new(
|
||||||
format!(
|
format!("generated_symbol_exports_list_{}.def", env::consts::OS).as_str(),
|
||||||
"napi_sym/generated_symbol_exports_list_{}.def",
|
|
||||||
env::consts::OS
|
|
||||||
)
|
|
||||||
.as_str(),
|
|
||||||
)
|
)
|
||||||
.canonicalize()
|
.canonicalize()
|
||||||
.expect(
|
.expect(
|
||||||
|
|
|
@ -17,7 +17,7 @@ const symbolExportLists = {
|
||||||
|
|
||||||
for await (const [os, def] of Object.entries(symbolExportLists)) {
|
for await (const [os, def] of Object.entries(symbolExportLists)) {
|
||||||
const defUrl = new URL(
|
const defUrl = new URL(
|
||||||
`../../cli/napi_sym/generated_symbol_exports_list_${os}.def`,
|
`../../cli/generated_symbol_exports_list_${os}.def`,
|
||||||
import.meta.url,
|
import.meta.url,
|
||||||
);
|
);
|
||||||
await Deno.writeTextFile(defUrl.pathname, def, { create: true });
|
await Deno.writeTextFile(defUrl.pathname, def, { create: true });
|
||||||
|
|
Loading…
Reference in a new issue