Skip to content

Commit

Permalink
Fix microbundle output, generate UMD only (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Jan 11, 2023
1 parent 4a6e13e commit 6e9fda9
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.18.1
v16.19.0
114 changes: 57 additions & 57 deletions package-lock.json

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

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"version": "1.0.0",
"description": "A portable, embeddable version of the DO Community DNS Lookup tool.",
"license": "Apache-2.0",
"source": "src/index.js",
"main": "build/bundle.js",
"main": "src/index.js",
"publishConfig": {
"source": "src/index.js",
"main": "build/bundle.js"
},
"scripts": {
"build": "microbundle build",
"watch": "microbundle watch",
"build": "microbundle -f umd -o build/bundle.js --no-pkg-main",
"watch": "npm run build -- watch",
"test": "eslint 'src/**/*.js'",
"test:fix": "npm run test -- --fix"
},
Expand All @@ -24,7 +27,7 @@
},
"homepage": "https://github.com/do-community/dns-tool-embed#readme",
"devDependencies": {
"eslint": "^8.28.0",
"eslint": "^8.31.0",
"microbundle": "^0.15.1"
},
"dependencies": {}
Expand Down
10 changes: 5 additions & 5 deletions src/embed.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2023 DigitalOcean
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import records from './records';
import fetch from './fetch';
import refreshIcon from './icons/refresh-cw';
import externalLinkIcon from './icons/external-link';
import records from './records.js';
import fetch from './fetch.js';
import refreshIcon from './icons/refresh-cw.js';
import externalLinkIcon from './icons/external-link.js';

export default class DNSEmbed {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2020 DigitalOcean
Copyright 2023 DigitalOcean
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import DNSEmbed from './embed';
import DNSEmbed from './embed.js';

window._DNSToolEmbedsCache = {};

Expand Down

0 comments on commit 6e9fda9

Please sign in to comment.