Skip to content

Commit

Permalink
fix(build): fix build script config
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Feb 25, 2024
1 parent b70c592 commit e258869
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mutability",
"version": "0.3.1",
"version": "0.3.2",
"description": "A JavaScript library for transactional mutable updates",
"main": "dist/index.cjs.js",
"unpkg": "dist/index.umd.js",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as mutative from 'mutative';
import { create } from 'mutative';
import { apply } from './apply';

/**
* Transactional updates to the base state with the recipe.
*/
export const mutate = <T>(baseState: T, recipe: (state: T) => void) => {
const [, patches] = mutative.create(baseState, recipe, {
const [, patches] = create(baseState, recipe, {
enablePatches: true,
});
apply(baseState, patches);
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "ES6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"target": "es2015" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
"module": "es2015" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"lib": [
"ES2019",
"DOM"
Expand Down Expand Up @@ -42,7 +42,7 @@
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */

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

0 comments on commit e258869

Please sign in to comment.