elm-pages 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,7 @@ console.elmlog = (str) => logs.push(str + "\n");
75
75
  const { Elm } = require("./Runner.elm.js");
76
76
 
77
77
  // Start the Elm app
78
- const flags = { initialSeed: 2355856432, fuzzRuns: 100, filter: null };
78
+ const flags = { initialSeed: 1561605696, fuzzRuns: 100, filter: null };
79
79
  const app = Elm.Runner.init({ flags: flags });
80
80
 
81
81
  // Record the timing at which we received the last "runTest" message
@@ -82,7 +82,7 @@ const verbosity = 0;
82
82
  // Create a long lived reporter worker
83
83
  const { Elm } = require("./Reporter.elm.js");
84
84
  const flags = {
85
- initialSeed: 2355856432,
85
+ initialSeed: 1561605696,
86
86
  fuzzRuns: 100,
87
87
  mode: "consoleNoColor",
88
88
  verbosity: verbosity,
@@ -75,7 +75,7 @@ console.elmlog = (str) => logs.push(str + "\n");
75
75
  const { Elm } = require("./Runner.elm.js");
76
76
 
77
77
  // Start the Elm app
78
- const flags = { initialSeed: 4060045988, fuzzRuns: 100, filter: null };
78
+ const flags = { initialSeed: 3204223018, fuzzRuns: 100, filter: null };
79
79
  const app = Elm.Runner.init({ flags: flags });
80
80
 
81
81
  // Record the timing at which we received the last "runTest" message
@@ -82,7 +82,7 @@ const verbosity = 0;
82
82
  // Create a long lived reporter worker
83
83
  const { Elm } = require("./Reporter.elm.js");
84
84
  const flags = {
85
- initialSeed: 4060045988,
85
+ initialSeed: 3204223018,
86
86
  fuzzRuns: 100,
87
87
  mode: "consoleNoColor",
88
88
  verbosity: verbosity,
@@ -635,7 +635,10 @@ export async function compileCliApp(options) {
635
635
  // TODO should be --optimize, but there seems to be an issue with the html to JSON with --optimize
636
636
  options.debug ? "debug" : "optimize",
637
637
  options,
638
- path.join(process.cwd(), "elm-stuff/elm-pages/.elm-pages/Main.elm"),
638
+ path.join(
639
+ process.cwd(),
640
+ `elm-stuff/elm-pages/.elm-pages/${options.mainModule || "Main"}.elm`
641
+ ),
639
642
  path.join(process.cwd(), "elm-stuff/elm-pages/elm.js"),
640
643
  path.join(process.cwd(), "elm-stuff/elm-pages")
641
644
  );
@@ -146,7 +146,11 @@ async function main() {
146
146
  // TODO have option for compiling with --debug or not (maybe allow running with elm-optimize-level-2 as well?)
147
147
 
148
148
  let executableName = await lamderaOrElmFallback();
149
- await build.compileCliApp({ debug: "debug", executableName });
149
+ await build.compileCliApp({
150
+ debug: "debug",
151
+ executableName,
152
+ mainModule: "ScriptMain",
153
+ });
150
154
  fs.renameSync(
151
155
  `${projectDirectory}/elm-stuff/elm-pages/elm.js`,
152
156
  `${projectDirectory}/elm-stuff/elm-pages/elm.cjs`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elm-pages",
3
3
  "type": "module",
4
- "version": "3.0.4",
4
+ "version": "3.0.5",
5
5
  "homepage": "https://elm-pages.com",
6
6
  "moduleResolution": "node",
7
7
  "description": "Type-safe static sites, written in pure elm with your own custom elm-markup syntax.",