{"_id":"jest-chain-transform","_rev":"3138186","name":"jest-chain-transform","description":"Support for multiple transform scripts of jest","dist-tags":{"latest":"0.0.5"},"maintainers":[{"name":"anc95","email":""}],"time":{"modified":"2023-11-27T06:43:52.000Z","created":"2021-07-03T09:06:08.589Z","0.0.5":"2022-12-12T06:53:41.330Z","0.0.4":"2021-09-08T12:10:13.957Z","0.0.4-alpha.2":"2021-09-08T12:05:32.618Z","0.0.3":"2021-07-04T03:02:20.810Z","0.0.1":"2021-07-03T09:06:08.589Z","0.0.2":"2021-07-03T09:14:27.538Z"},"users":{},"author":{"name":"anc95"},"repository":{"type":"git","url":"git+https://github.com/anc95/jest-chain-transform.git"},"versions":{"0.0.5":{"name":"jest-chain-transform","version":"0.0.5","description":"Support for multiple transform scripts of jest","main":"./lib/index.js","typings":"./lib/index.d.ts","scripts":{"test":"srcipt/test.sh","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/anc95/jest-chain-transform.git"},"keywords":["jest","jest-transform","multiple-transform","jest-chain-transform"],"author":{"name":"anc95"},"license":"MIT","bugs":{"url":"https://github.com/anc95/jest-chain-transform/issues"},"homepage":"https://github.com/anc95/jest-chain-transform#readme","peerDependencies":{"@jest/transform":"^27.0.6"},"devDependencies":{"@babel/preset-env":"^7.14.7","@types/jest":"^26.0.23","jest":"^27.0.6","typescript":"^4.3.5","ts-jest":"^27.0.3"},"gitHead":"de8cc21336d30ff7ac14c6df827d546e7f255fb7","_id":"jest-chain-transform@0.0.5","_nodeVersion":"14.21.1","_npmVersion":"6.14.17","dist":{"shasum":"678fd4cdee417332c09c9d94f4dd489f97949a7d","size":8370,"noattachment":false,"key":"/jest-chain-transform/-/jest-chain-transform-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/jest-chain-transform/download/jest-chain-transform-0.0.5.tgz"},"_npmUser":{"name":"anc95","email":"1481988258@qq.com"},"directories":{},"maintainers":[{"name":"anc95","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chain-transform_0.0.5_1670828021147_0.24240749739553347"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-12T06:53:46.086Z","publish_time":1670828021330,"_cnpm_publish_time":1670828021330},"0.0.4":{"name":"jest-chain-transform","version":"0.0.4","description":"Support for multiple transform scripts of jest","main":"./lib/index.js","typings":"./lib/index.d.ts","scripts":{"test":"srcipt/test.sh","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/anc95/jest-chain-transform.git"},"keywords":["jest","jest-transform","multiple-transform","jest-chain-transform"],"author":{"name":"anc95"},"license":"MIT","bugs":{"url":"https://github.com/anc95/jest-chain-transform/issues"},"homepage":"https://github.com/anc95/jest-chain-transform#readme","peerDependencies":{"@jest/transform":"^27.0.6"},"devDependencies":{"@babel/preset-env":"^7.14.7","@types/jest":"^26.0.23","jest":"^27.0.6","typescript":"^4.3.5","ts-jest":"^27.0.3"},"gitHead":"4ff7c5d085645db380b5862446caf3d6ca7fc93f","_id":"jest-chain-transform@0.0.4","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"shasum":"1c58e923c0783c2d0d93ab1b2597bb0f389f91f7","size":8247,"noattachment":false,"key":"/jest-chain-transform/-/jest-chain-transform-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/jest-chain-transform/download/jest-chain-transform-0.0.4.tgz"},"_npmUser":{"name":"anc95","email":"1481988258@qq.com"},"directories":{},"maintainers":[{"name":"anc95","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chain-transform_0.0.4_1631103013828_0.11640435637021818"},"_hasShrinkwrap":false,"publish_time":1631103013957,"_cnpm_publish_time":1631103013957,"_cnpmcore_publish_time":"2021-12-17T10:15:50.218Z"},"0.0.4-alpha.2":{"name":"jest-chain-transform","version":"0.0.4-alpha.2","description":"Support for multiple transform scripts of jest","main":"./lib/index.js","typings":"./lib/index.d.ts","scripts":{"test":"srcipt/test.sh","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/anc95/jest-chain-transform.git"},"keywords":["jest","jest-transform","multiple-transform","jest-chain-transform"],"author":{"name":"anc95"},"license":"MIT","bugs":{"url":"https://github.com/anc95/jest-chain-transform/issues"},"homepage":"https://github.com/anc95/jest-chain-transform#readme","peerDependencies":{"@jest/transform":"^27.0.6"},"devDependencies":{"@babel/preset-env":"^7.14.7","@types/jest":"^26.0.23","jest":"^27.0.6","typescript":"^4.3.5","ts-jest":"^27.0.3"},"gitHead":"87ee56c94060e005afc7cda573d33e9323c80cad","_id":"jest-chain-transform@0.0.4-alpha.2","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"shasum":"d5df6c614c859fa96b1469902d6eeb953781896b","size":8256,"noattachment":false,"key":"/jest-chain-transform/-/jest-chain-transform-0.0.4-alpha.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jest-chain-transform/download/jest-chain-transform-0.0.4-alpha.2.tgz"},"_npmUser":{"name":"anc95","email":"1481988258@qq.com"},"directories":{},"maintainers":[{"name":"anc95","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chain-transform_0.0.4-alpha.2_1631102732428_0.8620071546307269"},"_hasShrinkwrap":false,"publish_time":1631102732618,"_cnpm_publish_time":1631102732618,"_cnpmcore_publish_time":"2021-12-17T10:15:50.493Z"},"0.0.3":{"name":"jest-chain-transform","version":"0.0.3","description":"Support for multiple transform scripts of jest","main":"./lib/index.js","typings":"./lib/index.d.ts","scripts":{"test":"srcipt/test.sh","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/anc95/jest-chain-transform.git"},"keywords":["jest","jest-transform","multiple-transform","jest-chain-transform"],"author":{"name":"anc95"},"license":"MIT","bugs":{"url":"https://github.com/anc95/jest-chain-transform/issues"},"homepage":"https://github.com/anc95/jest-chain-transform#readme","peerDependencies":{"@jest/transform":"^27.0.6"},"devDependencies":{"@babel/preset-env":"^7.14.7","@types/jest":"^26.0.23","jest":"^27.0.6","typescript":"^4.3.5","ts-jest":"^27.0.3"},"gitHead":"b635ae30d96685438d560ba59ad7192bd4847935","_id":"jest-chain-transform@0.0.3","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"shasum":"c6b2f66b3edc7cd913e8c647c50acd1c421ce7ba","size":6115,"noattachment":false,"key":"/jest-chain-transform/-/jest-chain-transform-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/jest-chain-transform/download/jest-chain-transform-0.0.3.tgz"},"_npmUser":{"name":"anc95","email":"1481988258@qq.com"},"directories":{},"maintainers":[{"name":"anc95","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chain-transform_0.0.3_1625367740656_0.45188144481546155"},"_hasShrinkwrap":false,"publish_time":1625367740810,"_cnpm_publish_time":1625367740810,"_cnpmcore_publish_time":"2021-12-17T10:15:50.803Z"},"0.0.1":{"name":"jest-chain-transform","version":"0.0.1","description":"Support for multiple transform scripts of jest","main":"./lib/index.js","typings":"./lib/index.d.ts","scripts":{"test":"srcipt/test.sh","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/anc95/jest-chain-transform.git"},"keywords":["jest","jest-transform","multiple-transform","jest-chain-transform"],"author":{"name":"anc95"},"license":"MIT","bugs":{"url":"https://github.com/anc95/jest-chain-transform/issues"},"homepage":"https://github.com/anc95/jest-chain-transform#readme","peerDependencies":{"@jest/transform":"^27.0.6"},"devDependencies":{"@babel/preset-env":"^7.14.7","@jest/test-utils":"^0.0.0","@types/jest":"^26.0.23","jest":"^27.0.6","typescript":"^4.3.5"},"dependencies":{"ts-jest":"^27.0.3"},"gitHead":"a1ffa92c1536de8f509d65087d93ad2b61dc1afd","_id":"jest-chain-transform@0.0.1","_nodeVersion":"16.3.0","_npmVersion":"7.15.1","dist":{"shasum":"a6f5fd59ec5d1a100ae3c71eb9e3134096795e0f","size":5994,"noattachment":false,"key":"/jest-chain-transform/-/jest-chain-transform-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/jest-chain-transform/download/jest-chain-transform-0.0.1.tgz"},"_npmUser":{"name":"anc95","email":"1481988258@qq.com"},"directories":{},"maintainers":[{"name":"anc95","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chain-transform_0.0.1_1625303168462_0.9378704740480508"},"_hasShrinkwrap":false,"publish_time":1625303168589,"_cnpm_publish_time":1625303168589,"_cnpmcore_publish_time":"2021-12-17T10:15:51.324Z"},"0.0.2":{"name":"jest-chain-transform","version":"0.0.2","description":"Support for multiple transform scripts of jest","main":"./lib/index.js","typings":"./lib/index.d.ts","scripts":{"test":"srcipt/test.sh","build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/anc95/jest-chain-transform.git"},"keywords":["jest","jest-transform","multiple-transform","jest-chain-transform"],"author":{"name":"anc95"},"license":"MIT","bugs":{"url":"https://github.com/anc95/jest-chain-transform/issues"},"homepage":"https://github.com/anc95/jest-chain-transform#readme","peerDependencies":{"@jest/transform":"^27.0.6"},"devDependencies":{"@babel/preset-env":"^7.14.7","@jest/test-utils":"^0.0.0","@types/jest":"^26.0.23","jest":"^27.0.6","typescript":"^4.3.5"},"dependencies":{"ts-jest":"^27.0.3"},"gitHead":"46757a18058437bc39b9a71be9ae9c26b4a63925","_id":"jest-chain-transform@0.0.2","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"shasum":"21e205838b607b2f4caf8183c3f24e9bb02749a5","size":6087,"noattachment":false,"key":"/jest-chain-transform/-/jest-chain-transform-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/jest-chain-transform/download/jest-chain-transform-0.0.2.tgz"},"_npmUser":{"name":"anc95","email":"1481988258@qq.com"},"directories":{},"maintainers":[{"name":"anc95","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/jest-chain-transform_0.0.2_1625303667409_0.7083418861874435"},"_hasShrinkwrap":false,"publish_time":1625303667538,"_cnpm_publish_time":1625303667538,"_cnpmcore_publish_time":"2021-12-17T10:15:51.116Z"}},"readme":"# jest-chain-transform\n[![Node.js Package](https://github.com/anc95/jest-chain-transform/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/anc95/jest-chain-transform/actions/workflows/npm-publish.yml)\n[![Node.js CI](https://github.com/anc95/jest-chain-transform/actions/workflows/node.js.yml/badge.svg)](https://github.com/anc95/jest-chain-transform/actions/workflows/node.js.yml)\n\n`jest-chain-transform` enables jest can transform file by mutiple transformers.\n\n## install\n\nnpm\n```sh\nnpm install jest-chain-transform -D\n```\n\nyarn\n```sh\nyarn add jest-chain-transform -D\n```\n\n## config\n```js\n// jest.config.js\nmodule.exports = {\n  transform: {\n    \"\\\\.[jt]sx?$\": [\n      'jest-chain-transform',\n      {\n        transformers: [\n          'path-of-your-custom-transformer', 'ts-jest'\n        ]\n      }\n    ]\n  },\n}\n```\n\nJest will transform all files that match `\\\\.[jt]sx?$` by `path-of-your-custom-transformer` and `'ts-jest'` in turn.\n\nIf you need to pass extra option to transform, you can write config as follow\n\n```js\n// jest.config.js\nmodule.exports = {\n  transform: {\n    \"\\\\.[jt]sx?$\": [\n      'jest-chain-transform',\n      {\n        transformers: [\n          ['path-of-your-custom-transformer', { ... }],\n          ['babel-jest', { ... }]\n        ]\n      }\n    ]\n  },\n}\n```\n\n## option\n\n```ts\ninterface Config {\n  /**\n   * multiple transforms\n   * @example\n   * ```js\n   * ['babel-jest', 'ts-jest']\n   * [\n   *   ['babel-jest', { }],\n   *   ['ts-jest', { }]\n   * ]\n   * ```\n   */\n  transformers: string[] | [string, Record<string, any>][];\n}\n```\n","_attachments":{},"homepage":"https://github.com/anc95/jest-chain-transform#readme","bugs":{"url":"https://github.com/anc95/jest-chain-transform/issues"},"license":"MIT"}