Skip to content

Commit

Permalink
fix(types): Change @oxc/types package name (oxc-project#6874)
Browse files Browse the repository at this point in the history
Closes oxc-project#6862.

Possible options:
- `oxc-types`
- `@oxc-project/types`
- `@oxc-ast/types`
- `oxc-ast-types`
  • Loading branch information
ottomated authored and Orenbek committed Oct 28, 2024
1 parent 2b663e1 commit c59c9cc
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release_types.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release @oxc/types
name: Release @oxc-project/types

on:
workflow_dispatch:
Expand Down Expand Up @@ -27,7 +27,7 @@ jobs:
id: version
with:
static-checking: localIsNew
file-url: https://unpkg.com/@oxc/types/package.json
file-url: https://unpkg.com/@oxc-project/types/package.json
file-name: npm/oxc-types/package.json

- name: Set version name
Expand All @@ -38,7 +38,7 @@ jobs:
build:
needs: check
if: needs.check.outputs.version_changed == 'true'
name: Release @oxc/types
name: Release @oxc-project/types
runs-on: ubuntu-latest
permissions:
id-token: write # for `pnpm publish --provenance`
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc/src/napi/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct ParserOptions {

#[napi(object)]
pub struct ParseResult {
#[napi(ts_type = "import(\"@oxc/types\").Program")]
#[napi(ts_type = "import(\"@oxc-project/types\").Program")]
pub program: String,
pub comments: Vec<Comment>,
pub errors: Vec<String>,
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"oxc_wasm.d.ts"
],
"devDependencies": {
"@oxc/types": "workspace:^"
"@oxc-project/types": "workspace:^"
},
"main": "oxc_wasm.js",
"types": "oxc_wasm.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions crates/oxc_wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ use crate::options::{OxcOptions, OxcRunOptions};

#[wasm_bindgen::prelude::wasm_bindgen(typescript_custom_section)]
const TS_APPEND_CONTENT: &'static str = r#"
import type { Program, Span } from "@oxc/types";
export * from "@oxc/types";
import type { Program, Span } from "@oxc-project/types";
export * from "@oxc-project/types";
"#;

#[wasm_bindgen(getter_with_clone)]
Expand Down
2 changes: 1 addition & 1 deletion napi/parser/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export declare function moduleLexerSync(sourceText: string, options?: ParserOpti
export declare function parseAsync(sourceText: string, options?: ParserOptions | undefined | null): Promise<ParseResult>

export interface ParseResult {
program: import("@oxc/types").Program
program: import("@oxc-project/types").Program
comments: Array<Comment>
errors: Array<string>
}
Expand Down
4 changes: 2 additions & 2 deletions npm/oxc-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"bindings.js"
],
"devDependencies": {
"@oxc/types": "workspace:^"
"@oxc-project/types": "workspace:^"
}
}
}
2 changes: 1 addition & 1 deletion npm/oxc-types/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@oxc/types",
"name": "@oxc-project/types",
"version": "0.32.0",
"description": "Types for Oxc AST nodes",
"keywords": [
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wasm/parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"web"
],
"devDependencies": {
"@oxc/types": "workspace:^"
"@oxc-project/types": "workspace:^"
},
"scripts": {
"build": "pnpm run build-node && pnpm run build-web && pnpm run copy-files && pnpm run clean-files",
Expand Down
4 changes: 2 additions & 2 deletions wasm/parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use wasm_bindgen::prelude::*;

#[wasm_bindgen::prelude::wasm_bindgen(typescript_custom_section)]
const TS_APPEND_CONTENT: &'static str = r#"
import type { Program } from "@oxc/types";
export * from "@oxc/types";
import type { Program } from "@oxc-project/types";
export * from "@oxc-project/types";
"#;

#[derive(Debug, Default, Clone, Deserialize, Tsify)]
Expand Down

0 comments on commit c59c9cc

Please sign in to comment.