Skip to content

Commit f5e3aee

Browse files
authored
Merge pull request #5 from internetarchive/webcomponent
Make CDXSummary module importable
2 parents e192a86 + aa7720c commit f5e3aee

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/npm_dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
node-version: "16.x"
2121
registry-url: "https://registry.npmjs.org"
2222
- name: Publish package on NPM
23-
run: cd webcomponent && npm publish --access public
23+
run: cd webcomponent && npm publish
2424
env:
2525
NODE_AUTH_TOKEN: ${{ secrets.NPM_PASSWORD }}

webcomponent/cdxsummary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CDXSummary extends HTMLElement {
1+
export class CDXSummary extends HTMLElement {
22
PETABOX = 'https://archive.org/download/';
33
WAYBACK = 'https://web.archive.org/web/';
44
CLIREPO = 'https://github.com/internetarchive/cdx-summary';

webcomponent/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
22
"name": "@internetarchive/cdxsummary",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "A Web Component to render CDX Summary JSON files",
55
"main": "cdxsummary.js",
6+
"module": "cdxsummary.js",
7+
"publishConfig": {
8+
"access": "public"
9+
},
610
"scripts": {
711
"test": "echo \"Error: no test specified\" && exit 1"
812
},

0 commit comments

Comments
 (0)