Skip to content

Commit

Permalink
chore: add "repository", "engines", and "publishConfig"
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Mar 18, 2024
1 parent 3379ace commit 5429b99
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const JSDOMEnvironment = require('jest-environment-jsdom').default
// or import JSDOMEnvironment from 'jest-environment-jsdom'
// if you are using ESM modules

class JSDOMEnvironmentExtended extends JSDOMEnvironment {
class FixedJSDOMEnvironment extends JSDOMEnvironment {
constructor(...args) {
super(...args)

Expand All @@ -24,4 +22,4 @@ class JSDOMEnvironmentExtended extends JSDOMEnvironment {
}
}

module.exports = JSDOMEnvironmentExtended
module.exports = FixedJSDOMEnvironment
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
"name": "jest-fixed-jsdom",
"version": "0.0.0",
"description": "A superset of the JSDOM environment for Jest that respects Node.js globals.",
"main": "./index.js",
"scripts": {
"test": "jest",
"prepack": "pnpm build",
"release": "release publish"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mswjs/jest-fixed-jsdom"
},
"homepage": "https://github.com/mswjs/jest-fixed-jsdom#readme",
"bugs": "https://github.com/mswjs/jest-fixed-jsdom/issues",
"author": [
Expand Down Expand Up @@ -39,6 +44,12 @@
"msw",
"mswjs"
],
"engines": {
"node": ">=18.0.0"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@ossjs/release": "^0.8.1",
"jest": "^29.7.0",
Expand Down

0 comments on commit 5429b99

Please sign in to comment.