Skip to content

Commit e3bac14

Browse files
committed
pkg.json: use standard field order. Use standard gitignore.
1 parent 110ab38 commit e3bac14

4 files changed

Lines changed: 31 additions & 36 deletions

File tree

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
node_modules
2-
/lib
3-
*.js
2+
*.tgz
3+
/*.js
4+
*.js.map
45
*.d.ts
56
*.d.ts.map
6-
*.js.map
77
/test/build
8-
/test/.parcel-cache
8+
/test/compiled

package-lock.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,28 @@
33
"version": "0.1.0",
44
"description": "Wrappers for built-in Web Workers enabling easy parallel data processing",
55
"files": [
6-
"lib",
6+
"*.js",
7+
"*.js.map",
8+
"*.d.ts",
9+
"*.d.ts.map",
710
"src"
811
],
9-
"type": "module",
10-
"main": "./lib/index.js",
11-
"module": "./lib/index.js",
12-
"types": "./lib/index.d.ts",
1312
"exports": {
1413
".": {
15-
"types": "./lib/index.d.ts",
16-
"bun": "./lib/index.js",
17-
"deno": "./lib/index.js",
14+
"types": "./index.d.ts",
15+
"bun": "./index.js",
16+
"deno": "./index.js",
1817
"node": {
19-
"import": "./lib/index-node.js",
20-
"default": "./lib/index-node.js"
18+
"import": "./index-node.js",
19+
"default": "./index-node.js"
2120
},
22-
"import": "./lib/index.js",
23-
"default": "./lib/index.js"
21+
"import": "./index.js",
22+
"default": "./index.js"
2423
},
2524
"./utils.js": {
26-
"types": "./lib/utils.d.ts",
27-
"import": "./lib/utils.js",
28-
"default": "./lib/utils.js"
25+
"types": "./utils.d.ts",
26+
"import": "./utils.js",
27+
"default": "./utils.js"
2928
}
3029
},
3130
"devDependencies": {
@@ -35,17 +34,9 @@
3534
"prettier": "3.6.2",
3635
"typescript": "5.9.2"
3736
},
38-
"sideEffects": false,
39-
"author": "Paul Miller (https://paulmillr.com)",
40-
"license": "MIT",
41-
"homepage": "https://github.com/paulmillr/micro-wrkr",
42-
"repository": {
43-
"type": "git",
44-
"url": "git+https://github.com/paulmillr/micro-wrkr.git"
45-
},
4637
"scripts": {
4738
"build": "tsc",
48-
"build:release": "npx --no @paulmillr/jsbt esbuild test/build",
39+
"build:clean": "rm *.{js,js.map,d.ts,d.ts.map} 2> /dev/null",
4940
"lint": "prettier --check src",
5041
"format": "prettier --write src",
5142
"test": "cd test; npm run build:install; node test-node.js",
@@ -62,5 +53,15 @@
6253
"concurrent",
6354
"cluster"
6455
],
65-
"funding": "https://paulmillr.com/funding/"
56+
"repository": {
57+
"type": "git",
58+
"url": "git+https://github.com/paulmillr/micro-wrkr.git"
59+
},
60+
"type": "module",
61+
"main": "index.js",
62+
"module": "index.js",
63+
"types": "index.d.ts",
64+
"sideEffects": false,
65+
"author": "Paul Miller (https://paulmillr.com)",
66+
"license": "MIT"
6667
}

test/package-lock.json

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)