Skip to content

Commit

Permalink
Merge pull request #16 from purduehackers/preact-support
Browse files Browse the repository at this point in the history
Add Preact support
  • Loading branch information
MatthewStanciu authored Dec 13, 2023
2 parents d2cd250 + e202444 commit 4860c7e
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 3,984 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
node_modules
*.tgz
pnpm-lock.yaml
19 changes: 15 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@purduehackers/time",
"version": "0.6.14",
"version": "0.6.13",
"description": "convert between traditional time and lightning time ⚡️",
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand All @@ -16,6 +16,11 @@
"types": "./dist/react.d.ts",
"import": "./dist/esm/react.js",
"require": "./dist/react.js"
},
"./preact": {
"types": "./dist/preact.d.ts",
"import": "./dist/esm/preact.js",
"require": "./dist/preact.js"
}
},
"scripts": {
Expand All @@ -33,7 +38,8 @@
},
"files": [
"dist",
"react"
"react",
"preact"
],
"keywords": [
"lightning",
Expand All @@ -52,6 +58,7 @@
"dependencies": {
"@types/react": "^18.2.22",
"date-fns": "^2.30.0",
"preact": "^10.19.3",
"react": "^18.2.0",
"rgb-hex": "3.0.0"
},
Expand All @@ -71,14 +78,18 @@
"typescript": "^5.3.3"
},
"peerDependencies": {
"react": ">=17.0.0",
"@types/react": ">=17.0.0",
"date-fns": ">=2.0.0"
"date-fns": ">=2.0.0",
"react": ">=17.0.0",
"preact": ">=10.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"preact": {
"optional": true
},
"@types/react": {
"optional": true
}
Expand Down
Loading

0 comments on commit 4860c7e

Please sign in to comment.