File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55 "@gilbarbara/eslint-config" : " ^0.7.1" ,
66 "@gilbarbara/prettier-config" : " ^1.0.0" ,
77 "@gilbarbara/tsconfig" : " ^0.2.3" ,
8- "@size-limit/preset-small-lib" : " ^10 .0.1 " ,
9- "@types/node" : " ^20.8.10 " ,
8+ "@size-limit/preset-small-lib" : " ^11 .0.0 " ,
9+ "@types/node" : " ^20.9.0 " ,
1010 "@vitest/coverage-v8" : " ^0.34.6" ,
1111 "del-cli" : " ^5.1.0" ,
12- "fast-glob" : " ^3.3.1" ,
1312 "happy-dom" : " ^12.10.3" ,
1413 "husky" : " ^8.0.3" ,
1514 "is-ci-cli" : " ^2.2.0" ,
1615 "lerna" : " ^7.4.2" ,
1716 "repo-tools" : " ^0.3.1" ,
18- "size-limit" : " ^10 .0.1 " ,
17+ "size-limit" : " ^11 .0.0 " ,
1918 "ts-node" : " ^10.9.1" ,
2019 "tsup" : " ^7.2.0" ,
2120 "typescript" : " ^5.2.2"
Original file line number Diff line number Diff line change 4040 "tree-changes" : " workspace:*"
4141 },
4242 "devDependencies" : {
43+ "@gilbarbara/node-helpers" : " ^0.1.0" ,
4344 "@testing-library/jest-dom" : " ^6.1.4" ,
44- "@testing-library/react" : " ^14.0 .0" ,
45- "@types/react" : " ^18.2.33 " ,
46- "@types/react-dom" : " ^18.2.14 " ,
47- "@vitejs/plugin-react" : " ^4.1.0 " ,
45+ "@testing-library/react" : " ^14.1 .0" ,
46+ "@types/react" : " ^18.2.37 " ,
47+ "@types/react-dom" : " ^18.2.15 " ,
48+ "@vitejs/plugin-react" : " ^4.1.1 " ,
4849 "react" : " ^18.2.0" ,
4950 "react-dom" : " ^18.2.0" ,
5051 "vitest" : " ^0.34.6"
Original file line number Diff line number Diff line change 1- // eslint-disable-next-line import/no-relative-packages
2- import { replace , type ReplaceOptions } from '../../../scripts/replace' ;
1+ import { replaceContent , type ReplaceContentOptions } from '@gilbarbara/node-helpers' ;
32
4- export const fixCjsDts = async ( options ?: Partial < ReplaceOptions > ) => {
5- return replace ( {
6- files : '**/*.d.{ts,cts}' ,
3+ export const fixCjsDts = async ( options ?: Partial < ReplaceContentOptions > ) => {
4+ return replaceContent ( {
5+ pattern : '**/*.d.{ts,cts}' ,
76 ...options ,
87 name : 'fix-cjs-dts' ,
98
@@ -36,7 +35,7 @@ export = UseTreeChanges;`;
3635 } ) ;
3736} ;
3837
39- export const fixCjsExports = async ( options ?: Partial < ReplaceOptions > ) => {
38+ export const fixCjsExports = async ( options ?: Partial < ReplaceContentOptions > ) => {
4039 const statement = `
4140// fix-cjs-exports
4241if (module.exports.default) {
@@ -46,8 +45,8 @@ if (module.exports.default) {
4645}
4746` ;
4847
49- return replace ( {
50- files : '**/*.js' ,
48+ return replaceContent ( {
49+ pattern : '**/*.js' ,
5150 ...options ,
5251 name : 'fix-cjs-exports' ,
5352
Original file line number Diff line number Diff line change 3535 "is-lite" : " ^1.2.0"
3636 },
3737 "devDependencies" : {
38+ "@gilbarbara/node-helpers" : " ^0.1.0" ,
3839 "vitest" : " ^0.34.6"
3940 },
4041 "scripts" : {
Original file line number Diff line number Diff line change 1- // eslint-disable-next-line import/no-relative-packages
2- import { replace , type ReplaceOptions } from '../../../scripts/replace' ;
1+ import { replaceContent , type ReplaceContentOptions } from '@gilbarbara/node-helpers' ;
32
4- export const fixCjsDts = async ( options ?: Partial < ReplaceOptions > ) => {
5- return replace ( {
6- files : '**/*.d.{ts,cts}' ,
3+ export const fixCjsDts = async ( options ?: Partial < ReplaceContentOptions > ) => {
4+ return replaceContent ( {
5+ pattern : '**/*.d.{ts,cts}' ,
76 ...options ,
87 name : 'fix-cjs-dts' ,
98
@@ -28,7 +27,7 @@ export = TreeChangesModule;`;
2827 } ) ;
2928} ;
3029
31- export const fixCjsExports = async ( options ?: Partial < ReplaceOptions > ) => {
30+ export const fixCjsExports = async ( options ?: Partial < ReplaceContentOptions > ) => {
3231 const statement = `
3332// fix-cjs-exports
3433if (module.exports.default) {
@@ -38,8 +37,8 @@ if (module.exports.default) {
3837}
3938` ;
4039
41- return replace ( {
42- files : '**/*.js' ,
40+ return replaceContent ( {
41+ pattern : '**/*.js' ,
4342 ...options ,
4443 name : 'fix-cjs-exports' ,
4544
You can’t perform that action at this time.
0 commit comments