Skip to content

Commit

Permalink
chore: change crate name & update license
Browse files Browse the repository at this point in the history
  • Loading branch information
hardfist committed Jul 7, 2024
1 parent 992bd14 commit d8a8264
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 89 deletions.
136 changes: 68 additions & 68 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ members = ["napi"]
resolver = "2"

[package]
version = "1.9.3"
name = "oxc_resolver"
authors = ["Boshen <[email protected]>"]
version = "0.1.0"
name = "rspack_resolver"
authors = ["Rspack"]
categories = ["development-tools"]
description = "ESM / CJS module resolution"
edition = "2021"
homepage = "https://github.com/oxc-project/oxc-resolver"
homepage = "https://github.com/web-infra-dev/rspack-resolver"
keywords = ["node", "resolve", "cjs", "esm", "enhanced-resolve"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/oxc-project/oxc-resolver"
repository = "https://github.com/web-infra-dev/rspack-resolver"
rust-version = "1.70"
include = ["/src", "/examples", "/benches"]

Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023-present Boshen
Copyright (c) 2024-present Bytedance Inc and its affiliates.
Copyright (c) 2023-2024 Boshen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions benches/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ fn data() -> Vec<(PathBuf, &'static str)> {
]
}

fn oxc_resolver() -> oxc_resolver::Resolver {
use oxc_resolver::{AliasValue, ResolveOptions, Resolver};
fn oxc_resolver() -> rspack_resolver::Resolver {
use rspack_resolver::{AliasValue, ResolveOptions, Resolver};
let alias_value = AliasValue::from("./");
Resolver::new(ResolveOptions {
extensions: vec![".ts".into(), ".js".into()],
Expand Down
4 changes: 2 additions & 2 deletions examples/resolver.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
///! See documentation at <https://docs.rs/oxc_resolver>
///! See documentation at <https://docs.rs/rspack_resolver>
use std::{env, path::PathBuf};

use oxc_resolver::{AliasValue, ResolveOptions, Resolver};
use rspack_resolver::{AliasValue, ResolveOptions, Resolver};

fn main() {
let path = PathBuf::from(env::args().nth(1).expect("path"));
Expand Down
4 changes: 2 additions & 2 deletions napi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "oxc_napi_resolver"
name = "rspack_napi_resolver"
version = "0.0.0"
publish = false
edition = "2021"
Expand All @@ -11,7 +11,7 @@ test = false
doctest = false

[dependencies]
oxc_resolver = { path = ".." }
oxc_resolver = { path = "..", package = "rspack_resolver"}
napi = { version = "2.16.7", default-features = false, features = ["napi3", "serde-json"] }
napi-derive = { version = "2.16.6" }
tracing-subscriber = { version = "0.3.18", default-features = false, features = [
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use std::{env, path::PathBuf};

use oxc_resolver::{EnforceExtension, Resolution, ResolveContext, ResolveOptions, Resolver};
use rspack_resolver::{EnforceExtension, Resolution, ResolveContext, ResolveOptions, Resolver};

fn dir() -> PathBuf {
env::current_dir().unwrap()
Expand Down
Loading

0 comments on commit d8a8264

Please sign in to comment.