Skip to content

Commit 3263e1b

Browse files
committed
Fix output file naming from TSDX
1 parent 9216939 commit 3263e1b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
"version": "1.0.3",
44
"description": "The official, opinionated, batteries-included toolset for efficient Redux development",
55
"repository": "https://github.com/reduxjs/redux-toolkit",
6+
"keywords": [
7+
"redux",
8+
"react",
9+
"starter",
10+
"toolkit",
11+
"reducer",
12+
"slice",
13+
"immer",
14+
"immutable"
15+
],
616
"publishConfig": {
717
"access": "public"
818
},
@@ -26,7 +36,7 @@
2636
"typings-tester": "^0.3.2"
2737
},
2838
"scripts": {
29-
"build": "tsdx build --format cjs,esm,umd",
39+
"build": "tsdx build --format cjs,esm,umd --name redux-toolkit",
3040
"dev": "tsdx watch --format cjs,esm,umd",
3141
"format": "prettier --write \"src/*.ts\" \"**/*.md\"",
3242
"format:check": "prettier --list-different \"src/*.ts\" \"**/*.md\"",

tsdx.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ const pkg = require('./package.json')
88
module.exports = {
99
rollup(config, options) {
1010
config.output.name = 'RTK'
11+
1112
const { env, format } = options
1213
// eslint-disable-next-line default-case
1314
switch (format) {
1415
case 'umd':
1516
delete config.external
16-
//console.log(config)
1717
config.output.indent = false
1818
config.plugins.push(
1919
replace({

0 commit comments

Comments
 (0)