Skip to content

Commit def8591

Browse files
authored
Merge pull request #30 from azu/29-update-dependencies
Update dependencies
2 parents 3392b15 + a5eabf1 commit def8591

File tree

17 files changed

+4619
-5461
lines changed

17 files changed

+4619
-5461
lines changed

.githooks/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
npx --no-install lint-staged

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: test
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
name: "Test on Node.js ${{ matrix.node-version }}"
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
node-version: [14, 16, 18]
10+
steps:
11+
- name: checkout
12+
uses: actions/checkout@v3
13+
- name: setup Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- name: Install
18+
run: yarn install
19+
- name: Test
20+
run: yarn test

.travis.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# immutable-array-prototype [![Build Status](https://travis-ci.org/azu/immutable-array-prototype.svg?branch=master)](https://travis-ci.org/azu/immutable-array-prototype)
1+
# immutable-array-prototype [![Actions Status: test](https://github.com/azu/immutable-array-prototype/workflows/test/badge.svg)](https://github.com/azu/immutable-array-prototype/actions?query=workflow%3A"test")
22

33
Immutable Array prototype methods.
44

package.json

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77
"description": "Immutable Array prototype methods.",
88
"main": "lib/immutable-array-prototype.js",
99
"scripts": {
10-
"prettier": "prettier \"packages/**/{src,test}/*.{js,ts,tsx}\"",
1110
"publish": "lerna publish --conventional-commits --concurrency 1",
1211
"publish:beta": "lerna publish --npm-tag=beta --conventional-commits --concurrency 1",
1312
"bootstrap": "lerna bootstrap",
1413
"test": "yarn run build && jest",
15-
"build": "lerna run build"
14+
"build": "lerna run build",
15+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,css}\"",
16+
"prepare": "git config --local core.hooksPath .githooks"
1617
},
1718
"workspaces": [
1819
"packages/*"
1920
],
2021
"lint-staged": {
21-
"**/*.{ts,tsx}": [
22-
"prettier --write",
23-
"git add"
22+
"*.{js,jsx,ts,tsx,css}": [
23+
"prettier --write"
2424
]
2525
},
2626
"jest": {
@@ -46,21 +46,25 @@
4646
},
4747
"homepage": "https://github.com/azu/immutable-array-prototype",
4848
"devDependencies": {
49-
"@types/jest": "^24.0.19",
50-
"@types/node": "^12.11.7",
51-
"cross-env": "^6.0.3",
52-
"husky": "^3.0.9",
53-
"jest": "^24.9.0",
54-
"lerna": "^3.18.3",
55-
"lint-staged": "^9.4.2",
56-
"prettier": "^1.18.2",
57-
"ts-jest": "^24.1.0",
58-
"typescript": "^3.6.4"
49+
"@types/jest": "^29.2.5",
50+
"@types/node": "^18.11.18",
51+
"jest": "^29.3.1",
52+
"lerna": "^6.4.0",
53+
"lint-staged": "^13.1.0",
54+
"prettier": "^2.8.2",
55+
"ts-jest": "^29.0.3",
56+
"typescript": "^4.9.4"
5957
},
6058
"husky": {
6159
"hooks": {
6260
"post-commit": "git reset",
6361
"pre-commit": "lint-staged"
6462
}
63+
},
64+
"prettier": {
65+
"singleQuote": false,
66+
"printWidth": 120,
67+
"tabWidth": 4,
68+
"trailingComma": "none"
6569
}
6670
}

packages/benchmark/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"license": "MIT",
1919
"devDependencies": {
2020
"@immutable-array/prototype": "^1.0.4",
21-
"@types/jest": "^24.0.19",
22-
"jest": "^24.9.0",
23-
"nanobench": "^2.1.0",
24-
"ts-jest": "^24.1.0"
21+
"@types/jest": "^29.2.5",
22+
"jest": "^29.3.1",
23+
"nanobench": "^3.0.0",
24+
"ts-jest": "^29.0.3"
2525
}
2626
}

packages/copy-within/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"main": "lib/copy-within.js",
1717
"types": "lib/copy-within.d.ts",
1818
"scripts": {
19-
"build": "cross-env NODE_ENV=production tsc -p .",
19+
"build": "tsc -p .",
2020
"watch": "tsc -p . --watch",
2121
"prepublish": "npm run --if-present build",
2222
"test": "jest"
@@ -37,11 +37,10 @@
3737
},
3838
"homepage": "https://github.com/azu/immutable-array-prototype/tree/master/packages/copy-within/",
3939
"devDependencies": {
40-
"@types/jest": "^24.0.19",
41-
"@types/node": "^12.11.7",
42-
"cross-env": "^6.0.3",
43-
"jest": "^24.9.0",
44-
"ts-jest": "^24.1.0",
45-
"typescript": "^3.6.4"
40+
"@types/jest": "^29.2.5",
41+
"@types/node": "^18.11.18",
42+
"jest": "^29.3.1",
43+
"ts-jest": "^29.0.3",
44+
"typescript": "^4.9.4"
4645
}
4746
}

packages/fill/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"main": "lib/fill.js",
1717
"types": "lib/fill.d.ts",
1818
"scripts": {
19-
"build": "cross-env NODE_ENV=production tsc -p .",
19+
"build": "tsc -p .",
2020
"watch": "tsc -p . --watch",
2121
"prepublish": "npm run --if-present build",
2222
"test": "jest"
@@ -37,11 +37,10 @@
3737
},
3838
"homepage": "https://github.com/azu/immutable-array-prototype/tree/master/packages/fill/",
3939
"devDependencies": {
40-
"@types/jest": "^24.0.19",
41-
"@types/node": "^12.11.7",
42-
"cross-env": "^6.0.3",
43-
"jest": "^24.9.0",
44-
"ts-jest": "^24.1.0",
45-
"typescript": "^3.6.4"
40+
"@types/jest": "^29.2.5",
41+
"@types/node": "^18.11.18",
42+
"jest": "^29.3.1",
43+
"ts-jest": "^29.0.3",
44+
"typescript": "^4.9.4"
4645
}
4746
}

packages/pop/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"main": "lib/pop.js",
1717
"types": "lib/pop.d.ts",
1818
"scripts": {
19-
"build": "cross-env NODE_ENV=production tsc -p .",
19+
"build": "tsc -p .",
2020
"watch": "tsc -p . --watch",
2121
"prepublish": "npm run --if-present build",
2222
"test": "jest"
@@ -37,11 +37,10 @@
3737
},
3838
"homepage": "https://github.com/azu/immutable-array-prototype/tree/master/packages/pop/",
3939
"devDependencies": {
40-
"@types/jest": "^24.0.19",
41-
"@types/node": "^12.11.7",
42-
"cross-env": "^6.0.3",
43-
"jest": "^24.9.0",
44-
"ts-jest": "^24.1.0",
45-
"typescript": "^3.6.4"
40+
"@types/jest": "^29.2.5",
41+
"@types/node": "^18.11.18",
42+
"jest": "^29.3.1",
43+
"ts-jest": "^29.0.3",
44+
"typescript": "^4.9.4"
4645
}
4746
}

packages/prototype/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"main": "lib/prototype.js",
1717
"types": "lib/prototype.d.ts",
1818
"scripts": {
19-
"build": "cross-env NODE_ENV=production tsc -p .",
19+
"build": "tsc -p .",
2020
"watch": "tsc -p . --watch",
2121
"prepublish": "npm run --if-present build",
2222
"test": "jest"
@@ -51,11 +51,10 @@
5151
"@immutable-array/unshift": "^1.0.4"
5252
},
5353
"devDependencies": {
54-
"@types/jest": "^24.0.19",
55-
"@types/node": "^12.11.7",
56-
"cross-env": "^6.0.3",
57-
"jest": "^24.9.0",
58-
"ts-jest": "^24.1.0",
59-
"typescript": "^3.6.4"
54+
"@types/jest": "^29.2.5",
55+
"@types/node": "^18.11.18",
56+
"jest": "^29.3.1",
57+
"ts-jest": "^29.0.3",
58+
"typescript": "^4.9.4"
6059
}
6160
}

0 commit comments

Comments
 (0)