@choksheak/ts-utils 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +4 -2
  2. package/tsup.config.ts +7 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@choksheak/ts-utils",
3
3
  "license": "The Unlicense",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "Random Typescript utilities with support for full tree-shaking",
6
6
  "private": false,
7
7
  "scripts": {
@@ -9,7 +9,8 @@
9
9
  "format": "prettier --write \"**/*.{js,ts}\"",
10
10
  "test": "jest",
11
11
  "test:watch": "jest --watch",
12
- "pub": "npm publish --access=public"
12
+ "build": "tsup src/*",
13
+ "pub": "npm run build && npm publish --access=public"
13
14
  },
14
15
  "devDependencies": {
15
16
  "@eslint/js": "^9.14.0",
@@ -24,6 +25,7 @@
24
25
  "prettier": "^3.3.3",
25
26
  "ts-jest": "^29.2.5",
26
27
  "ts-node": "^10.9.2",
28
+ "tsup": "^8.3.5",
27
29
  "typescript": "^5.4.5",
28
30
  "typescript-eslint": "^8.13.0"
29
31
  }
package/tsup.config.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from "tsup";
2
+
3
+ export default defineConfig({
4
+ splitting: false,
5
+ sourcemap: true,
6
+ clean: true,
7
+ });