Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Add typescript declarations #5

Merged
Merged
Changes from 1 commit
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
Prev Previous commit
feat: add copy command to copy types to dist folder
  • Loading branch information
RodolfoSilva committed Jan 31, 2021
commit bf66aaa612f031d1c8ad8d1606e9bc6d38e587fe
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"repository": "jrgarciadev/react-iconly",
"main": "dist/index.js",
"module": "dist/index.modern.js",
"types": "react-iconly.d.ts",
"types": "dist/react-iconly.d.ts",
"source": "src/index.js",
"sideEffects": false,
"engines": {
Expand All @@ -27,8 +27,9 @@
"design"
],
"scripts": {
"build": "microbundle-crl --compress --strict --format modern,cjs",
"build": "microbundle-crl --compress --strict --format modern,cjs && yarn copytypes",
"start": "microbundle-crl watch --no-compress --format modern,cjs",
"copytypes": "cp react-iconly.d.ts dist/react-iconly.d.ts",
"prepare": "run-s build",
"test": "run-s test:unit test:lint test:build",
"test:build": "run-s build",
Expand Down