Skip to content

Commit

Permalink
Fix build scripts on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Feb 23, 2021
1 parent a7c1718 commit c4772f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ module.exports = {
build: {
description: 'clean dist directory and run all builds',
default: series(rimraf('dist'), rimraf('lib'), concurrent.nps('build.rollup', 'build.babel')),
rollup: 'rollup --config',
babel: 'babel src -d lib',
watch: 'babel src -d lib -w',
rollup: 'cross-env rollup --config',
babel: 'cross-env babel src -d lib',
watch: 'cross-env babel src -d lib -w',
docs: series(rimraf('docs/dist'), 'webpack --progress -p'),
},
publish: {
default: series('nps build.docs', 'gh-pages -d docs/dist', rimraf('docs/dist')),
default: series('nps build.docs', 'cross-env gh-pages -d docs/dist', rimraf('docs/dist')),
},
},
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-images",
"version": "1.2.0-beta.5",
"version": "1.2.0-beta.6",
"description": "A mobile-friendly, highly customizable, carousel component for displaying media in ReactJS",
"main": "lib/index.js",
"jsnext:main": "dist/react-images.es.js",
Expand Down Expand Up @@ -85,13 +85,13 @@
"build": "nps build",
"watch": "nps build.watch",
"delete": "rm -rf node_modules",
"lint": "eslint .",
"lint": "cross-env eslint .",
"deploy": "cross-env NODE_ENV=production nps publish",
"start": "webpack-dev-server --progress",
"precommit": "flow check && lint-staged",
"start": "cross-env webpack-dev-server --progress",
"precommit": "cross-env flow check && lint-staged",
"prepublishOnly": "yarn lint && yarn format && nps build",
"format": "prettier --write \"**/*.{js,ts,jsx,tsx,json,yml,md}\"",
"format:check": "prettier --check \"**/*.{js,ts,jsx,tsx,json,yml,md}\""
"format": "cross-env prettier --write \"**/*.{js,ts,jsx,tsx,json,yml,md}\"",
"format:check": "cross-env prettier --check \"**/*.{js,ts,jsx,tsx,json,yml,md}\""
},
"files": [
"dist",
Expand Down

0 comments on commit c4772f6

Please sign in to comment.