@wervt/nitro 0.0.2 → 0.0.4

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.
package/README.md CHANGED
@@ -12,6 +12,8 @@ export default defineConfig({
12
12
  })
13
13
  ```
14
14
 
15
+ Add `rolldown` to `devDependencies` too: Nitro doesn't install its builder during a CI build.
16
+
15
17
  - Builds for wervt's runtime (Supabase Edge Runtime, Deno): `node:` built-ins, Node globals,
16
18
  JSDoc import paths.
17
19
  - Serves `/_wervt/tasks` (the app's `tasks/`), the boot check and `/_wervt/user`.
package/dist/index.js CHANGED
@@ -45,10 +45,11 @@ async function setup(nitro, options) {
45
45
  return;
46
46
  }
47
47
  if (!/deno/i.test(String(nitro.options.preset))) throw new Error(`@wervt/nitro: wervt runs apps on Deno. Set \`preset: 'deno-server'\` in nitro.config (now: ${nitro.options.preset}).`);
48
- nitro.options.unenv.push({ inject: DENO_INJECT });
49
- nitro.hooks.hook("rollup:before", (_nitro, config) => {
50
- config.plugins = [...[config.plugins ?? []].flat(), ...denoPlugins()];
51
- });
48
+ nitro.options.inject = {
49
+ ...DENO_INJECT,
50
+ ...nitro.options.inject
51
+ };
52
+ nitro.options.buildPlugins.push(...denoPlugins());
52
53
  const { schedules, removed } = unscheduleSeed(nitro.options.scheduledTasks ?? {});
53
54
  if (removed.length) nitro.logger.warn(`\`${SEED_TASK}\` is not scheduled (${removed.join(", ")}): seeding only runs on request.`);
54
55
  nitro.options.scheduledTasks = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wervt/nitro",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Nitro module for apps hosted on wervt: Deno build for the runtime, tasks, local database and the bundle manifest.",
5
5
  "keywords": [
6
6
  "nitro",
@@ -31,14 +31,15 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@wervt/core": "^0.0.2",
35
- "@wervt/platform": "^0.0.2"
34
+ "@wervt/core": "^0.0.3",
35
+ "@wervt/platform": "^0.0.3"
36
36
  },
37
37
  "devDependencies": {
38
- "nitro": "3.0.260903-beta"
38
+ "nitro": "3.0.261102-rc",
39
+ "rolldown": "^1.2.16"
39
40
  },
40
41
  "peerDependencies": {
41
- "nitro": ">=3.0.260903-beta"
42
+ "nitro": ">=3.0.261029-rc"
42
43
  },
43
44
  "peerDependenciesMeta": {
44
45
  "nitro": {