mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
refactor(napi): types file in root of types package (#6929)
Move `types.d.ts` file to root of `@oxc-project/types` package. I think this is cleaner.
This commit is contained in:
parent
aa3222ac88
commit
23157bde6f
4 changed files with 6 additions and 6 deletions
2
.github/.generated_ast_watch_list.yml
vendored
2
.github/.generated_ast_watch_list.yml
vendored
|
|
@ -32,6 +32,6 @@ src:
|
|||
- 'crates/oxc_ast/src/generated/ast_builder.rs'
|
||||
- 'crates/oxc_ast/src/generated/visit.rs'
|
||||
- 'crates/oxc_ast/src/generated/visit_mut.rs'
|
||||
- 'npm/oxc-types/src/generated/types.d.ts'
|
||||
- 'npm/oxc-types/types.d.ts'
|
||||
- 'tasks/ast_tools/src/**'
|
||||
- '.github/.generated_ast_watch_list.yml'
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
"funding": {
|
||||
"url": "https://github.com/sponsors/Boshen"
|
||||
},
|
||||
"types": "src/generated/types.d.ts",
|
||||
"types": "types.d.ts",
|
||||
"files": [
|
||||
"src/generated/types.d.ts"
|
||||
"types.d.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ use itertools::Itertools;
|
|||
|
||||
use crate::{
|
||||
codegen::LateCtx,
|
||||
output::{output_path, Output},
|
||||
output::Output,
|
||||
schema::{
|
||||
serialize::{enum_variant_name, get_type_tag},
|
||||
EnumDef, GetIdent, StructDef, TypeDef, TypeName,
|
||||
|
|
@ -37,7 +37,7 @@ impl Generator for TypescriptGenerator {
|
|||
code.push_str("\n\n");
|
||||
}
|
||||
|
||||
Output::Javascript { path: output_path(crate::TYPESCRIPT_PACKAGE, "types.d.ts"), code }
|
||||
Output::Javascript { path: format!("{}/types.d.ts", crate::TYPESCRIPT_PACKAGE), code }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue