Compile with swc on twenty-server (#4863)
Experiment using swc instead of tsc (as we did the switch on twenty-front) It's **much** faster (at least 5x) but has stricter requirements. I fixed the build but there's still an error while starting the server, opening this PR for discussion. Checkout the branch and try `nx build:swc twenty-server` Read: https://docs.nestjs.com/recipes/swc#common-pitfalls
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
[
|
||||
export const companiesDemo = [
|
||||
{
|
||||
"name": "Google",
|
||||
"domainName": "goo.gle",
|
||||
@ -1,6 +1,6 @@
|
||||
import { EntityManager } from 'typeorm';
|
||||
|
||||
import companiesDemo from './companies-demo.json';
|
||||
import { companiesDemo } from 'src/engine/workspace-manager/demo-objects-prefill-data/companies-demo.json';
|
||||
|
||||
export const companyPrefillDemoData = async (
|
||||
entityManager: EntityManager,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
[
|
||||
export const peopleDemo = [
|
||||
{
|
||||
"firstName": "Mark",
|
||||
"lastName": "Young",
|
||||
@ -1,6 +1,6 @@
|
||||
import { EntityManager } from 'typeorm';
|
||||
|
||||
import peopleDemo from './people-demo.json';
|
||||
import { peopleDemo } from 'src/engine/workspace-manager/demo-objects-prefill-data/people-demo.json';
|
||||
|
||||
export const personPrefillDemoData = async (
|
||||
entityManager: EntityManager,
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
/**
|
||||
* Wrapper type used to circumvent ESM modules circular dependency issue
|
||||
* caused by reflection metadata saving the type of the property.
|
||||
*/
|
||||
export type Relation<T> = T;
|
||||
Reference in New Issue
Block a user