Skip to content

Commit

Permalink
Support JSON 🙌
Browse files Browse the repository at this point in the history
  • Loading branch information
01taylop committed Oct 26, 2024
1 parent 8e53bfb commit 7261d16
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 1 addition & 3 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const config: JestConfigWithTsJest = {
clearMocks: true,
collectCoverageFrom: [
'src/**/*',
// TODO: Write tests for these files when they are less likely to change
'!src/index.ts',
'!src/linters/index.ts',
],
coverageDirectory: 'coverage',
coverageThreshold: {
Expand Down Expand Up @@ -36,7 +34,7 @@ const config: JestConfigWithTsJest = {
},
transformIgnorePatterns: [
'./node_modules/(?!(chalk)/)',
]
],
}

export default config
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.4",
"@babel/preset-typescript": "7.24.7",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-typescript": "11.1.6",
"@types/eslint": "9.6.1",
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'

import json from '@rollup/plugin-json'
import { nodeResolve } from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'
import copy from 'rollup-plugin-copy'
Expand Down Expand Up @@ -37,6 +38,7 @@ export default [{
format: 'es',
},
plugins: [
json(),
nodeResolve({
preferBuiltins: true,
}),
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@Types": ["./src/types/index.ts"],
"@Utils/*": ["./src/utils/*"],
},
"resolveJsonModule": true,
"rootDir": "./",
"strict": true,
"target": "ESNext"
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1722,6 +1722,13 @@
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==

"@rollup/[email protected]":
version "6.1.0"
resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-6.1.0.tgz#fbe784e29682e9bb6dee28ea75a1a83702e7b805"
integrity sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==
dependencies:
"@rollup/pluginutils" "^5.1.0"

"@rollup/[email protected]":
version "15.2.3"
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz#e5e0b059bd85ca57489492f295ce88c2d4b0daf9"
Expand Down

0 comments on commit 7261d16

Please sign in to comment.