From 8c703a8dc3aacfc3ef58c7b5b141a7e09ea2f718 Mon Sep 17 00:00:00 2001 From: Arturo Cuya Date: Sun, 26 Nov 2023 11:52:02 -0500 Subject: [PATCH] use `type=module` in package.json to allow for import statements in future scripts --- package.json | 5 +++-- scripts/{ropm-hook.js => ropm-hook.cjs} | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename scripts/{ropm-hook.js => ropm-hook.cjs} (100%) diff --git a/package.json b/package.json index 38e84d6c..85429e1f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "jellyfin-roku", + "type": "module", "version": "1.6.6", "description": "Roku app for Jellyfin media server", "dependencies": { @@ -37,7 +38,7 @@ "lint-markdown": "markdownlint-cli2 \"**/*.md\" \"#node_modules\"", "lint-spelling": "spellchecker -d dictionary.txt --files \"**/*.md\" \"**/.*/**/*.md\" \"!node_modules/**/*.md\"", "postinstall": "npm run ropm", - "ropm": "ropm copy && node scripts/ropm-hook.js", + "ropm": "ropm copy && node scripts/ropm-hook.cjs", "validate": "npx bsc --copy-to-staging=false --create-package=false" }, "repository": { @@ -54,4 +55,4 @@ "url": "https://github.com/jellyfin/jellyfin-roku/issues" }, "homepage": "https://github.com/jellyfin/jellyfin-roku" -} +} \ No newline at end of file diff --git a/scripts/ropm-hook.js b/scripts/ropm-hook.cjs similarity index 100% rename from scripts/ropm-hook.js rename to scripts/ropm-hook.cjs