Skip to content

Commit

Permalink
[chore] fix project configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksteamdev committed Nov 22, 2020
1 parent 051df15 commit 6378384
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 6 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
preset: 'ts-jest',
globals: {
'ts-jest': {
packageJson: 'package.json',
},
},
setupFilesAfterEnv: ['./tests/jest.setup.ts'],
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
},
"dependencies": {
"@extend-chrome/events-rxjs": "^0.12.1",
"@extend-chrome/messages": "^1.1.1"
"@extend-chrome/messages": "^1.1.1",
"rxjs": "^6.5.3"
},
"devDependencies": {
"@types/chrome": "0.0.91",
Expand All @@ -44,13 +45,12 @@
"prettier": "^1.18.2",
"rollup": "^1.25.2",
"rollup-plugin-bundle-imports": "^1.4.5",
"rollup-plugin-chrome-extension": "^1.2.6",
"rollup-plugin-chrome-extension": "^3.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-empty-dir": "^1.0.4",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-zip": "^0.5.2",
"rxjs": "^6.5.3",
"ts-jest": "^24.1.0",
"tslib": "^1.10.0",
"typescript": "^3.6.4"
Expand Down
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export default [
}),
typescript(),
],
external: (id) => !(id.split('/')[0] in dependencies),
external: (id) =>
Object.keys(dependencies).some((dep) =>
id.startsWith(dep),
),
},
]

0 comments on commit 6378384

Please sign in to comment.