Skip to content

Commit

Permalink
Merge pull request #20 from purduehackers/fix-react-dependencies
Browse files Browse the repository at this point in the history
Fix react dependencies
  • Loading branch information
MatthewStanciu authored Dec 11, 2023
2 parents c9b4a31 + 113fac7 commit bcf16da
Show file tree
Hide file tree
Showing 4 changed files with 1,107 additions and 1,433 deletions.
9 changes: 3 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ module.exports = {
'**/?(*.)+(spec|test).+(ts|tsx|js)',
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(ts|tsx)$': ['ts-jest', {
tsconfig: 'tsconfig.json'
}],
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'./config/fileTransformer.js',
},
transformIgnorePatterns: ['./node_modules/(?!rgb-hex)'],
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
}
47 changes: 26 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@purduehackers/time",
"version": "0.6.13",
"version": "0.6.14",
"description": "convert between traditional time and lightning time ⚡️",
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand All @@ -22,22 +22,14 @@
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"pub": "npm run build && npm publish",
"build": "bunchee",
"build": "npm run test && rm -rf dist && bunchee",
"package": "npm run build && npm pack",
"test": "jest --no-cache --runInBand",
"test:cov": "jest --coverage --no-cache --runInBand"
},
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"react": ">=17.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"files": [
"dist",
"react"
Expand All @@ -63,18 +55,31 @@
"rgb-hex": "3.0.0"
},
"devDependencies": {
"@types/jest": "^29.1.2",
"@typescript-eslint/eslint-plugin": "^4.31.1",
"@typescript-eslint/parser": "^4.31.1",
"bunchee": "^3.9.2",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.2",
"jest": "^27.2.0",
"@types/jest": "^29.5.11",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"bunchee": "^4.0.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.0.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"pinst": "^2.1.6",
"prettier": "^2.4.0",
"ts-jest": "^27.0.5",
"prettier": "^3.1.1",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
},
"peerDependencies": {
"@types/react": ">=17.0.0",
"date-fns": ">=2.0.0",
"react": ">=17.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"@types/react": {
"optional": true
}
}
}
Loading

0 comments on commit bcf16da

Please sign in to comment.