Skip to content

Commit

Permalink
chore: Update npm dependency to latest stable version
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryven committed Aug 14, 2024
1 parent e1f613d commit 8ccd68e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 60 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/target
**/node_modules
/tests/**/*.yaml
/npm/!depclean/**/*
/npm/*
!/npm/depclean
/depclean-*
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ A Rust version of [depcheck]. It supports analyze ESM and require statement in y

[depcheck] is a really awesome tool, you definitely should check it out first!

This project is developed out of personal interest and is currently in the prototype stage. I want to
improve my Rust skill by investigating the feasibility of using [oxc]. If more people like it, I will continue to improve and enhance it, ideally to be a drop-in replacement for [depcheck].
This project is developed out of personal interest and currently in the prototype stage.

I want to
improve my Rust skill by investigating the feasibility of using [oxc]. If more people like it, I will continue to develop and enhance it, ideally to be a drop-in replacement for [depcheck]!

## Quick Start

Expand All @@ -35,12 +37,6 @@ Available options:
-V, --version Prints version information
```
## Add to Github actions
```yml

```
## Credits
- [depcheck]
Expand Down
12 changes: 4 additions & 8 deletions npm/depclean/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ A Rust version of [depcheck]. It supports analyze ESM and require statement in y

[depcheck] is a really awesome tool, you definitely should check it out first!

This project is developed out of personal interest and is currently in the prototype stage. I want to
improve my Rust skill by investigating the feasibility of using [oxc]. If more people like it, I will continue to improve and enhance it, ideally to be a drop-in replacement for [depcheck].
This project is developed out of personal interest and currently in the prototype stage.

I want to
improve my Rust skill by investigating the feasibility of using [oxc]. If more people like it, I will continue to develop and enhance it, ideally to be a drop-in replacement for [depcheck]!

## Quick Start

Expand All @@ -35,12 +37,6 @@ Available options:
-V, --version Prints version information
```
## Add to Github actions
```yml

```
## Credits
- [depcheck]
Expand Down
36 changes: 1 addition & 35 deletions npm/depclean/package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1 @@
{
"name": "depclean",
"version": "0.0.3",
"description": "A rust version depcheck to help you find and remove unused dependencies in your package.json",
"keywords": [
"depclean",
"depcheck",
"npm",
"node",
"rust"
],
"author": "mysteryven",
"license": "MIT",
"homepage": "https://github.com/mysteryven/depclean",
"bugs": "https://github.com/mysteryven/depclean/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/mysteryven/depclean.git",
"directory": "npm"
},
"bin": {
"depclean": "bin/depclean",
"abc": "123"
},
"engines": {
"node": ">=14.*"
},
"files": [
"bin/depclean",
"README.md"
],
"optionalDependencies": {
"@depclean/darwin-arm64": "0.0.2"
}
}
{"name":"depclean","version":"0.0.3","description":"A rust version depcheck to help you find and remove unused dependencies in your package.json","keywords":["depclean","depcheck","npm","node","rust"],"author":"mysteryven","license":"MIT","homepage":"https://github.com/mysteryven/depclean","bugs":"https://github.com/mysteryven/depclean/issues","repository":{"type":"git","url":"git+https://github.com/mysteryven/depclean.git","directory":"npm"},"bin":{"depclean":"bin/depclean","abc":"123"},"engines":{"node":">=14.*"},"files":["bin/depclean","README.md"],"optionalDependencies":{"@depclean/darwin-x64":"0.0.3"}}
15 changes: 7 additions & 8 deletions npm/depclean/scripts/gen.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const DEPCLEAN_ROOT = resolve(fileURLToPath(import.meta.url), "../..");
const PACKAGES_ROOT = resolve(DEPCLEAN_ROOT, "..");
const REPO_ROOT = resolve(PACKAGES_ROOT, "..");
const MANIFEST_PATH = resolve(DEPCLEAN_ROOT, "package.json");
console.log(PACKAGES_ROOT);

const rootManifest = JSON.parse(
fs.readFileSync(MANIFEST_PATH).toString("utf-8")
Expand Down Expand Up @@ -91,13 +90,13 @@ function writeManifest() {

// NOTE: Must update npm/depclean/bin/depclean
const TARGETS = [
// "win32-x64",
// "win32-arm64",
// "linux-x64-gnu",
// "linux-arm64-gnu",
// "linux-x64-musl",
// "linux-arm64-musl",
// "darwin-x64",
"win32-x64",
"win32-arm64",
"linux-x64-gnu",
"linux-arm64-gnu",
"linux-x64-musl",
"linux-arm64-musl",
"darwin-x64",
"darwin-arm64",
]

Expand Down

0 comments on commit 8ccd68e

Please sign in to comment.