@quilted/rollup 0.2.4 → 0.2.6

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/esm/app.mjs +130 -125
  3. package/build/esm/features/node.mjs +57 -0
  4. package/build/esm/module.mjs +21 -22
  5. package/build/esm/package.mjs +36 -79
  6. package/build/esm/server.mjs +16 -25
  7. package/build/esm/shared/magic-module.mjs +5 -3
  8. package/build/esm/shared/project.mjs +100 -0
  9. package/build/tsconfig.tsbuildinfo +1 -1
  10. package/build/typescript/app.d.ts +23 -18
  11. package/build/typescript/app.d.ts.map +1 -1
  12. package/build/typescript/features/env.d.ts +3 -5
  13. package/build/typescript/features/env.d.ts.map +1 -1
  14. package/build/typescript/features/node.d.ts +4 -0
  15. package/build/typescript/features/node.d.ts.map +1 -0
  16. package/build/typescript/features/request-router.d.ts +2 -2
  17. package/build/typescript/module.d.ts +1 -1
  18. package/build/typescript/module.d.ts.map +1 -1
  19. package/build/typescript/package.d.ts +3 -5
  20. package/build/typescript/package.d.ts.map +1 -1
  21. package/build/typescript/server.d.ts +0 -1
  22. package/build/typescript/server.d.ts.map +1 -1
  23. package/build/typescript/shared/magic-module.d.ts +3 -3
  24. package/build/typescript/shared/magic-module.d.ts.map +1 -1
  25. package/build/typescript/shared/project.d.ts +33 -0
  26. package/build/typescript/shared/project.d.ts.map +1 -0
  27. package/package.json +19 -1
  28. package/source/app.ts +158 -154
  29. package/source/features/node.ts +74 -0
  30. package/source/module.ts +20 -22
  31. package/source/package.ts +37 -109
  32. package/source/server.ts +16 -30
  33. package/source/shared/magic-module.ts +10 -4
  34. package/source/shared/project.ts +150 -0
  35. package/build/esm/shared/package-json.mjs +0 -16
  36. package/build/esm/shared/path.mjs +0 -7
  37. package/source/shared/package-json.ts +0 -20
  38. package/source/shared/path.ts +0 -5
@@ -1,7 +0,0 @@
1
- import { fileURLToPath } from 'node:url';
2
-
3
- function resolveRoot(root) {
4
- return typeof root === "string" ? root : fileURLToPath(root);
5
- }
6
-
7
- export { resolveRoot };
@@ -1,20 +0,0 @@
1
- import * as path from 'path';
2
- import {fileURLToPath} from 'url';
3
- import {readFile} from 'fs/promises';
4
-
5
- export interface PackageJSON {
6
- name?: string;
7
- [key: string]: unknown;
8
- }
9
-
10
- export async function loadPackageJSON(root: string | URL) {
11
- const file = await readFile(
12
- path.join(
13
- typeof root === 'string' ? root : fileURLToPath(root),
14
- 'package.json',
15
- ),
16
- 'utf8',
17
- );
18
-
19
- return JSON.parse(file) as PackageJSON;
20
- }
@@ -1,5 +0,0 @@
1
- import {fileURLToPath} from 'url';
2
-
3
- export function resolveRoot(root: string | URL) {
4
- return typeof root === 'string' ? root : fileURLToPath(root);
5
- }