Skip to content

Commit

Permalink
feat: expose types without build steps and switch to vitest (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyf0 authored May 17, 2024
1 parent 97a8421 commit 4509f5d
Show file tree
Hide file tree
Showing 7 changed files with 2,202 additions and 853 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:
strategy:
matrix:
node: [18.x, 20.x]
# os: [ubuntu-latest, windows-latest, macos-latest]
# FIXME: Ignore windows. https://github.com/hyf0/starter-libesm/issues/2
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false

steps:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# [starter-libesm](https://github.com/hyf0/starter-libesm)

Pure ESM library starter in JavaScript with type checking!
Pure ESM library starter in JavaScript with type checking and no build steps!

- Ship ESM only
- No build steps
- Only JavaScript
- With type checking
- Strong type checking still
- Generate [documentation](https://hyf0.github.io/starter-libesm/) automatically by [TypeDoc](https://github.com/TypeStrong/typedoc)
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/index.js'
28 changes: 18 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
{
"name": "starter-libesm",
"version": "0.0.1",
"description": "Pure ESM library starter in JavaScript with type checking!",
"type": "module",
"exports": "./src/index.js",
"version": "0.0.0",
"description": "Pure ESM library starter in JavaScript with type checking!",
"license": "MIT",
"keywords": [],
"packageManager": "pnpm@8.0.0",
"engines": {
"pnpm": ">=8.0.0"
"author": "__author__",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./src/index.js",
"default": "./src/index.js"
}
},
"author": "",
"files": [
"src",
"index.d.ts"
],
"keywords": [],
"packageManager": "pnpm@9.1.0",
"scripts": {
"test": "node --test tests/*.js",
"test": "vitest --run",
"type-check": "tsc --noEmit",
"doc:build": "typedoc src/index.js",
"doc:serve": "serve ./docs",
Expand All @@ -23,6 +30,7 @@
"npm-run-all": "^4.1.5",
"serve": "^14.2.0",
"typedoc": "^0.24.6",
"typescript": "^5.0.4"
"typescript": "^5.4.5",
"vitest": "^1.6.0"
}
}
Loading

0 comments on commit 4509f5d

Please sign in to comment.