Skip to content

Commit

Permalink
Create packages/shared (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano authored Jan 10, 2025
1 parent 41956bb commit a279735
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 10 deletions.
3 changes: 1 addition & 2 deletions packages/primary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.7.2",
"@fortawesome/free-regular-svg-icons": "^6.7.2",
"@fortawesome/free-solid-svg-icons": "^6.7.2",
"@prn-parking-lots/shared": "workspace:*",
"@parcel/resolver-glob": "~2.12.0",
"choices.js": "^10.2.0",
"leaflet": "~1.9.3"
Expand Down
5 changes: 3 additions & 2 deletions packages/primary/src/js/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import initIcons from "@prn-parking-lots/shared/src/js/fontAwesome";
import maybeDisableFullScreenIcon from "@prn-parking-lots/shared/src/js/iframe";

import { extractCityIdFromUrl } from "./cityId";
import initIcons from "./fontAwesome";
import maybeDisableFullScreenIcon from "./iframe";
import initAbout from "./about";
import subscribeShareLink from "./share";
import subscribeScorecard from "./scorecard";
Expand Down
12 changes: 12 additions & 0 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "@prn-parking-lots/shared",
"version": "1.0.0",
"type": "module",
"scripts": {},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.7.2",
"@fortawesome/free-regular-svg-icons": "^6.7.2",
"@fortawesome/free-solid-svg-icons": "^6.7.2"
},
"devDependencies": {}
}
File renamed without changes.
File renamed without changes.
21 changes: 15 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit a279735

Please sign in to comment.