Skip to content

Commit f288b34

Browse files
Brooooooklynclaude
andauthored
chore: rename npm package scope to @oxc-angular (#39)
* chore: rename npm package scope to @oxc-angular - @voidzero-dev/vite-plugin-angular -> @oxc-angular/compiler - @oxc-angular-compiler/binding-* -> @oxc-angular/binding-* - @oxc/angular-compare -> @oxc-angular/compare - @oxc/bitwarden-benchmark -> @oxc-angular/bitwarden-benchmark - @oxc/typedb-web-benchmark -> @oxc-angular/typedb-web-benchmark - Update all import paths, vite plugin names, CI filters, and docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: rename main package to @oxc-angular/vite, bindings to @oxc-angular/binding - @oxc-angular/compiler -> @oxc-angular/vite (main package) - NAPI binding requires: @oxc-angular/compiler-* -> @oxc-angular/binding-* - Vite plugin names: @oxc-angular/compiler-* -> @oxc-angular/vite-* - Update all import paths, workspace deps, and docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 117a8d3 commit f288b34

File tree

28 files changed

+116
-116
lines changed

28 files changed

+116
-116
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ jobs:
8181
pnpm --filter ./napi/angular-compiler exec playwright install --with-deps
8282
pnpm test:e2e
8383
- name: Compare tests
84-
run: pnpm --filter @oxc/angular-compare compare --fixtures
84+
run: pnpm --filter @oxc-angular/compare compare --fixtures

.github/workflows/release.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,8 @@ jobs:
141141
- name: Build TypeScript
142142
run: pnpm --filter ./napi/angular-compiler build:ts
143143

144-
- uses: actions/setup-node@v6
145-
with:
146-
registry-url: 'https://npm.pkg.github.com'
147-
148144
- name: Publish to npm
149145
working-directory: napi/angular-compiler
150-
run: npm publish
151-
env:
152-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146+
run: |
147+
npm install -g npm
148+
npm publish --access public

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ A high-performance Angular template compiler written in Rust, leveraging the [Ox
1616
## Installation
1717

1818
```bash
19-
npm install @voidzero-dev/vite-plugin-angular
19+
npm install @oxc-angular/vite
2020
# or
21-
pnpm add @voidzero-dev/vite-plugin-angular
21+
pnpm add @oxc-angular/vite
2222
# or
23-
yarn add @voidzero-dev/vite-plugin-angular
23+
yarn add @oxc-angular/vite
2424
```
2525

2626
## Quick Start
@@ -30,7 +30,7 @@ yarn add @voidzero-dev/vite-plugin-angular
3030
```typescript
3131
// vite.config.ts
3232
import { defineConfig } from 'vite'
33-
import { angular } from '@voidzero-dev/vite-plugin-angular'
33+
import { angular } from '@oxc-angular/vite'
3434

3535
export default defineConfig({
3636
plugins: [
@@ -46,7 +46,7 @@ export default defineConfig({
4646
### Programmatic API
4747

4848
```typescript
49-
import { compileTemplate, transformAngularFile } from '@voidzero-dev/vite-plugin-angular/api'
49+
import { compileTemplate, transformAngularFile } from '@oxc-angular/vite/api'
5050

5151
// Compile a template string
5252
const result = await compileTemplate(

crates/oxc_angular_compiler/src/transform/html_to_r3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4397,7 +4397,7 @@ impl<'a> HtmlToR3Transform<'a> {
43974397
strings.push(Atom::from_in(current_string.as_str(), self.allocator));
43984398

43994399
// Create the Interpolation expression
4400-
let span = ParseSpan::new(0, (text.span.end - text.span.start));
4400+
let span = ParseSpan::new(0, text.span.end - text.span.start);
44014401
let source_span = AbsoluteSourceSpan { start: text.span.start, end: text.span.end };
44024402
let interpolation = Interpolation { span, source_span, strings, expressions };
44034403
Some(AngularExpression::Interpolation(Box::new_in(interpolation, self.allocator)))

napi/angular-compiler/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ A high-performance, Rust-based Angular compiler for Node.js. Provides both a sta
1414
## Installation
1515

1616
```bash
17-
npm install @voidzero-dev/vite-plugin-angular
17+
npm install @oxc-angular/vite
1818
# or
19-
pnpm add @voidzero-dev/vite-plugin-angular
19+
pnpm add @oxc-angular/vite
2020
```
2121

2222
## Quick Start
@@ -26,7 +26,7 @@ pnpm add @voidzero-dev/vite-plugin-angular
2626
```typescript
2727
// vite.config.ts
2828
import { defineConfig } from 'vite'
29-
import { angular } from '@voidzero-dev/vite-plugin-angular/vite-plugin'
29+
import { angular } from '@oxc-angular/vite/vite-plugin'
3030

3131
export default defineConfig({
3232
plugins: [
@@ -45,7 +45,7 @@ import {
4545
transformAngularFile,
4646
compileTemplateSync,
4747
extractComponentUrlsSync,
48-
} from '@voidzero-dev/vite-plugin-angular'
48+
} from '@oxc-angular/vite'
4949

5050
// Transform an entire Angular file
5151
const result = await transformAngularFile(sourceCode, 'app.component.ts', {
@@ -60,10 +60,10 @@ const template = compileTemplateSync('<div>{{ title }}</div>', 'AppComponent', '
6060

6161
### Package Exports
6262

63-
| Export | Description |
64-
| --------------------------------------- | ------------- |
65-
| `@voidzero-dev/vite-plugin-angular` | Vite plugin |
66-
| `@voidzero-dev/vite-plugin-angular/api` | Low level API |
63+
| Export | Description |
64+
| ----------------------- | ------------- |
65+
| `@oxc-angular/vite` | Vite plugin |
66+
| `@oxc-angular/vite/api` | Low level API |
6767

6868
### Core Functions
6969

napi/angular-compiler/benchmarks/bitwarden/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ If your bitwarden-clients repository is in a different location, update the `BIT
8989
The `vite.config.ts` includes:
9090

9191
- **vite-tsconfig-paths**: Resolves 70+ path aliases from bitwarden's tsconfig
92-
- **@voidzero-dev/vite-plugin-angular**: OXC's Angular compiler plugin
92+
- **@oxc-angular/vite**: OXC's Angular compiler plugin
9393
- **SCSS preprocessing**: With proper include paths for bitwarden's styles
9494
- **PostCSS**: Matching bitwarden's configuration (tailwind, autoprefixer, etc.)
9595
- **process.env polyfills**: For bitwarden's environment variable usage

napi/angular-compiler/benchmarks/bitwarden/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@oxc/bitwarden-benchmark",
2+
"name": "@oxc-angular/bitwarden-benchmark",
33
"version": "0.0.0",
44
"private": true,
55
"type": "module",
@@ -28,11 +28,11 @@
2828
"zone.js": "~0.15.0"
2929
},
3030
"devDependencies": {
31+
"@oxc-angular/vite": "workspace:^",
3132
"@oxc-node/cli": "catalog:",
3233
"@oxc-node/core": "catalog:",
3334
"@tailwindcss/container-queries": "^0.1.1",
3435
"@types/node": "^22.19.3",
35-
"@voidzero-dev/vite-plugin-angular": "workspace:^",
3636
"autoprefixer": "^10.4.23",
3737
"buffer": "^6.0.3",
3838
"path-browserify": "^1.0.1",

napi/angular-compiler/benchmarks/bitwarden/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { resolve, dirname } from 'node:path'
22
import { fileURLToPath } from 'node:url'
33

44
// Use our local vite-plugin implementation
5-
import { angular } from '@voidzero-dev/vite-plugin-angular/vite-plugin'
5+
import { angular } from '@oxc-angular/vite/vite-plugin'
66
import { defineConfig, type UserConfig } from 'vite'
77
import wasm from 'vite-plugin-wasm'
88
import tsconfigPaths from 'vite-tsconfig-paths'

napi/angular-compiler/benchmarks/typedb-web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@oxc/typedb-web-benchmark",
2+
"name": "@oxc-angular/typedb-web-benchmark",
33
"version": "0.0.0",
44
"private": true,
55
"type": "module",
@@ -39,12 +39,12 @@
3939
"zone.js": "0.15.1"
4040
},
4141
"devDependencies": {
42+
"@oxc-angular/vite": "workspace:^",
4243
"@sanity/types": "3.97.1",
4344
"@types/d3-force": "3.0.4",
4445
"@types/fontfaceobserver": "2.1.1",
4546
"@types/node": "^22.19.3",
4647
"@types/prismjs": "1.26.0",
47-
"@voidzero-dev/vite-plugin-angular": "workspace:^",
4848
"sass": "^1.97.2",
4949
"tsx": "^4.21.0",
5050
"typescript": "catalog:",

napi/angular-compiler/benchmarks/typedb-web/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { resolve, dirname } from 'node:path'
22
import { fileURLToPath } from 'node:url'
33

44
// Use our local vite-plugin implementation
5-
import { angular } from '@voidzero-dev/vite-plugin-angular/vite-plugin'
5+
import { angular } from '@oxc-angular/vite/vite-plugin'
66
import { defineConfig, type UserConfig } from 'vite'
77
import tsconfigPaths from 'vite-tsconfig-paths'
88

0 commit comments

Comments
 (0)