Skip to content

Commit

Permalink
💥 Transform to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
fabsrc committed Jul 31, 2021
1 parent f82bbf7 commit bcc57b2
Show file tree
Hide file tree
Showing 8 changed files with 137 additions and 104 deletions.
197 changes: 108 additions & 89 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 16 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
"name": "graphql-schema-diff",
"version": "2.3.0",
"description": "Returns the diff of two GraphQL schemas. Detects dangerous and breaking changes.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"exports": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc",
"dev": "ts-node --files src/cli",
"dev": "node --loader ts-node/esm ./src/cli.ts",
"prepack": "npm run build",
"test": "jest",
"fmt": "prettier --write src/**"
},
"bin": "dist/cli.js",
"bin": "./dist/cli.js",
"files": [
"dist/",
"npm-shrinkwrap.json"
Expand Down Expand Up @@ -41,7 +42,7 @@
"disparity": "^3.2.0",
"fs-extra": "^10.0.0",
"graphql": "^15.5.1",
"meow": "^9.0.0"
"meow": "^10.1.1"
},
"devDependencies": {
"@types/fs-extra": "^9.0.12",
Expand All @@ -58,13 +59,21 @@
"typescript": "^4.3.5"
},
"engines": {
"node": ">= 12"
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
"jest": {
"roots": [
"src"
],
"preset": "ts-jest",
"preset": "ts-jest/presets/default-esm",
"globals": {
"ts-jest": {
"useESM": true
}
},
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"testEnvironment": "node",
"collectCoverage": true
}
Expand Down
Loading

0 comments on commit bcc57b2

Please sign in to comment.