Skip to content

Commit

Permalink
fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 1, 2024
1 parent 01b031c commit b5c5162
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
3 changes: 1 addition & 2 deletions packages/css-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"license": "APACHE-2.0",
"main": "lib/index.js",
"scripts": {
"build": "tsc",
"test": "jest"
"build": "tsc"
},
"keywords": [],
"devDependencies": {
Expand Down
25 changes: 11 additions & 14 deletions packages/jest/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"quotes": ["error", "single"],
"semi": ["error", "never"]
}
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
}
3 changes: 1 addition & 2 deletions packages/jest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ function createTransformer(
// @ts-expect-error - type overload is confused
const baseCacheKey = cacheKeyFunction(src, filename, ...rest);

// @ts-expect-error - signature mismatch between Jest <27 og >=27
const options: TransformOptions =
typeof rest[0] === "string" ? rest[1] : rest[0];
typeof rest[0] === "string" ? (rest as any)[1] : rest[0];

return crypto
.createHash("sha1")
Expand Down
3 changes: 1 addition & 2 deletions packages/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
"homepage": "https://github.com/swc-project/pkgs/tree/main/packages/jest",
"scripts": {
"build": "tsc",
"test": "npm test --workspaces",
"prepublishOnly": "npm run build && node scripts/publish_helper.js prepublish",
"postpublish": "node scripts/publish_helper.js postpublish",
"lint": "eslint . --ext .ts && echo 'No lint errors found!'"
"lint": "eslint . --ext .ts"
},
"keywords": [],
"author": "강동윤 <kdy1997.dev@gmail.com>",
Expand Down

0 comments on commit b5c5162

Please sign in to comment.