Skip to content

Commit cad22af

Browse files
authored
fix(create-rslib): preserve @rslib/core as workspace (#346)
1 parent e6a804e commit cad22af

File tree

19 files changed

+22
-29
lines changed

19 files changed

+22
-29
lines changed

packages/create-rslib/fragments/tools/vitest-react-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
},
55
"devDependencies": {
66
"@testing-library/jest-dom": "^6.4.2",
7-
"@testing-library/react": "^13.2.0",
7+
"@testing-library/react": "^16.0.1",
88
"jsdom": "^25.0.1",
99
"vitest": "^2.1.4"
1010
}

packages/create-rslib/fragments/tools/vitest-react-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
},
55
"devDependencies": {
66
"@testing-library/jest-dom": "^6.4.2",
7-
"@testing-library/react": "^13.2.0",
7+
"@testing-library/react": "^16.0.1",
88
"jsdom": "^25.0.1",
99
"vitest": "^2.1.4"
1010
}

packages/create-rslib/src/helpers.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import { copyFolder } from 'create-rstack';
66
const __filename = fileURLToPath(import.meta.url);
77
const __dirname = path.dirname(__filename);
88
const fragmentsDir = path.resolve(__dirname, '../fragments');
9-
const RSLIB_VERSION = JSON.parse(
10-
fs.readFileSync(path.resolve(__dirname, '../../core/package.json'), 'utf-8'),
11-
).version;
129

1310
export type Lang = 'ts' | 'js';
1411

@@ -46,8 +43,6 @@ export function genTemplate({
4643
from: srcBase,
4744
to: target,
4845
isMergePackageJson: true,
49-
version: RSLIB_VERSION,
50-
skipFiles: [],
5146
});
5247

5348
if (tools) {
@@ -57,8 +52,6 @@ export function genTemplate({
5752
from: toolDir,
5853
to: target,
5954
isMergePackageJson: true,
60-
version: RSLIB_VERSION,
61-
skipFiles: [],
6255
});
6356
}
6457
}

packages/create-rslib/template-[node-dual]-[]-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"dev": "rslib build --watch"
1919
},
2020
"devDependencies": {
21-
"@rslib/core": "^0.0.15"
21+
"@rslib/core": "workspace:*"
2222
}
2323
}

packages/create-rslib/template-[node-dual]-[]-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"dev": "rslib build --watch"
2121
},
2222
"devDependencies": {
23-
"@rslib/core": "^0.0.15",
23+
"@rslib/core": "workspace:*",
2424
"@types/node": "^22.8.1",
2525
"typescript": "^5.6.3"
2626
}

packages/create-rslib/template-[node-dual]-[vitest]-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"test": "vitest run"
2020
},
2121
"devDependencies": {
22-
"@rslib/core": "^0.0.15",
22+
"@rslib/core": "workspace:*",
2323
"vitest": "^2.1.4"
2424
}
2525
}

packages/create-rslib/template-[node-dual]-[vitest]-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"test": "vitest run"
2222
},
2323
"devDependencies": {
24-
"@rslib/core": "^0.0.15",
24+
"@rslib/core": "workspace:*",
2525
"@types/node": "^22.8.1",
2626
"typescript": "^5.6.3",
2727
"vitest": "^2.1.4"

packages/create-rslib/template-[node-esm]-[]-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"dev": "rslib build --watch"
1717
},
1818
"devDependencies": {
19-
"@rslib/core": "^0.0.15"
19+
"@rslib/core": "workspace:*"
2020
}
2121
}

packages/create-rslib/template-[node-esm]-[]-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dev": "rslib build --watch"
1919
},
2020
"devDependencies": {
21-
"@rslib/core": "^0.0.15",
21+
"@rslib/core": "workspace:*",
2222
"@types/node": "^22.8.1",
2323
"typescript": "^5.6.3"
2424
}

packages/create-rslib/template-[node-esm]-[vitest]-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test": "vitest run"
1818
},
1919
"devDependencies": {
20-
"@rslib/core": "^0.0.15",
20+
"@rslib/core": "workspace:*",
2121
"vitest": "^2.1.4"
2222
}
2323
}

0 commit comments

Comments
 (0)