-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
<!-- You can erase any parts of this template not applicable to your Pull Request. --> **Fixes or implements DX-903** ### Brief description. What is this change? Use standard tsconfig strategy from other typescript monorepos Remove old packages which have been moved to `platform` ### Checklist - [ ] Breaking changes have been communicated, including: - New required environment variables - Renaming of interfaces (API routes, request/response interface, etc) - [ ] New environment variables have [been deployed](https://www.notion.so/voiceflow/Add-Environment-Variables-be1b0136479f45f1adece7995a7adbfb) - [ ] Appropriate tests have been written - Bug fixes are accompanied by an updated or new test - New features are accompanied by a new test Co-authored-by: Ben Teichman <[email protected]>
- Loading branch information
1 parent
b45c2b9
commit ab7c8b4
Showing
233 changed files
with
5,183 additions
and
4,723 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = () => { | ||
if (!process.env.NODE_ENV || process.env.NODE_ENV === 'development') { | ||
process.env.NODE_ENV = 'test'; | ||
} | ||
}; |
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,23 @@ | ||
const path = require('path'); | ||
const swcConfig = require('@voiceflow-meta/swc-config/base.json'); | ||
|
||
/** @type {import('@jest/types').Config.InitialOptions} */ | ||
module.exports = { | ||
transform: { | ||
'^.+\\.(t|j)s?$': ['@swc/jest', Object.assign(swcConfig, { sourceMaps: 'inline' })], | ||
}, | ||
extensionsToTreatAsEsm: ['.ts'], | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1', | ||
}, | ||
modulePathIgnorePatterns: ['<rootDir>/build/'], | ||
testMatch: ['<rootDir>/src/**/*.test.ts'], | ||
testEnvironment: 'node', | ||
collectCoverage: false, | ||
coverageProvider: 'v8', | ||
coverageReporters: ['clover', 'json', 'lcov'], | ||
collectCoverageFrom: ['<rootDir>/src/**/*.{ts,js}', '!**/node_modules/**'], | ||
coverageDirectory: '<rootDir>/sonar/coverage', | ||
globalSetup: path.join(__dirname, 'global-setup.js'), | ||
maxWorkers: process.env.CI ? 4 : '50%', | ||
}; |
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 @@ | ||
{ | ||
"name": "@voiceflow-meta/jest-config", | ||
"version": "1.0.0", | ||
"private": true, | ||
"main": "index.js", | ||
"files": [ | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"@swc/core": "1.3.21", | ||
"@swc/jest": "0.2.23", | ||
"@types/jest": "^29.2.3", | ||
"@voiceflow-meta/swc-config": "workspace:*" | ||
} | ||
} |
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,23 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"jsc": { | ||
"target": "es2021", | ||
"parser": { | ||
"syntax": "typescript", | ||
"decorators": true | ||
}, | ||
"baseUrl": "./", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"module": { | ||
"type": "commonjs" | ||
}, | ||
"env": { | ||
"targets": { | ||
"node": "16" | ||
} | ||
}, | ||
"sourceMaps": true | ||
} |
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,8 @@ | ||
{ | ||
"name": "@voiceflow-meta/swc-config", | ||
"version": "1.0.0", | ||
"private": true, | ||
"files": [ | ||
"base.json" | ||
] | ||
} |
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,25 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"display": "Default", | ||
"compilerOptions": { | ||
"composite": false, | ||
"declaration": true, | ||
"declarationMap": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"inlineSources": false, | ||
"isolatedModules": true, | ||
"moduleResolution": "Node", | ||
"module": "ESNext", | ||
"noUnusedLocals": false, | ||
"noUnusedParameters": false, | ||
"preserveWatchOutput": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"noImplicitAny": true, | ||
"target": "ES2021", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
} | ||
} |
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,11 @@ | ||
{ | ||
"name": "@voiceflow-meta/typescript-config", | ||
"version": "1.0.0", | ||
"private": true, | ||
"files": [ | ||
"base.json" | ||
], | ||
"dependencies": { | ||
"@voiceflow/tsconfig": "1.4.8" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
{ | ||
"specials": ["bin"], | ||
"specials": [ | ||
"bin" | ||
], | ||
"ignores": [ | ||
"@alexa-types/*", | ||
"@types/*" | ||
"@types/*", | ||
"@voiceflow-meta/typescript-config" | ||
] | ||
} |
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,7 @@ | ||
{ | ||
"extends": "./tsconfig.build.json", | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"outDir": "build/cjs" | ||
} | ||
} |
File renamed without changes.
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 |
---|---|---|
@@ -1,18 +1,4 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"references": [ | ||
{ | ||
"path": "../base-types/tsconfig.build.json" | ||
}, | ||
{ | ||
"path": "../common/tsconfig.build.json" | ||
}, | ||
{ | ||
"path": "../voice-types/tsconfig.build.json" | ||
}, | ||
{ | ||
"path": "../voiceflow-types/tsconfig.build.json" | ||
} | ||
], | ||
"include": ["src"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
{ | ||
"extends": "@voiceflow/tsconfig/monorepo.json", | ||
"extends": "@voiceflow-meta/typescript-config/base.json", | ||
"compilerOptions": { | ||
"exactOptionalPropertyTypes": false, | ||
"baseUrl": ".", | ||
"rootDir": "src", | ||
"outDir": "build/cjs", | ||
"paths": { | ||
"@alexa-types/*": ["src/*"] | ||
}, | ||
"types": ["mocha"] | ||
} | ||
}, | ||
"exclude": ["node_modules", "build"] | ||
} |
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
{ | ||
"specials": ["bin", "istanbul"], | ||
"specials": [ | ||
"bin", | ||
"istanbul" | ||
], | ||
"ignores": [ | ||
"@types/*", | ||
"@api-sdk/*", | ||
"chai", | ||
"chai-as-promised", | ||
"sinon", | ||
"source-map-support" | ||
"source-map-support", | ||
"@voiceflow-meta/typescript-config" | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const config = require('@voiceflow-meta/jest-config'); | ||
|
||
/** @type {import('@jest/types').Config.InitialOptions} */ | ||
module.exports = { | ||
...config, | ||
}; |
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
sonar.projectName=libs-api-sdk | ||
sonar.sources=src | ||
sonar.tests=tests | ||
sonar.tests=src/ | ||
sonar.exclusions=src/**/*.test.ts,src/**/test-utils/ | ||
sonar.test.inclusions=src/**/*.test.ts,src/**/test-utils/ | ||
sonar.cpd.exclusions=src/**/*.test.ts,src/**/test-utils/ | ||
sonar.eslint.reportPaths=sonar/report.json | ||
sonar.typescript.tsconfigPath=./tsconfig.json | ||
sonar.javascript.lcov.reportPaths=nyc_coverage_unit/lcov.info | ||
sonar.javascript.lcov.reportPaths=nyc_coverage_unit/lcov.info |
Oops, something went wrong.