Skip to content

Commit

Permalink
Use npm package to fix deploy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-w-gries committed May 27, 2024
1 parent 8be7de1 commit 8bb7d20
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 15 deletions.
1 change: 1 addition & 0 deletions bookmarklet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# bookmarklet
8 changes: 6 additions & 2 deletions bookmarklet/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "bookmarklet",
"name": "@code-with-durham/bookmarklet",
"version": "0.1.0",
"description": "Bookmark that forwards Portal case info for parsing",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Rob Gries",
"license": "ISC"
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/deardurham/dear-petition/bookmarklet"
}
}
21 changes: 13 additions & 8 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@popperjs/core": "^2.11.2",
"@reduxjs/toolkit": "^1.7.2",
"axios": "^0.21.2",
"bookmarklet": "file:./bookmarklet",
"@code-with-durham/bookmarklet": "0.1.0",
"classnames": "^2.3.1",
"date-fns": "^2.28.0",
"file-saver": "^2.0.5",
Expand Down
6 changes: 2 additions & 4 deletions src/components/pages/PageBase.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ import { DropdownMenu } from '../elements/DropdownMenu';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCaretDown, faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';

// eslint-disable-next-line import/no-unresolved
import { generateBookmarklet } from 'bookmarklet';
// eslint-disable-next-line import/no-unresolved
import bookmarkletMetadata from 'bookmarklet/package.json';
import { generateBookmarklet } from '@code-with-durham/bookmarklet';
import bookmarkletMetadata from '@code-with-durham/bookmarklet/package.json';

const bookmarkletVersion = `v${bookmarkletMetadata.version}`;

Expand Down

0 comments on commit 8bb7d20

Please sign in to comment.