Skip to content

Commit

Permalink
chore: Rename mjs files to js
Browse files Browse the repository at this point in the history
  • Loading branch information
rcdailey committed Oct 9, 2023
1 parent 2396078 commit 7e9a78f
Show file tree
Hide file tree
Showing 22 changed files with 18,489 additions and 512 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ inputs:
runs:
using: node16
main: dist/index.mjs
main: dist/index.js
2 changes: 1 addition & 1 deletion build-dist.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
ncc build discord-commits/index.mjs --license licenses.txt
ncc build discord-commits/index.js --license licenses.txt
6 changes: 3 additions & 3 deletions discord-commits/api.mjs → discord-commits/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import st from "stjs";

export async function loadTemplate(name) {
try {
return (await import(`./templates/${name}.mjs`)).default
return (await import(`./templates/${name}.js`)).default
} catch (err) {
return (await import(`./templates/plain.mjs`)).default
return (await import(`./templates/plain.js`)).default
}
}

Expand Down Expand Up @@ -33,4 +33,4 @@ export function createCommit(commit) {

export function parseTemplate(data, template) {
return st.select(data).transformWith(template).root()
}
}
File renamed without changes.
4 changes: 2 additions & 2 deletions discord-commits/index.mjs → discord-commits/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import core from "@actions/core";
import github from "@actions/github";
import fetch from "node-fetch";
import { createCommit, loadTemplate, parseTemplate, stringOrFalse, stringToBoolean } from "./api.mjs";
import defaultPayload from "./defaults/payload-commits.mjs"
import { createCommit, loadTemplate, parseTemplate, stringOrFalse, stringToBoolean } from "./api.js";
import defaultPayload from "./defaults/payload-commits.js"

const templateName = core.getInput("template") || "plain";
const template = await loadTemplate(templateName)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions dist/240.index.mjs → dist/274.index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const id = 240;
export const ids = [240];
export const id = 274;
export const ids = [274];
export const modules = {

/***/ 240:
/***/ 3274:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
Expand Down
6 changes: 3 additions & 3 deletions dist/266.index.mjs → dist/316.index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const id = 266;
export const ids = [266];
export const id = 316;
export const ids = [316];
export const modules = {

/***/ 266:
/***/ 3316:
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
Expand Down
Loading

0 comments on commit 7e9a78f

Please sign in to comment.