-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Twenty Shared package to centralize utilities and fix profile pic…
…ture issue (#8601).
- Loading branch information
1 parent
ffb3033
commit 5be9a09
Showing
32 changed files
with
370 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
packages/twenty-front/src/utils/image/__tests__/getImageAbsoluteURI.test.ts
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
packages/twenty-front/src/utils/image/getImageAbsoluteURI.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
extends: ['../../.eslintrc.cjs', '../../.eslintrc.react.cjs'], | ||
ignorePatterns: ['!**/*'], | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
parserOptions: { | ||
project: ['packages/twenty-shared/tsconfig.{json,*.json}'], | ||
}, | ||
rules: { | ||
'@nx/dependency-checks': 'error', | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { JestConfigWithTsJest, pathsToModuleNameMapper } from 'ts-jest'; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const tsConfig = require('./tsconfig.json'); | ||
process.env.TZ = 'GMT'; | ||
|
||
const jestConfig: JestConfigWithTsJest = { | ||
silent: true, | ||
displayName: 'twenty-shared', | ||
preset: '../../jest.preset.js', | ||
setupFilesAfterEnv: ['./setupTests.ts'], | ||
testEnvironment: 'node', | ||
transformIgnorePatterns: ['../../node_modules/'], | ||
transform: { | ||
'^.+\\.(ts|js)$': '@swc/jest', | ||
}, | ||
moduleNameMapper: { | ||
...pathsToModuleNameMapper(tsConfig.compilerOptions.paths, { prefix: '<rootDir>/' }), | ||
}, | ||
moduleFileExtensions: ['ts', 'js'], | ||
extensionsToTreatAsEsm: ['.ts'], | ||
coverageThreshold: { | ||
global: { | ||
statements: 60, | ||
lines: 60, | ||
functions: 50, | ||
}, | ||
}, | ||
collectCoverageFrom: ['<rootDir>/src/**/*.ts'], | ||
coveragePathIgnorePatterns: [ | ||
'types/*', | ||
'constants/*', | ||
], | ||
coverageDirectory: './coverage', | ||
}; | ||
|
||
export default jestConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "twenty-shared", | ||
"version": "0.1.0", | ||
"type": "module", | ||
"main": "./dist/index.js", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "npx vite build" | ||
} | ||
} |
Oops, something went wrong.