@kolserdav/swiper 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +4 -5
package/README.md CHANGED
@@ -15,7 +15,7 @@ npm install --save @kolserdav/swiper
15
15
  ```tsx
16
16
  import React, { useState, useEffect } from 'react';
17
17
  import { Swiper, GetSwipeHandler, Swipe } from '@kolserdav/swiper';
18
- import '@kolserdav/swiper/dist/index.css';
18
+ import '@kolserdav/swiper/dist/styles.css';
19
19
 
20
20
  const COUNT = 4;
21
21
 
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@kolserdav/swiper",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Simple and powerfull react swiper component",
5
5
  "author": "kolserdav",
6
6
  "license": "MIT",
7
7
  "repository": "https://github.com/kolserdav/react-swiper",
8
8
  "main": "dist/index.js",
9
- "module": "dist/index.modern.js",
10
9
  "source": "src/package/index.tsx",
11
10
  "engines": {
12
11
  "node": ">=10"
@@ -21,12 +20,12 @@
21
20
  "scripts": {
22
21
  "start": "react-scripts start",
23
22
  "dev": "npm run start",
24
- "build": "webpack --env NODE_ENV=production",
23
+ "compile": "webpack --env NODE_ENV=production",
24
+ "build": "npm run compile && react-scripts build",
25
25
  "test:lint": "eslint .",
26
26
  "test:unit": "cross-env CI=1 react-scripts test --env=jsdom ",
27
27
  "test:watch": "react-scripts test --env=jsdom",
28
- "predeploy": "cd example && npm install && npm run build",
29
- "deploy": "fhead && gh-pages -d example/build"
28
+ "deploy": "gh-pages -d build"
30
29
  },
31
30
  "devDependencies": {
32
31
  "@testing-library/jest-dom": "^4.2.4",