Skip to content

Commit 6b32ebf

Browse files
committed
bump to 2.3.0
1 parent 34cc044 commit 6b32ebf

5 files changed

Lines changed: 20 additions & 21 deletions

File tree

.bomlint.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"@types/react": "^16.7.22",
3-
"tea-cup-core": "2.2.2",
4-
"react-tea-cup": "2.2.2",
3+
"tea-cup-core": "2.3.0",
4+
"react-tea-cup": "2.3.0",
55
"ts-jest": "^24.1.0",
66
"bomlint": "1.2.3"
77
}

bump-version.js

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,25 @@ const fs = require('fs');
22

33
const VERSION = process.env.VERSION;
44

5-
console.log("Bumping to " + VERSION);
5+
console.log('Bumping to ' + VERSION);
66

77
function withJsonFile(name, callback) {
8-
const text = fs.readFileSync(name);
9-
const json = JSON.parse(text);
10-
callback(json)
11-
fs.writeFileSync(name, JSON.stringify(json, null, " "))
8+
const text = fs.readFileSync(name);
9+
const json = JSON.parse(text);
10+
callback(json);
11+
fs.writeFileSync(name, JSON.stringify(json, null, ' '));
1212
}
1313

14-
withJsonFile("./core/package.json", j => {
15-
j.version = VERSION;
14+
withJsonFile('./core/package.json', (j) => {
15+
j.version = VERSION;
1616
});
1717

18-
withJsonFile("./tea-cup/package.json", j => {
19-
j.version = VERSION;
20-
j.peerDependencies['tea-cup-core'] = '^' + VERSION;
18+
withJsonFile('./tea-cup/package.json', (j) => {
19+
j.version = VERSION;
20+
j.peerDependencies['tea-cup-core'] = VERSION;
2121
});
2222

23-
withJsonFile('./samples/package.json', j => {
24-
j.dependencies['tea-cup-core'] = VERSION;
25-
j.dependencies['react-tea-cup'] = VERSION;
23+
withJsonFile('./samples/package.json', (j) => {
24+
j.dependencies['tea-cup-core'] = VERSION;
25+
j.dependencies['react-tea-cup'] = VERSION;
2626
});
27-

core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tea-cup-core",
3-
"version": "2.2.2",
3+
"version": "2.3.0",
44
"description": "react-tea-cup core classes and utilities (Maybe etc)",
55
"author": "Rémi Van Keisbelck <remi@rvkb.com>",
66
"license": "MIT",

samples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"react": "^16.7.0",
1212
"react-dom": "^16.7.0",
1313
"react-scripts": "3.4.3",
14-
"react-tea-cup": "2.2.2",
15-
"tea-cup-core": "2.2.2"
14+
"react-tea-cup": "2.3.0",
15+
"tea-cup-core": "2.3.0"
1616
},
1717
"scripts": {
1818
"start": "react-scripts start",

tea-cup/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-tea-cup",
3-
"version": "2.2.2",
3+
"version": "2.3.0",
44
"description": "Put some TEA in your React.",
55
"author": "Rémi Van Keisbelck <remi@rvkb.com>",
66
"license": "MIT",
@@ -23,7 +23,7 @@
2323
"dependencies": {},
2424
"peerDependencies": {
2525
"react": "^16.7.0 || ^17.0.1",
26-
"tea-cup-core": "2.2.2"
26+
"tea-cup-core": "2.3.0"
2727
},
2828
"devDependencies": {
2929
"@types/jsdom": "^16.2.5",

0 commit comments

Comments
 (0)