create-absolutejs 0.4.0 → 0.4.2

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/dist/data.js CHANGED
@@ -85,7 +85,7 @@ export const absoluteAuthPlugin = {
85
85
  packageName: 'absoluteAuth'
86
86
  }
87
87
  ],
88
- latestVersion: '0.14.4',
88
+ latestVersion: '0.20.3',
89
89
  value: '@absolutejs/auth'
90
90
  };
91
91
  export const scopedStatePlugin = {
@@ -112,7 +112,7 @@ export const eslintAndPrettierDependencies = [
112
112
  export const defaultDependencies = [
113
113
  {
114
114
  imports: [{ isPlugin: false, packageName: 'Elysia' }],
115
- latestVersion: '1.3.1',
115
+ latestVersion: '1.4.9',
116
116
  value: 'elysia'
117
117
  }
118
118
  ];
@@ -134,7 +134,7 @@ export const defaultPlugins = [
134
134
  packageName: 'staticPlugin'
135
135
  }
136
136
  ],
137
- latestVersion: '1.3.0',
137
+ latestVersion: '1.4.0',
138
138
  value: '@elysiajs/static'
139
139
  }
140
140
  ];
@@ -2,7 +2,7 @@ import { writeFileSync } from 'fs';
2
2
  import { join } from 'path';
3
3
  import { spinner } from '@clack/prompts';
4
4
  import { green } from 'picocolors';
5
- import { absoluteAuthPlugin, availablePlugins, defaultPlugins, eslintAndPrettierDependencies } from '../../data';
5
+ import { absoluteAuthPlugin, availablePlugins, defaultDependencies, defaultPlugins, eslintAndPrettierDependencies } from '../../data';
6
6
  import { getPackageVersion } from '../../utils/getPackageVersion';
7
7
  import { computeFlags } from '../project/computeFlags';
8
8
  export const createPackageJson = ({ projectName, authProvider, plugins, databaseEngine, orm, databaseHost, useTailwind, latest, frontendDirectories, codeQualityTool }) => {
@@ -16,6 +16,9 @@ export const createPackageJson = ({ projectName, authProvider, plugins, database
16
16
  for (const p of defaultPlugins) {
17
17
  dependencies[p.value] = resolveVersion(p.value, p.latestVersion);
18
18
  }
19
+ for (const dep of defaultDependencies) {
20
+ dependencies[dep.value] = resolveVersion(dep.value, dep.latestVersion);
21
+ }
19
22
  if (authProvider === 'absoluteAuth') {
20
23
  dependencies[absoluteAuthPlugin.value] = resolveVersion(absoluteAuthPlugin.value, absoluteAuthPlugin.latestVersion);
21
24
  }
@@ -42,7 +42,7 @@ export const generateImportsBlock = ({ backendDirectory, deps, flags, orm, authP
42
42
  turso: [`import { createClient } from '@libsql/client'`]
43
43
  };
44
44
  const dialectImports = {
45
- neon: [`import { drizzle } from 'drizzle-orm/node-postgres'`],
45
+ neon: [`import { drizzle } from 'drizzle-orm/neon-serverless'`],
46
46
  planetscale: [
47
47
  `import { drizzle } from 'drizzle-orm/planetscale-serverless'`
48
48
  ],
@@ -46,7 +46,7 @@ export const parseCommandLineOptions = () => {
46
46
  }
47
47
  });
48
48
  const errors = [];
49
- const projectName = (positionals[0] ?? values.skip) ? 'absolutejs-project' : undefined;
49
+ const projectName = positionals[0] ?? (values.skip ? undefined : 'absolutejs-project');
50
50
  let authProvider;
51
51
  if (values.auth !== undefined && !isAuthProvider(values.auth)) {
52
52
  errors.push(`Invalid auth provider: "${values.auth}". Expected: [ ${availableAuthProviders.join(', ')} ]`);
package/package.json CHANGED
@@ -47,5 +47,5 @@
47
47
  "typecheck": "bun run tsc --noEmit"
48
48
  },
49
49
  "type": "module",
50
- "version": "0.4.0"
50
+ "version": "0.4.2"
51
51
  }