Skip to content

Commit

Permalink
Merge pull request #13 from Tom-Hirschberger/development
Browse files Browse the repository at this point in the history
fixed JSONPath issue which is caused by MagicMirror not importing cjs
  • Loading branch information
Tom-Hirschberger authored Oct 17, 2024
2 parents d1a194e + 6e0a88e commit 0944093
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MMM-TouchButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Module.register('MMM-TouchButton', {
},

getScripts: function () {
return [this.file('node_modules/jsonpath-plus/dist/index-browser-umd.cjs'), this.file('node_modules/js-uuid/js-uuid.js'), this.file('node_modules/@iconify/iconify/dist/iconify.min.js')];
return [this.file('node_modules/jsonpath-plus/dist/index-browser-umd.js'), this.file('node_modules/js-uuid/js-uuid.js'), this.file('node_modules/@iconify/iconify/dist/iconify.min.js')];
},

getStyles: function() {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "MMM-TouchButton",
"version": "0.0.7",
"version": "0.0.8",
"description": "A MagicMirror² module to create touchable buttons displayed with icons that can be used to call scripts or send notifications.",
"main": "MMM-TouchButton",
"dependencies": {
"js-uuid": "latest",
"jsonpath-plus": "10.0.1",
"jsonpath-plus": "10.0.4",
"@iconify/iconify": "latest"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"postinstall": "./postinstall"
},
"keywords": [
"MagicMirror",
Expand Down
2 changes: 2 additions & 0 deletions postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
cp -v node_modules/jsonpath-plus/dist/index-browser-umd.cjs node_modules/jsonpath-plus/dist/index-browser-umd.js

0 comments on commit 0944093

Please sign in to comment.