Skip to content

Commit e258869

Browse files
committed
fix(build): fix build script config
1 parent b70c592 commit e258869

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mutability",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "A JavaScript library for transactional mutable updates",
55
"main": "dist/index.cjs.js",
66
"unpkg": "dist/index.umd.js",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import * as mutative from 'mutative';
1+
import { create } from 'mutative';
22
import { apply } from './apply';
33

44
/**
55
* Transactional updates to the base state with the recipe.
66
*/
77
export const mutate = <T>(baseState: T, recipe: (state: T) => void) => {
8-
const [, patches] = mutative.create(baseState, recipe, {
8+
const [, patches] = create(baseState, recipe, {
99
enablePatches: true,
1010
});
1111
apply(baseState, patches);

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"compilerOptions": {
33
/* Basic Options */
44
// "incremental": true, /* Enable incremental compilation */
5-
"target": "ES6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
6-
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
5+
"target": "es2015" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
6+
"module": "es2015" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
77
"lib": [
88
"ES2019",
99
"DOM"
@@ -42,7 +42,7 @@
4242
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4343

4444
/* Module Resolution Options */
45-
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
45+
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
4646
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
4747
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
4848
"rootDirs": [

0 commit comments

Comments
 (0)