create-twenty-app 2.16.0 → 2.19.0-alpha.1

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.
@@ -13,6 +13,9 @@ Run `yarn twenty help` to list all available commands.
13
13
  - `yarn twenty dev` - Start the development server and sync your app
14
14
  - `yarn twenty docker:status` - Check the local Twenty server status
15
15
  - `yarn twenty docker:start` - Start the local Twenty server
16
+ - `yarn lint` - Lint the project with oxlint
17
+ - `yarn typecheck` - Type-check the project
18
+ - `yarn test:unit` - Run unit tests
16
19
  - `yarn test` - Run integration tests
17
20
 
18
21
  ## Learn More
@@ -41,6 +41,15 @@ jobs:
41
41
  - name: Install dependencies
42
42
  run: yarn install --immutable
43
43
 
44
+ - name: Lint
45
+ run: yarn lint
46
+
47
+ - name: Typecheck
48
+ run: yarn typecheck
49
+
50
+ - name: Unit tests
51
+ run: yarn test:unit
52
+
44
53
  - name: Run integration tests
45
54
  run: yarn test
46
55
  env:
@@ -4,7 +4,12 @@
4
4
  /node_modules
5
5
  /.pnp
6
6
  .pnp.*
7
- .yarn
7
+ .yarn/*
8
+ !.yarn/patches
9
+ !.yarn/plugins
10
+ !.yarn/releases
11
+ !.yarn/sdks
12
+ !.yarn/versions
8
13
 
9
14
  # codegen
10
15
  generated
@@ -8,25 +8,29 @@
8
8
  "yarn": ">=4.0.2"
9
9
  },
10
10
  "keywords": [],
11
- "packageManager": "yarn@4.9.2",
11
+ "packageManager": "yarn@4.13.0",
12
12
  "scripts": {
13
13
  "twenty": "twenty",
14
14
  "lint": "oxlint -c .oxlintrc.json .",
15
15
  "lint:fix": "oxlint --fix -c .oxlintrc.json .",
16
+ "typecheck": "tsgo --noEmit -p tsconfig.spec.json",
16
17
  "test": "vitest run",
17
- "test:watch": "vitest"
18
+ "test:watch": "vitest",
19
+ "test:unit": "vitest run --config vitest.unit.config.ts"
18
20
  },
19
21
  "dependencies": {},
20
22
  "devDependencies": {
21
23
  "@types/node": "^24.7.2",
22
24
  "@types/react": "^19.0.0",
25
+ "@typescript/native-preview": "^7.0.0-dev.20260116.1",
23
26
  "oxlint": "^0.16.0",
24
27
  "react": "^19.0.0",
25
28
  "react-dom": "^19.0.0",
26
29
  "twenty-client-sdk": "TO-BE-GENERATED",
27
30
  "twenty-sdk": "TO-BE-GENERATED",
31
+ "twenty-ui": "1.0.0-alpha.1",
28
32
  "typescript": "^5.9.3",
29
33
  "vite-tsconfig-paths": "^4.2.1",
30
- "vitest": "^3.1.1"
34
+ "vitest": "^4.0.0"
31
35
  }
32
36
  }
@@ -0,0 +1,14 @@
1
+ import {
2
+ APP_DESCRIPTION,
3
+ APP_DISPLAY_NAME,
4
+ APPLICATION_UNIVERSAL_IDENTIFIER,
5
+ } from 'src/constants/universal-identifiers';
6
+ import { describe, expect, it } from 'vitest';
7
+
8
+ describe('application identifiers', () => {
9
+ it('should expose the application metadata constants', () => {
10
+ expect(APP_DISPLAY_NAME).toBeTruthy();
11
+ expect(typeof APP_DESCRIPTION).toBe('string');
12
+ expect(APPLICATION_UNIVERSAL_IDENTIFIER).toBeTruthy();
13
+ });
14
+ });
@@ -1,12 +1,12 @@
1
1
  import { defineFrontComponent } from 'twenty-sdk/define';
2
+ import { useState } from 'react';
3
+ import { Avatar } from 'twenty-ui/data-display';
2
4
  import {
3
- Avatar,
4
5
  IconBox,
5
6
  IconHierarchy,
6
7
  IconLayout,
7
8
  IconSettingsAutomation,
8
- } from 'twenty-sdk/ui';
9
- import { useState } from 'react';
9
+ } from 'twenty-ui/icon';
10
10
 
11
11
  import {
12
12
  APP_DISPLAY_NAME,
@@ -6,7 +6,7 @@
6
6
  "outDir": "./dist",
7
7
  "rootDir": ".",
8
8
  "jsx": "react-jsx",
9
- "moduleResolution": "node",
9
+ "moduleResolution": "bundler",
10
10
  "allowSyntheticDefaultImports": true,
11
11
  "emitDecoratorMetadata": true,
12
12
  "experimentalDecorators": true,
@@ -16,7 +16,7 @@
16
16
  "alwaysStrict": true,
17
17
  "noImplicitAny": true,
18
18
  "strictBindCallApply": false,
19
- "target": "es2018",
19
+ "target": "es2020",
20
20
  "module": "esnext",
21
21
  "lib": ["es2020", "dom"],
22
22
  "skipLibCheck": true,
@@ -0,0 +1,14 @@
1
+ import tsconfigPaths from 'vite-tsconfig-paths';
2
+ import { defineConfig } from 'vitest/config';
3
+
4
+ export default defineConfig({
5
+ plugins: [
6
+ tsconfigPaths({
7
+ projects: ['tsconfig.spec.json'],
8
+ ignoreConfigErrors: true,
9
+ }),
10
+ ],
11
+ test: {
12
+ include: ['src/**/*.test.ts'],
13
+ },
14
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-twenty-app",
3
- "version": "2.16.0",
3
+ "version": "2.19.0-alpha.1",
4
4
  "description": "Command-line interface to create Twenty application",
5
5
  "main": "dist/cli.cjs",
6
6
  "bin": "dist/cli.cjs",
@@ -34,7 +34,7 @@
34
34
  "lodash.camelcase": "^4.3.0",
35
35
  "lodash.kebabcase": "^4.1.1",
36
36
  "lodash.startcase": "^4.4.0",
37
- "twenty-sdk": "2.16.0",
37
+ "twenty-sdk": "2.19.0-alpha.1",
38
38
  "uuid": "^13.0.2"
39
39
  },
40
40
  "devDependencies": {
@@ -51,8 +51,7 @@
51
51
  "twenty-shared": "0.0.0",
52
52
  "typescript": "^5.9.3",
53
53
  "vite": "^8.0.0",
54
- "vite-plugin-dts": "^4.5.4",
55
- "vite-tsconfig-paths": "^4.2.1"
54
+ "vite-plugin-dts": "^4.5.4"
56
55
  },
57
56
  "engines": {
58
57
  "node": "^24.5.0",
@@ -13,6 +13,9 @@ Run `yarn twenty help` to list all available commands.
13
13
  - `yarn twenty dev` - Start the development server and sync your app
14
14
  - `yarn twenty docker:status` - Check the local Twenty server status
15
15
  - `yarn twenty docker:start` - Start the local Twenty server
16
+ - `yarn lint` - Lint the project with oxlint
17
+ - `yarn typecheck` - Type-check the project
18
+ - `yarn test:unit` - Run unit tests
16
19
  - `yarn test` - Run integration tests
17
20
 
18
21
  ## Learn More
@@ -8,25 +8,29 @@
8
8
  "yarn": ">=4.0.2"
9
9
  },
10
10
  "keywords": [],
11
- "packageManager": "yarn@4.9.2",
11
+ "packageManager": "yarn@4.13.0",
12
12
  "scripts": {
13
13
  "twenty": "twenty",
14
14
  "lint": "oxlint -c .oxlintrc.json .",
15
15
  "lint:fix": "oxlint --fix -c .oxlintrc.json .",
16
+ "typecheck": "tsgo --noEmit -p tsconfig.spec.json",
16
17
  "test": "vitest run",
17
- "test:watch": "vitest"
18
+ "test:watch": "vitest",
19
+ "test:unit": "vitest run --config vitest.unit.config.ts"
18
20
  },
19
21
  "dependencies": {},
20
22
  "devDependencies": {
21
23
  "@types/node": "^24.7.2",
22
24
  "@types/react": "^19.0.0",
25
+ "@typescript/native-preview": "^7.0.0-dev.20260116.1",
23
26
  "oxlint": "^0.16.0",
24
27
  "react": "^19.0.0",
25
28
  "react-dom": "^19.0.0",
26
29
  "twenty-client-sdk": "TO-BE-GENERATED",
27
30
  "twenty-sdk": "TO-BE-GENERATED",
31
+ "twenty-ui": "1.0.0-alpha.1",
28
32
  "typescript": "^5.9.3",
29
33
  "vite-tsconfig-paths": "^4.2.1",
30
- "vitest": "^3.1.1"
34
+ "vitest": "^4.0.0"
31
35
  }
32
36
  }