Skip to content

Commit 2e0bee7

Browse files
chore: rollup to esbuild w/ tsup
1 parent a1938ba commit 2e0bee7

39 files changed

+440
-437
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [formkit]

.github/workflows/release.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: lts/*
21+
22+
- run: npx changelogithub
23+
env:
24+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# Tempo
44

5-
Tempo takes the pain out of dates in JavaScript by allowing you to parse, manipulate, format, and internationalize dates and times using JavaScript’s native `Intl.DateTimeFormat`.
5+
Tempo is a new library in a proud tradition of JavaScript date and time libraries. Inspired by the likes of moment.js, day.js, and date-fns Tempo is built from the ground up to be as small and easy to use as possible.
66

7-
[read the docs](https://tempo.formkit.com)
7+
Tempo is best thought of as a collection of utilities for working with `Date` objects — an important distinction from other libraries that provide custom date primitives. Under the hood, Tempo mines JavaScript's `Intl.DateTimeFormat` to extract complex data like timezones offsets and locale aware date formats giving you a simple API to format, parse, and manipulates dates.
8+
9+
[Read the docs](https://tempo.formkit.com)

build.ts

-74
This file was deleted.

package.json

+19-14
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
{
22
"name": "@formkit/tempo",
3-
"version": "0.1.0",
4-
"description": "📆 Parse, format, manipulate, and internationalize dates and times in JavaScript and TypeScript.",
5-
"main": "index.js",
6-
"types": "dist/index.d.ts",
3+
"version": "0.0.0",
4+
"description": "The easiest way to work with dates in JavaScript and TypeScript.",
5+
"type": "module",
6+
"main": "dist/index.cjs",
7+
"types": "dist/index.d.cts",
78
"exports": {
89
".": {
910
"import": {
1011
"types": "./dist/index.d.ts",
1112
"default": "./dist/index.mjs"
13+
},
14+
"require": {
15+
"types": "./dist/index.d.cts",
16+
"default": "./dist/index.cjs"
1217
}
1318
}
1419
},
1520
"scripts": {
1621
"dev": "cd ./docs && pnpm nuxt dev",
17-
"build": "jiti build.ts",
22+
"build": "tsup",
1823
"test": "TZ=\"America/New_York\" vitest",
19-
"docs-build": "cd ./docs && pnpm run build"
24+
"docs-build": "cd ./docs && pnpm run build",
25+
"publint": "publint",
26+
"release": "pnpm build && bumpp && pnpm publish"
2027
},
28+
"files": [
29+
"dist"
30+
],
2131
"keywords": [
2232
"date",
2333
"time",
@@ -27,15 +37,10 @@
2737
"author": "Justin Schroeder <justin@formkit.com>",
2838
"license": "MIT",
2939
"devDependencies": {
30-
"@rollup/plugin-terser": "^0.4.4",
31-
"@rollup/plugin-typescript": "^11.1.6",
3240
"@types/node": "^20.11.10",
33-
"consola": "^3.2.3",
34-
"execa": "^7.2.0",
35-
"jiti": "^1.21.0",
36-
"rollup": "^3.29.4",
37-
"shx": "^0.3.4",
38-
"tslib": "^2.6.2",
41+
"bumpp": "^9.3.0",
42+
"publint": "^0.2.7",
43+
"tsup": "^8.0.1",
3944
"typescript": "^5.3.3",
4045
"vitest": "^1.2.1"
4146
}

0 commit comments

Comments
 (0)