Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .github/workflows/size-limit.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
- name: Install dependencies
uses: bahmutov/npm-install@v1
- run: yarn test:ci
- run: yarn test:size
if: matrix.node == '16'
env:
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}

publish-module:
name: 'Publish Module to NPM'
Expand Down
2 changes: 1 addition & 1 deletion examples/load-more-infinite-scroll/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pagination",
"name": "load-more-infinite-scroll",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion examples/optimistic-updates-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "basic",
"name": "optimistic-updates-typescript",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion examples/optimistic-updates/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "basic",
"name": "optimistic-updates",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion examples/prefetching/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "basic",
"name": "prefetching",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"test:format": "yarn prettier --check",
"test:types": "tsc",
"test:eslint": "eslint --ext .ts,.tsx ./src",
"test:size": "yarn build:umd && bundlewatch",
"build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types",
"build:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib",
"build:es": "rimraf ./es && babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es",
Expand All @@ -46,8 +47,7 @@
"prettier": "prettier \"{.,src,src/**,example/src,example/src/**,types}/*.{md,js,jsx,ts,tsx,json}\"",
"start": "yarn watch",
"format": "yarn prettier --write",
"stats": "open ./stats.html",
"build-size": "yarn build:umd"
"stats": "open ./stats.html"
},
"files": [
"core",
Expand Down Expand Up @@ -91,7 +91,6 @@
"@babel/preset-react": "^7.10.4",
"@babel/preset-typescript": "^7.10.4",
"@rollup/plugin-replace": "^2.3.3",
"@size-limit/file": "^6.0.3",
"@svgr/rollup": "^5.4.0",
"@testing-library/react": "^10.4.7",
"@testing-library/jest-dom": "^5.14.1",
Expand All @@ -104,6 +103,7 @@
"babel-jest": "^26.0.1",
"babel-plugin-const-enum": "^1.0.1",
"babel-plugin-transform-async-to-promises": "^0.8.15",
"bundlewatch": "^0.3.2",
"cross-env": "^7.0.2",
"eslint": "7.x",
"eslint-config-prettier": "^6.11.0",
Expand Down Expand Up @@ -137,17 +137,18 @@
"rollup-plugin-size": "^0.2.2",
"rollup-plugin-terser": "^6.1.0",
"rollup-plugin-visualizer": "^4.0.4",
"size-limit": "^6.0.3",
"type-fest": "^0.21.0",
"typescript": "^4.1.2"
},
"resolutions": {
"@types/react": "^16.9.41",
"@types/react-dom": "^16.9.8"
},
"size-limit": [
{
"path": "dist/*.production.min.js"
}
]
"bundlewatch": {
"files": [
{
"path": "dist/*.production.min.js"
}
]
}
}
Loading