From 4a1d9f795cda183063cc079b268ac9300d53cfa1 Mon Sep 17 00:00:00 2001 From: Eligarf Date: Thu, 2 May 2024 09:22:05 -0700 Subject: [PATCH] Revert "rename extensions" This reverts commit c372c3ea9722b4b0df47572f43994036e45c1656. --- .github/workflows/main.yml | 4 ++-- module.json | 10 +++++----- esmodules/doors.mjs => scripts/doors.js | 2 +- esmodules/engine.mjs => scripts/engine.js | 2 +- esmodules/hooks.mjs => scripts/hooks.js | 2 +- esmodules/stealthy.mjs => scripts/stealthy.js | 0 .../systems/dnd4e.mjs => scripts/systems/dnd4e.js | 0 .../systems/dnd5e.mjs => scripts/systems/dnd5e.js | 0 esmodules/systems/pf1.mjs => scripts/systems/pf1.js | 0 9 files changed, 10 insertions(+), 10 deletions(-) rename esmodules/doors.mjs => scripts/doors.js (98%) rename esmodules/engine.mjs => scripts/engine.js (99%) rename esmodules/hooks.mjs => scripts/hooks.js (99%) rename esmodules/stealthy.mjs => scripts/stealthy.js (100%) rename esmodules/systems/dnd4e.mjs => scripts/systems/dnd4e.js (100%) rename esmodules/systems/dnd5e.mjs => scripts/systems/dnd5e.js (100%) rename esmodules/systems/pf1.mjs => scripts/systems/pf1.js (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e3c688d..637e438 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: bugs: https://github.com/${{github.repository}}/issues # Create a zip file with all files required by the module to add to the release - - run: zip -r ./module.zip module.json README.md LICENSE ChangeLog.md esmodules/ styles/ languages/ + - run: zip -r ./module.zip module.json README.md LICENSE ChangeLog.md scripts/ styles/ languages/ # Create a release for this specific version - name: Update Release with Files @@ -45,7 +45,7 @@ jobs: with: allowUpdates: true # Set this to false if you want to prevent updating existing releases name: ${{ github.event.release.name }} - # draft: ${{ github.event.release.unpublished }} + draft: ${{ github.event.release.unpublished }} prerelease: ${{ github.event.release.prerelease }} token: ${{ secrets.GITHUB_TOKEN }} artifacts: './module.json, ./module.zip' diff --git a/module.json b/module.json index fcfb7d3..324ad66 100644 --- a/module.json +++ b/module.json @@ -53,11 +53,11 @@ ] }, "esmodules": [ - "esmodules/stealthy.mjs", - "esmodules/hooks.mjs", - "esmodules/systems/dnd4e.mjs", - "esmodules/systems/dnd5e.mjs", - "esmodules/systems/pf1.mjs" + "scripts/stealthy.js", + "scripts/hooks.js", + "scripts/systems/dnd4e.js", + "scripts/systems/dnd5e.js", + "scripts/systems/pf1.js" ], "styles": [ "styles/stealthy.css" diff --git a/esmodules/doors.mjs b/scripts/doors.js similarity index 98% rename from esmodules/doors.mjs rename to scripts/doors.js index 31f6763..8d5f788 100644 --- a/esmodules/doors.mjs +++ b/scripts/doors.js @@ -1,4 +1,4 @@ -import { Stealthy } from "./stealthy.mjs"; +import { Stealthy } from "./stealthy.js"; export default class Doors { diff --git a/esmodules/engine.mjs b/scripts/engine.js similarity index 99% rename from esmodules/engine.mjs rename to scripts/engine.js index c9d09d6..f3e6db2 100644 --- a/esmodules/engine.mjs +++ b/scripts/engine.js @@ -1,4 +1,4 @@ -import { Stealthy } from "./stealthy.mjs"; +import { Stealthy } from "./stealthy.js"; import Doors from "./doors.js"; export default class Engine { diff --git a/esmodules/hooks.mjs b/scripts/hooks.js similarity index 99% rename from esmodules/hooks.mjs rename to scripts/hooks.js index 49a72cd..aa31431 100644 --- a/esmodules/hooks.mjs +++ b/scripts/hooks.js @@ -1,4 +1,4 @@ -import { Stealthy } from "./stealthy.mjs"; +import { Stealthy } from "./stealthy.js"; function migrate(moduleVersion, oldVersion) { diff --git a/esmodules/stealthy.mjs b/scripts/stealthy.js similarity index 100% rename from esmodules/stealthy.mjs rename to scripts/stealthy.js diff --git a/esmodules/systems/dnd4e.mjs b/scripts/systems/dnd4e.js similarity index 100% rename from esmodules/systems/dnd4e.mjs rename to scripts/systems/dnd4e.js diff --git a/esmodules/systems/dnd5e.mjs b/scripts/systems/dnd5e.js similarity index 100% rename from esmodules/systems/dnd5e.mjs rename to scripts/systems/dnd5e.js diff --git a/esmodules/systems/pf1.mjs b/scripts/systems/pf1.js similarity index 100% rename from esmodules/systems/pf1.mjs rename to scripts/systems/pf1.js