Skip to content

Commit

Permalink
updated links in docs to reflect new package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nkappler committed Nov 23, 2021
1 parent 5cd5a06 commit 9a1cdb3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
};
}
else {
script.src = "https://unpkg.com/ctxmenu";
script.src = "https://unpkg.com/ctxmenu/index.min.js";
script.type = "module";
exports = {};
script.onload = function () {
Expand Down Expand Up @@ -138,12 +138,12 @@
subMenu: [
{
text: "ctxmenu.js",
href: "ctxmenu.js",
href: "https://unpkg.com/ctxmenu/standalone/ctxmenu.js",
download: ""
},
{
text: "ctxmenu.min.js",
href: "ctxmenu.min.js",
href: "https://unpkg.com/ctxmenu/standalone/ctxmenu.min.js",
download: ""
}
]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "tsc -w test/demo.ts --outDir docs --removeComments",
"test": "tsc test/demo.ts --outDir docs --removeComments",
"prepublishOnly": "npm run version",
"version": "node util/copyrightHeader.js && npm run build && npm run test && git add *",
"build": "rollup -c"
Expand Down
6 changes: 3 additions & 3 deletions test/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
setup();
};
} else {
script.src = "https://unpkg.com/ctxmenu";
script.src = "https://unpkg.com/ctxmenu/index.min.js";
script.type = "module";
exports = {};
script.onload = () => {
Expand Down Expand Up @@ -151,12 +151,12 @@
subMenu: [
{
text: "ctxmenu.js",
href: "ctxmenu.js",
href: "https://unpkg.com/ctxmenu/standalone/ctxmenu.js",
download: ""
},
{
text: "ctxmenu.min.js",
href: "ctxmenu.min.js",
href: "https://unpkg.com/ctxmenu/standalone/ctxmenu.min.js",
download: ""
}
]
Expand Down

0 comments on commit 9a1cdb3

Please sign in to comment.