-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ESM migration of got-scraping (#109)
Closes #90 Closes #106 Closes #108 Closes #105 BREAKING CHANGE This package is now ESM only, as such, it cannot be required from inside a CJS project, use dynamic import instead.
- Loading branch information
1 parent
464632e
commit 35f1920
Showing
35 changed files
with
9,554 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{ | ||
"extends": [ | ||
"@apify/ts" | ||
], | ||
"parserOptions": { | ||
"project": "tsconfig.eslint.json" | ||
} | ||
} | ||
"extends": [ | ||
"@apify/ts" | ||
], | ||
"parserOptions": { | ||
"project": "tsconfig.eslint.json", | ||
"ecmaVersion": 2022 | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"no-void": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,3 @@ dist | |
.idea | ||
node_modules | ||
coverage | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
const jestConfig = { | ||
verbose: true, | ||
preset: 'ts-jest/presets/default-esm', | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1', | ||
}, | ||
transform: { | ||
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest` | ||
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest` | ||
'^.+\\.tsx?$': [ | ||
'ts-jest', | ||
{ | ||
useESM: true, | ||
tsconfig: '<rootDir>/test/tsconfig.json', | ||
}, | ||
], | ||
}, | ||
testEnvironment: 'node', | ||
testRunner: 'jest-circus/runner', | ||
testTimeout: 40_000, | ||
collectCoverage: true, | ||
collectCoverageFrom: [ | ||
'**/src/**/*.ts', | ||
'**/src/**/*.js', | ||
'!**/node_modules/**', | ||
], | ||
maxWorkers: 3, | ||
}; | ||
|
||
export default jestConfig; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.