Skip to content

Commit 89a7351

Browse files
committed
simplify output bundle for developers
1 parent 175791e commit 89a7351

File tree

4 files changed

+250
-784
lines changed

4 files changed

+250
-784
lines changed

.sizesnap.json

+1-17
Original file line numberDiff line numberDiff line change
@@ -1,17 +1 @@
1-
{
2-
"dist/index.cjs": {
3-
"size": "1.019KB",
4-
"brotli": "426B",
5-
"gzip": "488B"
6-
},
7-
"dist/index.d.ts": {
8-
"size": "328B",
9-
"brotli": "155B",
10-
"gzip": "187B"
11-
},
12-
"dist/index.mjs": {
13-
"size": "906B",
14-
"brotli": "385B",
15-
"gzip": "422B"
16-
}
17-
}
1+
{}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# make-tints
22

33
[![NPM version](https://img.shields.io/npm/v/make-tints?color=a1b858&label=)](https://www.npmjs.com/package/make-tints)
4-
54
[![CI](https://github.com/barelyhuman/make-tints/actions/workflows/ci.yml/badge.svg)](https://github.com/barelyhuman/make-tints/actions/workflows/ci.yml)
5+
[![install size](https://packagephobia.com/badge?p=make-tints)](https://packagephobia.com/result?p=make-tints)
66

77
## Install
88

package.json

+13-10
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"author": "Reaper <[email protected]>",
1818
"repository": "git+https://github.com/barelyhuman/make-tints.git",
1919
"funding": "https://github.com/sponsors/barelyhuman",
20-
"main": "./dist/index.cjs",
21-
"module": "./dist/index.mjs",
22-
"types": "./dist/index.d.ts",
20+
"main": "./index.cjs",
21+
"module": "./index.mjs",
22+
"types": "./index.d.ts",
2323
"exports": {
2424
".": {
25-
"require": "./dist/index.cjs",
26-
"import": "./dist/index.mjs",
27-
"types": "./dist/index.d.ts"
25+
"require": "./index.cjs",
26+
"import": "./index.mjs",
27+
"types": "./index.d.ts"
2828
}
2929
},
3030
"files": [
@@ -34,24 +34,25 @@
3434
"typesVersions": {
3535
"*": {
3636
"*": [
37-
"./dist/*",
38-
"./dist/index.d.ts"
37+
"./*",
38+
"./index.d.ts"
3939
]
4040
}
4141
},
4242
"directories": {
4343
"test": "test"
4444
},
4545
"scripts": {
46-
"build": "rimraf dist && unbuild && nr size",
46+
"build": "rimraf dist; unbuild; nr size; nr copy",
4747
"dev": "unbuild --stub",
4848
"prepublishOnly": "nr build",
4949
"release": "bumpp --commit --push --tag && pnpm publish",
5050
"start": "esno src/index.ts",
5151
"test": "vitest",
5252
"size": "sizesnap",
5353
"fix": "prettier --write .",
54-
"typecheck": "tsc --noEmit"
54+
"typecheck": "tsc --noEmit",
55+
"copy": "shx cp package.json README.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.prettier=undefined; this.jest=undefined;this.directories=undefined;this.sizesnap=undefined\""
5556
},
5657
"prettier": "@barelyhuman/prettier-config",
5758
"dependencies": {
@@ -69,9 +70,11 @@
6970
"@types/node": "^17.0.23",
7071
"bumpp": "^7.1.1",
7172
"esno": "^0.14.1",
73+
"json": "^11.0.0",
7274
"pnpm": "^6.32.3",
7375
"prettier": "^2.6.2",
7476
"rimraf": "^3.0.2",
77+
"shx": "^0.3.4",
7578
"sizesnap": "^0.1.1",
7679
"typescript": "^4.6.2",
7780
"unbuild": "^0.7.0",

0 commit comments

Comments
 (0)