Skip to content

Commit

Permalink
chore(build): add tsup (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnk authored Dec 9, 2024
1 parent d73c412 commit de67e71
Show file tree
Hide file tree
Showing 5 changed files with 707 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ jobs:

- name: Build project
run: pnpm run build

- name: Release a nightly build
run: pnpx pkg-pr-new publish
21 changes: 18 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "gridplus-sdk",
"version": "3.1.1",
"type": "module",
"description": "SDK to interact with GridPlus Lattice1 device",
"scripts": {
"build": "NODE_ENV=production tsc -p tsconfig.json",
"build": "tsup",
"commit": "git-cz",
"lint:fix": "eslint src --c .ts,.tsx --config eslint.config.mjs --fix",
"lint": "eslint src --c .ts,.tsx --config eslint.config.mjs",
Expand Down Expand Up @@ -37,8 +38,21 @@
"files": [
"dist"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"types": "./dist/index.d.cts",
"repository": {
"type": "git",
"url": "https://github.com/GridPlus/gridplus-sdk.git"
Expand Down Expand Up @@ -101,6 +115,7 @@
"random-words": "^2.0.1",
"readline-sync": "^1.4.10",
"seedrandom": "^3.0.5",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"vite": "^5.4.9",
"vite-plugin-dts": "^4.3.0",
Expand Down
Loading

0 comments on commit de67e71

Please sign in to comment.