Skip to content

Commit

Permalink
chore!: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cyco130 committed Dec 30, 2023
1 parent 2058301 commit 926c2af
Show file tree
Hide file tree
Showing 11 changed files with 1,591 additions and 1,211 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require("@cyco130/eslint-config/patch");

module.exports = {
extends: ["@cyco130/eslint-config/node"],
ignorePatterns: ["dist", "node_modules", "**/*.cjs"],
parserOptions: { project: __dirname + "/tsconfig.json" },
};
6 changes: 0 additions & 6 deletions .eslintrc.js

This file was deleted.

14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node_version: [16]
node_version: [20]
include:
- os: ubuntu-latest
node_version: 14
- os: ubuntu-latest
node_version: 18
- os: ubuntu-latest
node_version: 21
fail-fast: false
name: "CI tests on node-${{ matrix.node_version }}, ${{ matrix.os }}"
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2.1.0
uses: pnpm/action-setup@v2
with:
version: 7
version: 8

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: "pnpm"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
name: "Code quality checks on node-${{ matrix.node_version }}, ${{ matrix.os }}"
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2.1.0
uses: pnpm/action-setup@v2
with:
version: 7
version: 8

- name: Set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: "pnpm"
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,24 +132,29 @@ function transformFile(
): Promise<void>;

// Remove magic comments without performing the TS to JS transform
export function removeMagicComments(
export async function removeMagicComments(
// Source code
code: string,
// File name for the source
fileName: string,
// Options to pass to prettier
prettierOptions?: PrettierOptions | null,
): string;
): Promise<string>;

// Remove magic comments from the input file and write the output to another file
export function removeMagicCommentsFromFile(
export async function removeMagicCommentsFromFile(
inputFileName: string,
outputFileName: string,
): Promise<void>;
```

## Change log

### 1.0

- BREAKING CHANGE: `removeMagicComments` is now async due to Prettier's API change
- feat: support transform defineProps's and defineEmits's types to parameters ([PR by Dunqing](https://github.com/cyco130/detype/pull/11))

### 0.6

- feature: Option to remove @ts-ignore and @ts-expect-error comments
Expand Down
35 changes: 17 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,28 @@
"index.d.ts"
],
"dependencies": {
"@babel/core": "^7.21.4",
"@babel/preset-typescript": "^7.21.4",
"@vue/compiler-dom": "^3.2.47",
"@vue/compiler-sfc": "^3.2.47",
"@babel/core": "^7.23.7",
"@babel/preset-typescript": "^7.23.3",
"@vue/compiler-dom": "^3.4.3",
"@vue/compiler-sfc": "^3.4.3",
"@vuedx/compiler-sfc": "0.7.1",
"@vuedx/template-ast-types": "0.7.1",
"fast-glob": "^3.2.12",
"prettier": "^2.8.7",
"string.prototype.replaceall": "^1.0.7"
"fast-glob": "^3.3.2",
"prettier": "^3.1.1",
"string.prototype.replaceall": "^1.0.8"
},
"devDependencies": {
"@babel/traverse": "^7.21.4",
"@cyco130/eslint-config": "^3.0.2",
"@types/babel__core": "^7.20.0",
"@types/babel__traverse": "^7.18.3",
"@types/node": "18.15.11",
"@types/prettier": "^2.7.2",
"eslint": "^8.37.0",
"@babel/traverse": "^7.23.7",
"@cyco130/eslint-config": "^3.6.0",
"@types/babel__core": "^7.20.5",
"@types/babel__traverse": "^7.20.5",
"@types/node": "20.10.6",
"eslint": "^8.56.0",
"npm-run-all": "^4.1.5",
"rimraf": "^4.4.1",
"tsup": "^6.7.0",
"typescript": "^5.0.3",
"vitest": "0.34.4"
"rimraf": "^5.0.5",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vitest": "1.1.0"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 926c2af

Please sign in to comment.