@dbos-inc/create 4.28.13-preview → 4.28.15-preview

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/create",
3
- "version": "4.28.13-preview",
3
+ "version": "4.28.15-preview",
4
4
  "description": "Tool for performing project initialization from template",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,8 +19,6 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node": "^20.6.3",
22
- "@types/prompt-sync": "^4.2.3",
23
- "@types/update-notifier": "^6.0.8",
24
22
  "@types/validator": "^13.11.9",
25
23
  "typescript": "^5.4.5"
26
24
  },
@@ -29,7 +27,6 @@
29
27
  "chalk": "4.1.2",
30
28
  "commander": "^12.0.0",
31
29
  "fast-glob": "^3.3.3",
32
- "update-notifier": "^7.0.0",
33
30
  "validator": "^13.12.0"
34
31
  }
35
32
  }
@@ -1,6 +1,6 @@
1
1
  # DBOS Hello with Drizzle
2
2
 
3
- This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using [Drizzle](https://docs.dbos.dev/typescript/tutorials/orms/using-drizzle).
3
+ This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using Drizzle.
4
4
 
5
5
  ## Getting Started
6
6
 
@@ -4,19 +4,18 @@
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "test": "npx dbos migrate && jest",
7
- "lint": "eslint src",
8
- "lint-fix": "eslint --fix src",
9
7
  "dev": "nodemon",
10
8
  "start": "node dist/main.js"
11
9
  },
12
10
  "devDependencies": {
13
- "@dbos-inc/eslint-plugin": "^3.3.4",
11
+ "@types/express": "^4.17.25",
14
12
  "@types/jest": "^29.5.12",
13
+ "@types/pg": "^8.15.2",
15
14
  "@types/supertest": "^2.0.16",
16
15
  "drizzle-kit": "^0.31.10",
17
- "eslint": "^8.57.0",
18
16
  "jest": "^29.7.0",
19
17
  "nodemon": "^3.1.0",
18
+ "pg": "^8.11.3",
20
19
  "supertest": "^7.0.0",
21
20
  "ts-jest": "^29.1.2",
22
21
  "typescript": "5.8.3"
@@ -5,6 +5,7 @@ import { Client } from 'pg';
5
5
 
6
6
  describe('operations-test', () => {
7
7
  beforeAll(async () => {
8
+ DBOS.setConfig({ name: 'dbos-drizzle', systemDatabaseUrl: process.env.DBOS_SYSTEM_DATABASE_URL });
8
9
  await DBOS.launch();
9
10
  });
10
11
 
@@ -1,7 +1,6 @@
1
1
  // Welcome to DBOS!
2
2
 
3
3
  // This is the Quickstart Drizzle template app. It greets visitors, counting how many total greetings were made.
4
- // To learn how to run this app, visit the Drizzle tutorial: https://docs.dbos.dev/tutorials/using-drizzle
5
4
 
6
5
  import express, { Request, Response } from 'express';
7
6
  import { DBOS } from '@dbos-inc/dbos-sdk';
@@ -1,6 +1,6 @@
1
1
  # DBOS Hello
2
2
 
3
- This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using [Knex](https://docs.dbos.dev/typescript/tutorials/orms/using-knex).
3
+ This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using Knex.
4
4
 
5
5
  ## Getting Started
6
6
 
@@ -4,16 +4,13 @@
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "test": "npx dbos migrate && jest",
7
- "lint": "eslint src",
8
7
  "dev": "nodemon",
9
8
  "start": "npx dbos start"
10
9
  },
11
10
  "devDependencies": {
12
- "@dbos-inc/eslint-plugin": "^3.3.4",
13
11
  "@types/express": "^5.0.6",
14
12
  "@types/jest": "^29.5.12",
15
13
  "@types/supertest": "^2.0.16",
16
- "eslint": "^8.57.0",
17
14
  "jest": "^29.7.0",
18
15
  "nodemon": "^3.1.0",
19
16
  "supertest": "^7.0.0",
@@ -4,6 +4,7 @@ import request from 'supertest';
4
4
 
5
5
  describe('operations-test', () => {
6
6
  beforeAll(async () => {
7
+ DBOS.setConfig({ name: 'dbos-knex', systemDatabaseUrl: process.env.DBOS_SYSTEM_DATABASE_URL });
7
8
  await DBOS.launch();
8
9
  });
9
10
 
@@ -1,6 +1,6 @@
1
1
  # DBOS Hello with Prisma
2
2
 
3
- This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using [Prisma](https://docs.dbos.dev/typescript/tutorials/orms/using-prisma).
3
+ This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using Prisma.
4
4
 
5
5
  ## Getting Started
6
6
 
@@ -4,18 +4,15 @@
4
4
  "scripts": {
5
5
  "build": "node generate_env.js && npx prisma generate && tsc",
6
6
  "test": "npx prisma migrate reset --force && jest",
7
- "lint": "eslint src",
8
- "lint-fix": "eslint --fix src",
9
7
  "dev": "nodemon",
10
8
  "start": "node dist/main.js"
11
9
  },
12
10
  "author": "",
13
11
  "license": "ISC",
14
12
  "devDependencies": {
15
- "@dbos-inc/eslint-plugin": "^3.3.4",
13
+ "@types/express": "^4.17.25",
16
14
  "@types/jest": "^29.5.12",
17
15
  "@types/supertest": "^6.0.2",
18
- "eslint": "^8.57.0",
19
16
  "jest": "^29.7.0",
20
17
  "nodemon": "^3.1.0",
21
18
  "prisma": "^5.15.0",
@@ -4,6 +4,7 @@ import request from 'supertest';
4
4
 
5
5
  describe('operations-test', () => {
6
6
  beforeAll(async () => {
7
+ DBOS.setConfig({ name: 'dbos-prisma', systemDatabaseUrl: process.env.DBOS_SYSTEM_DATABASE_URL });
7
8
  await DBOS.launch();
8
9
  });
9
10
 
@@ -1,7 +1,6 @@
1
1
  // Welcome to DBOS!
2
2
 
3
3
  // This is the Quickstart Prisma template app. It greets visitors, counting how many total greetings were made.
4
- // To learn how to run this app, visit the Prisma tutorial: https://docs.dbos.dev/tutorials/using-prisma
5
4
 
6
5
  import express, { Request, Response } from 'express';
7
6
  import { DBOS } from '@dbos-inc/dbos-sdk';
@@ -1,6 +1,6 @@
1
1
  # DBOS Hello with TypeORM
2
2
 
3
- This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using [TypeORM](https://docs.dbos.dev/typescript/tutorials/orms/using-typeorm).
3
+ This is a [DBOS app](https://docs.dbos.dev/) bootstrapped with `npx @dbos-inc/create` and using TypeORM.
4
4
 
5
5
  ## Getting Started
6
6
 
@@ -3,7 +3,6 @@ import { MigrationInterface, QueryRunner } from 'typeorm';
3
3
  // This migration file was automatically generated from the project entity files (entities/*.ts).
4
4
  // This was done by running on an empty database the command: `npx typeorm migration:generate -d dist/datasource.js migrations/DBOSHello`
5
5
  // This file creates the schema defined in the entity files.
6
- // For more information on schema management with TypeORM and DBOS, see our docs: https://docs.dbos.dev/tutorials/using-typeorm
7
6
 
8
7
  export class DBOSHello1714934318136 implements MigrationInterface {
9
8
  name = 'DBOSHello1714934318136';
@@ -4,18 +4,15 @@
4
4
  "scripts": {
5
5
  "build": "tsc",
6
6
  "test": "npx dbos migrate && jest",
7
- "lint": "eslint src",
8
- "lint-fix": "eslint --fix src",
9
7
  "dev": "nodemon",
10
8
  "start": "node dist/src/main.js"
11
9
  },
12
10
  "author": "",
13
11
  "license": "ISC",
14
12
  "devDependencies": {
15
- "@dbos-inc/eslint-plugin": "^3.3.4",
13
+ "@types/express": "^4.17.25",
16
14
  "@types/jest": "^29.5.12",
17
15
  "@types/supertest": "^6.0.2",
18
- "eslint": "^8.57.0",
19
16
  "jest": "^29.7.0",
20
17
  "nodemon": "^3.1.0",
21
18
  "supertest": "^7.0.0",
@@ -4,6 +4,7 @@ import request from 'supertest';
4
4
 
5
5
  describe('operations-test', () => {
6
6
  beforeAll(async () => {
7
+ DBOS.setConfig({ name: 'dbos-typeorm', systemDatabaseUrl: process.env.DBOS_SYSTEM_DATABASE_URL });
7
8
  await DBOS.launch();
8
9
  });
9
10
 
@@ -1,7 +1,6 @@
1
1
  // Welcome to DBOS!
2
2
 
3
3
  // This is the Quickstart TypeORM template app. It greets visitors, counting how many total greetings were made.
4
- // To learn how to run this app, visit the TypeORM tutorial: https://docs.dbos.dev/tutorials/using-typeorm
5
4
 
6
5
  import express, { Request, Response } from 'express';
7
6
  import { DBOS } from '@dbos-inc/dbos-sdk';
@@ -1,28 +0,0 @@
1
- const { FlatCompat } = require('@eslint/eslintrc');
2
- const dbosIncEslintPlugin = require('@dbos-inc/eslint-plugin');
3
- const typescriptEslint = require('typescript-eslint');
4
- const typescriptEslintParser = require('@typescript-eslint/parser');
5
- const globals = require('globals');
6
- const js = require('@eslint/js');
7
-
8
- const compat = new FlatCompat({
9
- baseDirectory: __dirname,
10
- recommendedConfig: js.configs.recommended,
11
- });
12
-
13
- module.exports = typescriptEslint.config({
14
- extends: compat.extends('plugin:@dbos-inc/dbosRecommendedConfig'),
15
- plugins: { '@dbos-inc': dbosIncEslintPlugin },
16
-
17
- languageOptions: {
18
- parser: typescriptEslintParser,
19
- parserOptions: { project: './tsconfig.json' },
20
- globals: { ...globals.node, ...globals.es6 },
21
- },
22
-
23
- rules: {
24
- 'no-secrets/no-secrets': ['error', { tolerance: 5 }],
25
- },
26
-
27
- ignores: ['**/*.test.ts'],
28
- });
@@ -1,28 +0,0 @@
1
- const { FlatCompat } = require('@eslint/eslintrc');
2
- const dbosIncEslintPlugin = require('@dbos-inc/eslint-plugin');
3
- const typescriptEslint = require('typescript-eslint');
4
- const typescriptEslintParser = require('@typescript-eslint/parser');
5
- const globals = require('globals');
6
- const js = require('@eslint/js');
7
-
8
- const compat = new FlatCompat({
9
- baseDirectory: __dirname,
10
- recommendedConfig: js.configs.recommended,
11
- });
12
-
13
- module.exports = typescriptEslint.config({
14
- extends: compat.extends('plugin:@dbos-inc/dbosRecommendedConfig'),
15
- plugins: { '@dbos-inc': dbosIncEslintPlugin },
16
-
17
- languageOptions: {
18
- parser: typescriptEslintParser,
19
- parserOptions: { project: './tsconfig.json' },
20
- globals: { ...globals.node, ...globals.es6 },
21
- },
22
-
23
- rules: {
24
- 'no-secrets/no-secrets': ['error', { tolerance: 5 }],
25
- },
26
-
27
- ignores: ['**/*.test.ts'],
28
- });
@@ -1,28 +0,0 @@
1
- const { FlatCompat } = require('@eslint/eslintrc');
2
- const dbosIncEslintPlugin = require('@dbos-inc/eslint-plugin');
3
- const typescriptEslint = require('typescript-eslint');
4
- const typescriptEslintParser = require('@typescript-eslint/parser');
5
- const globals = require('globals');
6
- const js = require('@eslint/js');
7
-
8
- const compat = new FlatCompat({
9
- baseDirectory: __dirname,
10
- recommendedConfig: js.configs.recommended,
11
- });
12
-
13
- module.exports = typescriptEslint.config({
14
- extends: compat.extends('plugin:@dbos-inc/dbosRecommendedConfig'),
15
- plugins: { '@dbos-inc': dbosIncEslintPlugin },
16
-
17
- languageOptions: {
18
- parser: typescriptEslintParser,
19
- parserOptions: { project: './tsconfig.json' },
20
- globals: { ...globals.node, ...globals.es6 },
21
- },
22
-
23
- rules: {
24
- 'no-secrets/no-secrets': ['error', { tolerance: 5 }],
25
- },
26
-
27
- ignores: ['**/*.test.ts'],
28
- });
@@ -1,28 +0,0 @@
1
- const { FlatCompat } = require('@eslint/eslintrc');
2
- const dbosIncEslintPlugin = require('@dbos-inc/eslint-plugin');
3
- const typescriptEslint = require('typescript-eslint');
4
- const typescriptEslintParser = require('@typescript-eslint/parser');
5
- const globals = require('globals');
6
- const js = require('@eslint/js');
7
-
8
- const compat = new FlatCompat({
9
- baseDirectory: __dirname,
10
- recommendedConfig: js.configs.recommended,
11
- });
12
-
13
- module.exports = typescriptEslint.config({
14
- extends: compat.extends('plugin:@dbos-inc/dbosRecommendedConfig'),
15
- plugins: { '@dbos-inc': dbosIncEslintPlugin },
16
-
17
- languageOptions: {
18
- parser: typescriptEslintParser,
19
- parserOptions: { project: './tsconfig.json' },
20
- globals: { ...globals.node, ...globals.es6 },
21
- },
22
-
23
- rules: {
24
- 'no-secrets/no-secrets': ['error', { tolerance: 5 }],
25
- },
26
-
27
- ignores: ['**/*.test.ts'],
28
- });