Skip to content

Commit

Permalink
fix(connection-storage): fix package.json (#4836)
Browse files Browse the repository at this point in the history
Add missing exported files, and label production dependencies as such.
Also export `getConnectionTitle` from the main exports and not only the
renderer since that would be required for using this package inside
the VSCode extension, if we ever want to make that happen.
  • Loading branch information
addaleax authored Sep 13, 2023
1 parent 46d09ac commit c5200cb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
22 changes: 14 additions & 8 deletions packages/connection-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
"url": "https://github.com/mongodb-js/compass.git"
},
"files": [
"dist"
"dist",
"main.js",
"main.d.ts",
"renderer.js",
"renderer.d.ts"
],
"license": "SSPL",
"exports": {
Expand Down Expand Up @@ -47,32 +51,34 @@
"test-ci": "npm run test-cov",
"reformat": "npm run prettier -- --write . && npm run eslint . --fix"
},
"devDependencies": {
"dependencies": {
"@mongodb-js/compass-logging": "^1.1.9",
"@mongodb-js/compass-user-data": "^0.1.1",
"@mongodb-js/compass-utils": "^0.3.5",
"bson": "^6.0.0",
"keytar": "^7.9.0",
"lodash": "^4.17.21",
"mongodb-connection-string-url": "^2.6.0",
"zod": "^3.22.2"
},
"devDependencies": {
"@mongodb-js/eslint-config-compass": "^1.0.9",
"@mongodb-js/mocha-config-compass": "^1.3.1",
"@mongodb-js/prettier-config-compass": "^1.0.1",
"@mongodb-js/tsconfig-compass": "^1.0.3",
"@types/chai": "^4.2.21",
"@types/mocha": "^9.0.0",
"@types/sinon-chai": "^3.2.5",
"bson": "^6.0.0",
"chai": "^4.3.6",
"depcheck": "^1.4.1",
"electron": "^24.8.2",
"eslint": "^7.25.0",
"keytar": "^7.9.0",
"lodash": "^4.17.21",
"mocha": "^10.2.0",
"mongodb": "^6.0.0",
"mongodb-connection-string-url": "^2.6.0",
"mongodb-data-service": "^22.10.0",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"sinon": "^9.2.3",
"typescript": "^5.0.4",
"zod": "^3.22.2"
"typescript": "^5.0.4"
}
}
1 change: 1 addition & 0 deletions packages/connection-storage/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export {
ImportConnectionOptions,
} from './import-export-connection';
export { ConnectionInfo } from './connection-info';
export { getConnectionTitle } from './connection-title';

0 comments on commit c5200cb

Please sign in to comment.