@axium/server 0.19.10 → 0.20.0

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/build/client/_app/immutable/chunks/{tQDJvcbv.js → BayfsfvP.js} +2 -2
  2. package/build/client/_app/immutable/chunks/BayfsfvP.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/BayfsfvP.js.gz +0 -0
  4. package/build/client/_app/immutable/entry/{app.DZ8N2yxy.js → app.Dq4eWLBl.js} +2 -2
  5. package/build/client/_app/immutable/entry/app.Dq4eWLBl.js.br +0 -0
  6. package/build/client/_app/immutable/entry/app.Dq4eWLBl.js.gz +0 -0
  7. package/build/client/_app/immutable/entry/start.BK9HxVV8.js +1 -0
  8. package/build/client/_app/immutable/entry/start.BK9HxVV8.js.br +2 -0
  9. package/build/client/_app/immutable/entry/start.BK9HxVV8.js.gz +0 -0
  10. package/build/client/_app/immutable/nodes/{1.BXyzO0Uc.js → 1.ByFDHqYu.js} +1 -1
  11. package/build/client/_app/immutable/nodes/1.ByFDHqYu.js.br +0 -0
  12. package/build/client/_app/immutable/nodes/1.ByFDHqYu.js.gz +0 -0
  13. package/build/client/_app/version.json +1 -1
  14. package/build/client/_app/version.json.br +0 -0
  15. package/build/client/_app/version.json.gz +0 -0
  16. package/build/server/chunks/{1-Cm-WeIXj.js → 1-x3XMevDH.js} +2 -2
  17. package/build/server/chunks/{1-Cm-WeIXj.js.map → 1-x3XMevDH.js.map} +1 -1
  18. package/build/server/chunks/hooks.server-7AF2LyfM.js +17144 -0
  19. package/build/server/chunks/hooks.server-7AF2LyfM.js.map +1 -0
  20. package/build/server/index.js +2 -2
  21. package/build/server/index.js.map +1 -1
  22. package/build/server/manifest.js +2 -2
  23. package/build/server/manifest.js.map +1 -1
  24. package/dist/cli.js +24 -11
  25. package/dist/linking.d.ts +11 -4
  26. package/dist/linking.js +48 -52
  27. package/package.json +2 -2
  28. package/build/client/_app/immutable/chunks/tQDJvcbv.js.br +0 -0
  29. package/build/client/_app/immutable/chunks/tQDJvcbv.js.gz +0 -0
  30. package/build/client/_app/immutable/entry/app.DZ8N2yxy.js.br +0 -0
  31. package/build/client/_app/immutable/entry/app.DZ8N2yxy.js.gz +0 -0
  32. package/build/client/_app/immutable/entry/start.B2xl8zGI.js +0 -1
  33. package/build/client/_app/immutable/entry/start.B2xl8zGI.js.br +0 -2
  34. package/build/client/_app/immutable/entry/start.B2xl8zGI.js.gz +0 -0
  35. package/build/client/_app/immutable/nodes/1.BXyzO0Uc.js.br +0 -0
  36. package/build/client/_app/immutable/nodes/1.BXyzO0Uc.js.gz +0 -0
  37. package/build/server/chunks/hooks.server-DxovS-nf.js +0 -1386
  38. package/build/server/chunks/hooks.server-DxovS-nf.js.map +0 -1
@@ -10,10 +10,10 @@ return {
10
10
  assets: new Set(["icons/brands.svg","icons/light.svg","icons/regular.svg","icons/solid.svg","styles.css"]),
11
11
  mimeTypes: {".svg":"image/svg+xml",".css":"text/css"},
12
12
  _: {
13
- client: {start:"_app/immutable/entry/start.B2xl8zGI.js",app:"_app/immutable/entry/app.DZ8N2yxy.js",imports:["_app/immutable/entry/start.B2xl8zGI.js","_app/immutable/chunks/tQDJvcbv.js","_app/immutable/chunks/BZOe2Jko.js","_app/immutable/chunks/uU8Mt6Mg.js","_app/immutable/chunks/BK1-xGGj.js","_app/immutable/chunks/sfKJ2mhH.js","_app/immutable/entry/app.DZ8N2yxy.js","_app/immutable/chunks/uU8Mt6Mg.js","_app/immutable/chunks/BK1-xGGj.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/BZOe2Jko.js","_app/immutable/chunks/sfKJ2mhH.js","_app/immutable/chunks/DGhIdZ_j.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
13
+ client: {start:"_app/immutable/entry/start.BK9HxVV8.js",app:"_app/immutable/entry/app.Dq4eWLBl.js",imports:["_app/immutable/entry/start.BK9HxVV8.js","_app/immutable/chunks/BayfsfvP.js","_app/immutable/chunks/BZOe2Jko.js","_app/immutable/chunks/uU8Mt6Mg.js","_app/immutable/chunks/BK1-xGGj.js","_app/immutable/chunks/sfKJ2mhH.js","_app/immutable/entry/app.Dq4eWLBl.js","_app/immutable/chunks/uU8Mt6Mg.js","_app/immutable/chunks/BK1-xGGj.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/BZOe2Jko.js","_app/immutable/chunks/sfKJ2mhH.js","_app/immutable/chunks/DGhIdZ_j.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
14
14
  nodes: [
15
15
  __memo(() => import('./chunks/0-B8fDicB8.js')),
16
- __memo(() => import('./chunks/1-Cm-WeIXj.js')),
16
+ __memo(() => import('./chunks/1-x3XMevDH.js')),
17
17
  __memo(() => import('./chunks/2-CVTt4PZM.js')),
18
18
  __memo(() => import('./chunks/3-CYzzOoBn.js')),
19
19
  __memo(() => import('./chunks/4-jbfAhnSm.js')),
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"icons/brands.svg\",\"icons/light.svg\",\"icons/regular.svg\",\"icons/solid.svg\",\"styles.css\"]),\n\tmimeTypes: {\".svg\":\"image/svg+xml\",\".css\":\"text/css\"},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.B2xl8zGI.js\",app:\"_app/immutable/entry/app.DZ8N2yxy.js\",imports:[\"_app/immutable/entry/start.B2xl8zGI.js\",\"_app/immutable/chunks/tQDJvcbv.js\",\"_app/immutable/chunks/BZOe2Jko.js\",\"_app/immutable/chunks/uU8Mt6Mg.js\",\"_app/immutable/chunks/BK1-xGGj.js\",\"_app/immutable/chunks/sfKJ2mhH.js\",\"_app/immutable/entry/app.DZ8N2yxy.js\",\"_app/immutable/chunks/uU8Mt6Mg.js\",\"_app/immutable/chunks/BK1-xGGj.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/BZOe2Jko.js\",\"_app/immutable/chunks/sfKJ2mhH.js\",\"_app/immutable/chunks/DGhIdZ_j.js\"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/2.js')),\n\t\t\t__memo(() => import('./nodes/3.js')),\n\t\t\t__memo(() => import('./nodes/4.js')),\n\t\t\t__memo(() => import('./nodes/5.js')),\n\t\t\t__memo(() => import('./nodes/6.js'))\n\t\t],\n\t\tremotes: {\n\t\t\t\n\t\t},\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/_axium/default\",\n\t\t\t\tpattern: /^\\/_axium\\/default\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/account\",\n\t\t\t\tpattern: /^\\/account\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/login\",\n\t\t\t\tpattern: /^\\/login\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 4 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/logout\",\n\t\t\t\tpattern: /^\\/logout\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 5 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/register\",\n\t\t\t\tpattern: /^\\/register\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 6 },\n\t\t\t\tendpoint: null\n\t\t\t}\n\t\t],\n\t\tprerendered_routes: new Set([]),\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t},\n\t\tserver_assets: {}\n\t}\n}\n})();\n\nexport const prerendered = new Set([]);\n\nexport const base = \"\";"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;AACpB,CAAC,IAAI,KAAK;AACV,CAAC,OAAO,MAAM,KAAK,MAAM,KAAK,GAAG,EAAE,EAAE,CAAC;AACtC;;AAEA,OAAO;AACP,CAAC,MAAM,EAAE,MAAM;AACf,CAAC,OAAO,EAAE,MAAM;AAChB,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;AAC3G,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC;AACtD,CAAC,CAAC,EAAE;AACJ,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,wCAAwC,CAAC,GAAG,CAAC,sCAAsC,CAAC,OAAO,CAAC,CAAC,wCAAwC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,sCAAsC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC;AACjoB,EAAE,KAAK,EAAE;AACT,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,MAAM,OAAO,wB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,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE;AACd,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,WAAW;AACnB,IAAI,OAAO,EAAE,iBAAiB;AAC9B,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE;AACd;AACA,GAAG;AACH,EAAE,kBAAkB,EAAE,IAAI,GAAG,CAAC,EAAE,CAAC;AACjC,EAAE,QAAQ,EAAE,YAAY;AACxB;AACA,GAAG,OAAO,IAAI;AACd,EAAE,CAAC;AACH,EAAE,aAAa,EAAE;AACjB;AACA;AACA,CAAC;;AAEW,MAAC,WAAW,GAAG,IAAI,GAAG,CAAC,EAAE;;AAEzB,MAAC,IAAI,GAAG;;;;"}
1
+ {"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([\"icons/brands.svg\",\"icons/light.svg\",\"icons/regular.svg\",\"icons/solid.svg\",\"styles.css\"]),\n\tmimeTypes: {\".svg\":\"image/svg+xml\",\".css\":\"text/css\"},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.BK9HxVV8.js\",app:\"_app/immutable/entry/app.Dq4eWLBl.js\",imports:[\"_app/immutable/entry/start.BK9HxVV8.js\",\"_app/immutable/chunks/BayfsfvP.js\",\"_app/immutable/chunks/BZOe2Jko.js\",\"_app/immutable/chunks/uU8Mt6Mg.js\",\"_app/immutable/chunks/BK1-xGGj.js\",\"_app/immutable/chunks/sfKJ2mhH.js\",\"_app/immutable/entry/app.Dq4eWLBl.js\",\"_app/immutable/chunks/uU8Mt6Mg.js\",\"_app/immutable/chunks/BK1-xGGj.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/BZOe2Jko.js\",\"_app/immutable/chunks/sfKJ2mhH.js\",\"_app/immutable/chunks/DGhIdZ_j.js\"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/2.js')),\n\t\t\t__memo(() => import('./nodes/3.js')),\n\t\t\t__memo(() => import('./nodes/4.js')),\n\t\t\t__memo(() => import('./nodes/5.js')),\n\t\t\t__memo(() => import('./nodes/6.js'))\n\t\t],\n\t\tremotes: {\n\t\t\t\n\t\t},\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/_axium/default\",\n\t\t\t\tpattern: /^\\/_axium\\/default\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/account\",\n\t\t\t\tpattern: /^\\/account\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/login\",\n\t\t\t\tpattern: /^\\/login\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 4 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/logout\",\n\t\t\t\tpattern: /^\\/logout\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 5 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/register\",\n\t\t\t\tpattern: /^\\/register\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 6 },\n\t\t\t\tendpoint: null\n\t\t\t}\n\t\t],\n\t\tprerendered_routes: new Set([]),\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t},\n\t\tserver_assets: {}\n\t}\n}\n})();\n\nexport const prerendered = new Set([]);\n\nexport const base = \"\";"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;AACpB,CAAC,IAAI,KAAK;AACV,CAAC,OAAO,MAAM,KAAK,MAAM,KAAK,GAAG,EAAE,EAAE,CAAC;AACtC;;AAEA,OAAO;AACP,CAAC,MAAM,EAAE,MAAM;AACf,CAAC,OAAO,EAAE,MAAM;AAChB,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;AAC3G,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC;AACtD,CAAC,CAAC,EAAE;AACJ,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,wCAAwC,CAAC,GAAG,CAAC,sCAAsC,CAAC,OAAO,CAAC,CAAC,wCAAwC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,sCAAsC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC;AACjoB,EAAE,KAAK,EAAE;AACT,GAAG,MAAM,CAAC,MAAM,OAAO,wBAAc,CAAC,CAAC;AACvC,GAAG,MAAM,CAAC,M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AE,eAAe;AAC5B,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE;AACd,IAAI;AACJ,GAAG;AACH,IAAI,EAAE,EAAE,WAAW;AACnB,IAAI,OAAO,EAAE,iBAAiB;AAC9B,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE;AACd;AACA,GAAG;AACH,EAAE,kBAAkB,EAAE,IAAI,GAAG,CAAC,EAAE,CAAC;AACjC,EAAE,QAAQ,EAAE,YAAY;AACxB;AACA,GAAG,OAAO,IAAI;AACd,EAAE,CAAC;AACH,EAAE,aAAa,EAAE;AACjB;AACA;AACA,CAAC;;AAEW,MAAC,WAAW,GAAG,IAAI,GAAG,CAAC,EAAE;;AAEzB,MAAC,IAAI,GAAG;;;;"}
package/dist/cli.js CHANGED
@@ -539,18 +539,31 @@ program
539
539
  console.log('Server is listening on port ' + port);
540
540
  });
541
541
  });
542
- program.command('link').description('Link svelte page routes').action(linkRoutes);
543
- program.command('unlink').description('Unlink svelte page routes').action(unlinkRoutes);
544
542
  program
545
- .command('list-links')
546
- .description('List linked routes')
547
- .action(async () => {
548
- for (const link of listRouteLinks()) {
549
- const idText = link.id.startsWith('#') ? `(${link.id.slice(1)})` : link.id;
550
- const toColor = await access(link.to)
551
- .then(() => 'white')
552
- .catch(() => 'redBright');
553
- console.log(`${idText}:\t ${styleText('cyanBright', link.from)}\t->\t${styleText(toColor, link.to)}`);
543
+ .command('link')
544
+ .description('Link routes provided by plugins and the server')
545
+ .option('-p, --packages-dir <dir>', 'the directory to look for packages in')
546
+ .addOption(new Option('-l, --list', 'list route links').conflicts('delete'))
547
+ .option('-d, --delete', 'delete route links')
548
+ .argument('[name...]', 'List of plugin names to operate on. If not specified, operates on all plugins and built-in routes.')
549
+ .action(async function (names) {
550
+ const opt = this.optsWithGlobals();
551
+ if (names.length)
552
+ opt.only = names;
553
+ if (opt.list) {
554
+ for (const link of listRouteLinks(opt)) {
555
+ const idText = link.id.startsWith('#') ? `(${link.id.slice(1)})` : link.id;
556
+ const fromColor = await access(link.from)
557
+ .then(() => 'cyanBright')
558
+ .catch(() => 'redBright');
559
+ console.log(`${idText}:\t ${styleText(fromColor, link.from)}\t->\t${link.to.replace(/.*\/node_modules\//, styleText('dim', '$&'))}`);
560
+ }
561
+ return;
562
+ }
563
+ if (opt.delete) {
564
+ unlinkRoutes(opt);
565
+ return;
554
566
  }
567
+ linkRoutes(opt);
555
568
  });
556
569
  program.parse();
package/dist/linking.d.ts CHANGED
@@ -1,10 +1,17 @@
1
- export declare function listRouteLinks(): Generator<{
1
+ interface LinkInfo {
2
2
  id: string;
3
3
  from: string;
4
4
  to: string;
5
- }>;
5
+ text: string;
6
+ }
7
+ export interface LinkOptions {
8
+ packagesDir?: string;
9
+ only?: string[];
10
+ }
11
+ export declare function listRouteLinks(options?: LinkOptions): Generator<LinkInfo>;
6
12
  /**
7
13
  * Symlinks .svelte page routes for plugins and the server into a project's routes directory.
8
14
  */
9
- export declare function linkRoutes(): void;
10
- export declare function unlinkRoutes(): void;
15
+ export declare function linkRoutes(options?: LinkOptions): void;
16
+ export declare function unlinkRoutes(options?: LinkOptions): void;
17
+ export {};
package/dist/linking.js CHANGED
@@ -2,8 +2,7 @@ import { existsSync, symlinkSync, unlinkSync } from 'node:fs';
2
2
  import { join, resolve } from 'node:path/posix';
3
3
  import config from './config.js';
4
4
  import * as io from './io.js';
5
- import { getSpecifier, plugins } from './plugins.js';
6
- import { fileURLToPath } from 'node:url';
5
+ import { plugins } from './plugins.js';
7
6
  const textFor = {
8
7
  builtin: 'built-in routes',
9
8
  };
@@ -12,67 +11,64 @@ function info(id) {
12
11
  const link = join(config.web.routes, `(${id.startsWith('#') ? id.slice(1) : id.replaceAll('/', '__')})`);
13
12
  return [text, link];
14
13
  }
15
- export function* listRouteLinks() {
16
- const [, link] = info('#builtin');
17
- yield { id: '#builtin', from: resolve(import.meta.dirname, '../routes'), to: link };
14
+ const defaultPackagesDir = join(import.meta.dirname, '../../..');
15
+ export function* listRouteLinks(options = {}) {
16
+ const packagesDir = options.packagesDir || defaultPackagesDir;
17
+ io.debug('Using packages from ' + packagesDir);
18
+ if (!options.only) {
19
+ const [text, link] = info('#builtin');
20
+ yield { text, id: '#builtin', from: link, to: resolve(import.meta.dirname, '../routes') };
21
+ }
18
22
  for (const plugin of plugins) {
19
23
  if (!plugin.routes)
20
24
  continue;
21
- const [, link] = info(plugin.name);
22
- yield { id: plugin.name, from: join(fileURLToPath(import.meta.resolve(getSpecifier(plugin))), plugin.routes), to: link };
25
+ if (options.only && !options.only.includes(plugin.name))
26
+ continue;
27
+ const [text, link] = info(plugin.name);
28
+ const to = resolve(join(packagesDir, plugin.name, plugin.routes));
29
+ yield { text, id: plugin.name, from: link, to };
23
30
  }
24
31
  }
25
- function createLink(id, routes) {
26
- const [text, link] = info(id);
27
- if (existsSync(link)) {
28
- io.warn('already exists.');
29
- io.start('Unlinking ' + text);
32
+ /**
33
+ * Symlinks .svelte page routes for plugins and the server into a project's routes directory.
34
+ */
35
+ export function linkRoutes(options = {}) {
36
+ for (const info of listRouteLinks(options)) {
37
+ const { text, from, to } = info;
38
+ io.start('Linking ' + text);
39
+ if (existsSync(from)) {
40
+ io.warn('already exists.');
41
+ io.start('Unlinking ' + text);
42
+ try {
43
+ unlinkSync(from);
44
+ }
45
+ catch (e) {
46
+ io.exit(e && e instanceof Error ? e.message : e.toString());
47
+ }
48
+ io.done();
49
+ io.start('Re-linking ' + text);
50
+ }
30
51
  try {
31
- unlinkSync(link);
52
+ symlinkSync(to, from, 'dir');
53
+ io.done();
32
54
  }
33
55
  catch (e) {
34
56
  io.exit(e && e instanceof Error ? e.message : e.toString());
35
57
  }
36
- io.done();
37
- io.start('Re-linking ' + text);
38
- }
39
- try {
40
- symlinkSync(routes, link, 'dir');
41
- io.done();
42
- }
43
- catch (e) {
44
- io.exit(e && e instanceof Error ? e.message : e.toString());
45
58
  }
46
59
  }
47
- /**
48
- * Symlinks .svelte page routes for plugins and the server into a project's routes directory.
49
- */
50
- export function linkRoutes() {
51
- io.start('Linking built-in routes');
52
- createLink('#builtin', resolve(import.meta.dirname, '../routes'));
53
- for (const plugin of plugins) {
54
- if (!plugin.routes)
55
- continue;
56
- io.start(`Linking routes for plugin: ${plugin.name}`);
57
- createLink(plugin.name, join(import.meta.resolve(getSpecifier(plugin)), plugin.routes));
58
- }
59
- }
60
- function removeLink(id) {
61
- const [text, link] = info(id);
62
- if (!existsSync(link))
63
- return;
64
- io.start('Unlinking ' + text);
65
- try {
66
- unlinkSync(link);
67
- io.done();
68
- }
69
- catch (e) {
70
- io.exit(e && e instanceof Error ? e.message : e.toString());
71
- }
72
- }
73
- export function unlinkRoutes() {
74
- removeLink('#builtin');
75
- for (const plugin of plugins) {
76
- removeLink(plugin.name);
60
+ export function unlinkRoutes(options = {}) {
61
+ for (const info of listRouteLinks(options)) {
62
+ const { text, from } = info;
63
+ if (!existsSync(from))
64
+ return;
65
+ io.start('Unlinking ' + text);
66
+ try {
67
+ unlinkSync(from);
68
+ io.done();
69
+ }
70
+ catch (e) {
71
+ io.exit(e && e instanceof Error ? e.message : e.toString());
72
+ }
77
73
  }
78
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.19.10",
3
+ "version": "0.20.0",
4
4
  "author": "James Prevett <axium@jamespre.dev> (https://jamespre.dev)",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -48,6 +48,7 @@
48
48
  "peerDependencies": {
49
49
  "@axium/client": ">=0.1.0",
50
50
  "@axium/core": ">=0.4.0",
51
+ "kysely": "^0.28.0",
51
52
  "utilium": "^2.3.8",
52
53
  "zod": "^4.0.5"
53
54
  },
@@ -57,7 +58,6 @@
57
58
  "@types/pg": "^8.11.11",
58
59
  "commander": "^14.0.0",
59
60
  "cookie": "^1.0.2",
60
- "kysely": "^0.28.0",
61
61
  "logzen": "^0.7.0",
62
62
  "pg": "^8.14.1",
63
63
  "svelte": "^5.36.0"
@@ -1 +0,0 @@
1
- import{l as o,a as r}from"../chunks/tQDJvcbv.js";export{o as load_css,r as start};
@@ -1,2 +0,0 @@
1
- )�import{l as o,a as r}from"../chunks/tQDJvcbv.js";export{o as load_css,r as start};
2
-