Skip to content

Commit

Permalink
Index is the main entry, with default exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mirisuzanne committed Jul 28, 2024
1 parent 754313e commit 419f2ac
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ground-control.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export class GroundControl extends HTMLElement {
export default class GroundControl extends HTMLElement {
static observedAttributes = [
'data-for', // <selector-list> of elements to update…
// by setting either…
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GroundControl } from "./ground-control.js";
import { InputControl } from "./input-control.js";
import { ToggleControl } from "./toggle-control.js";
import GroundControl from "./ground-control.js";
import InputControl from "./input-control.js";
import ToggleControl from "./toggle-control.js";

export default {
GroundControl,
Expand Down
4 changes: 2 additions & 2 deletions input-control.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GroundControl } from "./ground-control.js";
import GroundControl from "./ground-control.js";

export class InputControl extends GroundControl {
export default class InputControl extends GroundControl {
static register(tagName) {
if ('customElements' in window) {
customElements.define(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@terriblemia/ground-control",
"version": "0.1.0",
"description": "A Web Component for…",
"main": "ground-control.js",
"main": "index.js",
"scripts": {
"dev": "npx http-server ."
},
Expand Down
4 changes: 2 additions & 2 deletions toggle-control.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GroundControl } from "./ground-control.js";
import GroundControl from "./ground-control.js";

export class ToggleControl extends GroundControl {
export default class ToggleControl extends GroundControl {
static register(tagName) {
if ('customElements' in window) {
customElements.define(
Expand Down

0 comments on commit 419f2ac

Please sign in to comment.