-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dev): build dev preview site on build
- Loading branch information
Showing
9 changed files
with
88 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ | |
"version": "4.1.0", | ||
"description": "React Image is an <img> tag replacement for react, featuring preloader and multiple image fallback support", | ||
"scripts": { | ||
"build": "npm run build:types && node build.js", | ||
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly", | ||
"build": "node build.js && npm run build:types && mv dist/src/*.d.ts dist", | ||
"build:types": "tsc -p tsconfig.json", | ||
"codecov": "codecov", | ||
"dev": "node --watch dev/index.js", | ||
"dev": "NODE_ENV=development node --watch build.js", | ||
"pretty": "prettier \"**/*.{?(cj|mj|t|j)s?(on|on5|x),y?(a)ml,graphql,md,css}\" --write", | ||
"isNewerThanPublished": "semver `npm -s view $npm_package_name dist-tags.${TAG:-latest}` --range \"<$npm_package_version\" > /dev/null && echo true || echo false", | ||
"test": "jest", | ||
|
@@ -46,7 +46,7 @@ | |
], | ||
"module": "dist/esm/index.js", | ||
"main": "dist/cjs/index.js", | ||
"types": "react-image.d.ts", | ||
"types": "dist/index.d.ts", | ||
"type": "module", | ||
"author": "[email protected]", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Img, {ImgProps} from './Img' | ||
import useImage, {useImageProps} from './useImage' | ||
export {Img, useImage, ImgProps, useImageProps} | ||
export {Img, useImage, type ImgProps, type useImageProps} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters