Skip to content

Commit 1bcd62f

Browse files
committed
Bring back publishing on npm
1 parent cfcdcec commit 1bcd62f

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
22
sandbox/
3+
dist/

bun.lockb

41 KB
Binary file not shown.

package.json

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,48 @@
11
{
22
"name": "@dovca/toolbox",
3-
"version": "0.0.0",
4-
"description": "A set of general-purpose typescript functions for common tasks..",
3+
"version": "0.0.24",
4+
"description": "A set of general-purpose typescript functions for common tasks.",
5+
"author": "[email protected]",
6+
"homepage": "https://github.com/dovca/toolbox",
7+
"license": "LGPL-3.0-or-later",
8+
"type": "module",
9+
"packageManager": "bun",
10+
"main": "./dist/index.js",
11+
"module": "./dist/index.mjs",
12+
"types": "./dist/index.d.ts",
513
"directories": {
614
"lib": "src",
715
"test": "test"
816
},
9-
"type": "module",
10-
"homepage": "https://github.com/dovca/toolbox",
11-
"packageManager": "bun",
1217
"scripts": {
18+
"build": "tsup",
1319
"test": "bun test --bail",
14-
"generate-barrels": "barrelsby --delete -d ./src"
20+
"generate-barrels": "barrelsby --delete -d ./src",
21+
"prepublishOnly": "bun run build"
22+
},
23+
"files": [
24+
"dist"
25+
],
26+
"tsup": {
27+
"entry": [
28+
"src/index.ts"
29+
],
30+
"sourcemap": true,
31+
"clean": true,
32+
"minify": true,
33+
"format": [
34+
"cjs",
35+
"esm"
36+
],
37+
"dts": true
1538
},
16-
"author": "[email protected]",
17-
"license": "LGPL-3.0-or-later",
1839
"devDependencies": {
1940
"@types/bun": "^1.0.2",
2041
"barrelsby": "^2.8.1",
2142
"bun": "^1.0.23",
2243
"eslint": "^9.2.0",
2344
"husky": "^9.0.10",
45+
"tsup": "^8.2.4",
2446
"typescript": "latest",
2547
"typescript-eslint": "^7.8.0"
2648
},

0 commit comments

Comments
 (0)