Skip to content

Commit

Permalink
use typescript compile js
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcwoshizz committed Mar 15, 2023
1 parent 4671e60 commit c93f6d3
Show file tree
Hide file tree
Showing 18 changed files with 235 additions and 2,005 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-beers-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zcloak/dev": minor
---

use typescript compile js
2 changes: 0 additions & 2 deletions babel.config.cjs

This file was deleted.

4 changes: 1 addition & 3 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const config = require('@zcloak/dev/config/jest.cjs');

module.exports = {
...config
};
module.exports = config;
12 changes: 0 additions & 12 deletions packages/dev/config/babel-config-cjs.cjs

This file was deleted.

12 changes: 0 additions & 12 deletions packages/dev/config/babel-config-esm.cjs

This file was deleted.

12 changes: 0 additions & 12 deletions packages/dev/config/babel-config-webpack.cjs

This file was deleted.

15 changes: 0 additions & 15 deletions packages/dev/config/babel-general.cjs

This file was deleted.

18 changes: 0 additions & 18 deletions packages/dev/config/babel-plugin-fix-istanbul.cjs

This file was deleted.

31 changes: 0 additions & 31 deletions packages/dev/config/babel-plugins.cjs

This file was deleted.

37 changes: 0 additions & 37 deletions packages/dev/config/babel-presets.cjs

This file was deleted.

10 changes: 0 additions & 10 deletions packages/dev/config/babel-resolver.cjs

This file was deleted.

1 change: 0 additions & 1 deletion packages/dev/config/eslint.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ module.exports = {
'.prettierrc.cjs',
'.vscode/**',
'.yarn/**',
'babel.config.cjs',
'jest.config.cjs'
],
extends: [
Expand Down
20 changes: 0 additions & 20 deletions packages/dev/config/jest-crypto.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion packages/dev/config/jest.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ module.exports = {
sandboxInjectedGlobals: ['Math'],
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': require.resolve('babel-jest')
'^.+\\.(js|jsx|ts|tsx)$': require.resolve('ts-jest')
}
};
22 changes: 1 addition & 21 deletions packages/dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,13 @@
"zcloak-exec-webpack": "./scripts/zcloak-exec-webpack.mjs"
},
"dependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@babel/plugin-syntax-bigint": "^7.8.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-import-assertions": "^7.20.0",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-syntax-top-level-await": "^7.14.5",
"@babel/plugin-transform-regenerator": "^7.20.5",
"@babel/plugin-transform-runtime": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@babel/register": "^7.21.0",
"@babel/runtime": "^7.21.0",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.0",
"@manypkg/get-packages": "^2.1.0",
"@rushstack/eslint-patch": "^1.2.0",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"@zcloak/lint": "workspace:^",
"babel-jest": "^29.5.0",
"babel-plugin-module-extension-resolver": "^1.0.0",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-styled-components": "^2.0.7",
"browserslist": "^4.21.5",
"conventional-changelog": "^3.1.25",
"conventional-recommended-bump": "^6.1.0",
Expand Down Expand Up @@ -104,6 +83,7 @@
"mkdirp": "^2.1.5",
"prettier": "^2.8.4",
"rimraf": "^4.4.0",
"ts-jest": "^29.0.5",
"typescript": "^5.0.1-rc",
"webpack": "^5.76.1",
"webpack-cli": "^5.0.1",
Expand Down
Loading

0 comments on commit c93f6d3

Please sign in to comment.