Skip to content

Commit d44e834

Browse files
committed
Revert "Generate TypeScript declaration files in dist/"
This reverts commit e449c8a.
1 parent e449c8a commit d44e834

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ export {
1414
configureStore,
1515
ConfigureStoreOptions,
1616
getDefaultMiddleware
17-
} from './dist/configureStore'
17+
} from './src/configureStore'
1818
export {
1919
createAction,
2020
getType,
2121
PayloadAction,
2222
PayloadActionCreator
23-
} from './dist/createAction'
24-
export { createReducer } from './dist/createReducer'
25-
export { createSlice, CreateSliceOptions, Slice } from './dist/createSlice'
23+
} from './src/createAction'
24+
export { createReducer } from './src/createReducer'
25+
export { createSlice, CreateSliceOptions, Slice } from './src/createSlice'
2626
export {
2727
default as createSerializableStateInvariantMiddleware,
2828
isPlain
29-
} from './dist/serializableStateInvariantMiddleware'
29+
} from './src/serializableStateInvariantMiddleware'

package-lock.json

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

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"eslint-plugin-react": "^7.6.1",
2626
"jest": "^22.4.2",
2727
"prettier": "^1.10.2",
28-
"rimraf": "^2.6.3",
2928
"rollup": "^1.0.2",
3029
"rollup-plugin-babel": "^4.2.0",
3130
"rollup-plugin-commonjs": "^9.2.0",
@@ -40,10 +39,9 @@
4039
"format": "prettier --write \"src/*.ts\" \"**/*.md\"",
4140
"format:check": "prettier --list-different \"src/*.ts\" \"**/*.md\"",
4241
"lint": "eslint 'src/**/*.ts'",
43-
"prepare": "npm run tsc && npm run lint && npm test && npm run build && npm run tsc:declarations",
42+
"prepare": "npm run tsc && npm run lint && npm test && npm run build",
4443
"test": "jest",
45-
"tsc": "tsc --noEmit",
46-
"tsc:declarations": "tsc -d --emitDeclarationOnly && rimraf 'dist/*.test.d.ts'"
44+
"tsc": "tsc"
4745
},
4846
"files": [
4947
"dist",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"esModuleInterop": true,
55
"module": "es2015",
66
"moduleResolution": "node",
7-
"outDir": "dist",
7+
"noEmit": true,
88
"noUnusedLocals": true,
99
"noUnusedParameters": true,
1010
"strict": true,

0 commit comments

Comments
 (0)