Skip to content

Commit

Permalink
Use swc transpiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman_Vasilev committed Feb 8, 2022
1 parent ba620db commit d00233f
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 24 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module.exports = {
extends: ['@commitlint/config-conventional'],



rules: {
'subject-case': [2, 'always', ['sentence-case']],
'scope-case': [2, 'always', ['lower-case', 'upper-case']],
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
testEnvironment: 'node',
setupFiles: ['<rootDir>/jest.setup.ts'],
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest',
'^.+\\.(t|j)sx?$': ['@swc/jest'],
},
collectCoverage: false,
coverageDirectory: 'coverage',
Expand Down
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test:p": "ultra test",
"test:r": "npm run mocha -- src/**/*.spec.ts",
"test:cov": "c8 --reporter text --exclude \"**/*.spec.ts\" --exclude \"**/testing/**\" npm run test:r -- --no-timeouts",
"test:w": "npm run test:r -- --watch --watch-files src/**/*.ts",
"test:w": "npm run test:r -- --watch-files src --watch",
"lint": "npm run eslint && npm run tscheck",
"eslint": "node node_modules/eslint/bin/eslint \"src/**/*.{ts,tsx}\"",
"eslint:w": "watchexec -w src \"npm run eslint\"",
Expand Down Expand Up @@ -48,40 +48,40 @@
}
},
"devDependencies": {
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@swc/cli": "^0.1.53",
"@swc/core": "^1.2.119",
"@swc/cli": "^0.1.55",
"@swc/core": "^1.2.137",
"@swc/helpers": "^0.3.2",
"@swc/jest": "^0.2.12",
"@swc/register": "^0.1.7",
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.12",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"c8": "^7.10.0",
"@swc/jest": "^0.2.17",
"@swc/register": "^0.1.10",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.16",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"c8": "^7.11.0",
"commitizen": "^4.2.4",
"conventional-changelog-conventionalcommits": "^4.6.1",
"conventional-changelog-conventionalcommits": "^4.6.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.4.1",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-etc": "^2.0.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-etc": "^2.0.2",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-only-warn": "^1.0.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-regexp": "^1.5.1",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-sort-class-members": "^1.14.1",
"eslint-plugin-unicorn": "^39.0.0",
"eslint-plugin-unicorn": "^40.1.0",
"eslint-plugin-wix-editor": "^3.3.0",
"expect": "^27.4.2",
"expect": "^27.5.1",
"ghooks": "^2.0.4",
"git-branch-is": "^4.0.0",
"jest": "^27.4.4",
"mocha": "^9.1.3",
"jest": "^27.5.1",
"mocha": "^9.2.0",
"npm-run-all": "^4.1.5",
"precise-commits": "^1.0.2",
"prettier": "^2.5.1",
Expand All @@ -90,12 +90,12 @@
"remark-cli": "^10.0.1",
"remark-license": "^6.1.0",
"remark-toc": "^8.0.1",
"semantic-release": "^18.0.1",
"semantic-release": "^19.0.2",
"semantic-release-monorepo": "^7.0.5",
"simplytyped": "^3.3.0",
"tsconfig-paths-jest-mapper": "^1.4.0",
"tslib": "^2.3.1",
"typescript": "^4.5.3",
"typescript": "^4.5.5",
"ultra-runner": "^3.10.5",
"watchexec-bin": "^1.0.0"
}
Expand Down
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"ts-node": {
"transpileOnly": true,
"transpiler": "ts-node/transpilers/swc-experimental"
},
"compilerOptions": {
"target": "es2018",
"module": "commonjs",
Expand All @@ -18,7 +22,8 @@
"declarationMap": false,
"skipLibCheck": true,
"lib": ["esnext"],
"paths": {}
"paths": {},
"plugins": []
},
"include": ["src/**/*.ts"]
}

0 comments on commit d00233f

Please sign in to comment.