Skip to content

Commit

Permalink
attempt2
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Apr 5, 2023
1 parent 931f963 commit aa0e5ee
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 115 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict"

import {measure} from "./measure.js"
import {produce, setAutoFreeze} from "../dist/immer.esm.js"
import {measure} from "./measure.mjs"
import {produce, setAutoFreeze} from "../dist/immer.mjs"
import cloneDeep from "lodash.clonedeep"
import immutable from "immutable"
const {fromJS} = immutable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"
import {measure} from "./measure.js"
import {produce, setAutoFreeze} from "../dist/immer.esm.js"
import {measure} from "./measure.mjs"
import {produce, setAutoFreeze} from "../dist/immer.mjs"
import cloneDeep from "lodash.clonedeep"
import Immutable from "immutable"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {measure} from "./measure.js"
import {measure} from "./measure.mjs"
import {
produce,
setUseStrictShallowCopy
} from "../dist/immer.esm.js"
} from "../dist/immer.mjs"

console.log("\n# large-obj - mutate large object\n")

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
"use strict"

import {measure} from "./measure.js"
import {measure} from "./measure.mjs"
import {
enablePatches,
produce,
setAutoFreeze
} from "../dist/immer.esm.js"
} from "../dist/immer.mjs"
import cloneDeep from "lodash.clonedeep"
import immutable from "immutable"
import Seamless from "seamless-immutable"
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"sideEffects": false,
"scripts": {
"test": "jest && yarn test:build && yarn test:flow",
"test:perf": "cd __performance_tests__ && babel-node add-data.js && babel-node todo.js && babel-node incremental.js && babel-node large-obj.js",
"test:perf": "cd __performance_tests__ && node add-data.mjs && node todo.mjs && node incremental.mjs && node large-obj.mjs",
"test:flow": "yarn flow check __tests__/flow",
"test:build": "yarn build && NODE_ENV='production' yarn jest --config jest.config.build.js",
"watch": "jest --watch",
Expand Down Expand Up @@ -65,7 +65,6 @@
],
"devDependencies": {
"@babel/core": "^7.21.3",
"@babel/node": "^7.20.7",
"@types/jest": "^25.1.2",
"coveralls": "^3.0.0",
"cpx2": "^3.0.0",
Expand Down
Loading

0 comments on commit aa0e5ee

Please sign in to comment.