diff --git a/config/createRollupConfig.js b/config/createRollupConfig.js index 986625fec..e03bb3508 100644 --- a/config/createRollupConfig.js +++ b/config/createRollupConfig.js @@ -7,7 +7,7 @@ const {resolve} = require('path'); */ module.exports = function createRollupConfig(path) { return { - input: resolve(path, './index.js'), + input: resolve(path, './index.cjs'), output: { file: resolve(path, './index.mjs'), format: 'esm', diff --git a/package.json b/package.json index 53d84086c..9855db389 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "just", "version": "1.22.4", "description": "A library of simple dependency-free utilities that do just do one thing", - "main": "index.js", + "main": "index.cjs", "directories": { "test": "test" }, @@ -21,7 +21,7 @@ "scripts": { "build": "lerna run build --stream $@", "lint": "eslint --max-warnings=0 --ext=mjs,js .", - "test": "npm run lint && tape ./test/**/index.js | tap-spec && npm run test-types", + "test": "npm run lint && tape ./test/**/index.cjs | tap-spec && npm run test-types", "test-types": "tsc", "generate-readmes": "node scripts/generate-readmes.js" }, diff --git a/packages/array-cartesian-product/index.js b/packages/array-cartesian-product/index.cjs similarity index 100% rename from packages/array-cartesian-product/index.js rename to packages/array-cartesian-product/index.cjs diff --git a/packages/array-cartesian-product/package.json b/packages/array-cartesian-product/package.json index eeeffa68a..5901b8196 100644 --- a/packages/array-cartesian-product/package.json +++ b/packages/array-cartesian-product/package.json @@ -2,16 +2,16 @@ "name": "just-cartesian-product", "version": "4.1.1", "description": "Cartesian product of arrays", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-compact/index.js b/packages/array-compact/index.cjs similarity index 100% rename from packages/array-compact/index.js rename to packages/array-compact/index.cjs diff --git a/packages/array-compact/package.json b/packages/array-compact/package.json index 07716fa97..9e6c2f3dc 100644 --- a/packages/array-compact/package.json +++ b/packages/array-compact/package.json @@ -2,16 +2,16 @@ "name": "just-compact", "version": "3.1.1", "description": "returns a copy of an array with falsey values removed", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-flatten/index.js b/packages/array-flatten/index.cjs similarity index 100% rename from packages/array-flatten/index.js rename to packages/array-flatten/index.cjs diff --git a/packages/array-flatten/package.json b/packages/array-flatten/package.json index 76b89b9b6..b27006a64 100644 --- a/packages/array-flatten/package.json +++ b/packages/array-flatten/package.json @@ -2,16 +2,16 @@ "name": "just-flatten-it", "version": "5.1.2", "description": "return a flattened array", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-group-by/index.js b/packages/array-group-by/index.cjs similarity index 100% rename from packages/array-group-by/index.js rename to packages/array-group-by/index.cjs diff --git a/packages/array-group-by/package.json b/packages/array-group-by/package.json index bffaf3c71..8abc326ab 100644 --- a/packages/array-group-by/package.json +++ b/packages/array-group-by/package.json @@ -2,16 +2,16 @@ "name": "just-group-by", "version": "2.1.2", "description": "return a grouped object from array", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-index/index.js b/packages/array-index/index.cjs similarity index 100% rename from packages/array-index/index.js rename to packages/array-index/index.cjs diff --git a/packages/array-index/package.json b/packages/array-index/package.json index e277e45a4..c3fcf666c 100644 --- a/packages/array-index/package.json +++ b/packages/array-index/package.json @@ -2,16 +2,16 @@ "name": "just-index", "version": "4.1.2", "description": "return an object from an array, keyed by the value at the given id", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-insert/index.js b/packages/array-insert/index.cjs similarity index 100% rename from packages/array-insert/index.js rename to packages/array-insert/index.cjs diff --git a/packages/array-insert/package.json b/packages/array-insert/package.json index a4f04fc49..bb046683c 100644 --- a/packages/array-insert/package.json +++ b/packages/array-insert/package.json @@ -2,16 +2,16 @@ "name": "just-insert", "version": "3.1.1", "description": "Inserts a sub-array into an array starting at the given index. Returns a copy", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-intersect/index.js b/packages/array-intersect/index.cjs similarity index 100% rename from packages/array-intersect/index.js rename to packages/array-intersect/index.cjs diff --git a/packages/array-intersect/package.json b/packages/array-intersect/package.json index dd66b8380..2f67966c9 100644 --- a/packages/array-intersect/package.json +++ b/packages/array-intersect/package.json @@ -2,16 +2,16 @@ "name": "just-intersect", "version": "4.2.1", "description": "return the intersect of two arrays", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-last/index.js b/packages/array-last/index.cjs similarity index 100% rename from packages/array-last/index.js rename to packages/array-last/index.cjs diff --git a/packages/array-last/package.json b/packages/array-last/package.json index 3fd6bf29b..fd46b77c1 100644 --- a/packages/array-last/package.json +++ b/packages/array-last/package.json @@ -2,16 +2,16 @@ "name": "just-last", "version": "3.1.1", "description": "return the last member of an array", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-mean/index.js b/packages/array-mean/index.cjs similarity index 100% rename from packages/array-mean/index.js rename to packages/array-mean/index.cjs diff --git a/packages/array-mean/package.json b/packages/array-mean/package.json index d0fef088e..013fe56a0 100644 --- a/packages/array-mean/package.json +++ b/packages/array-mean/package.json @@ -2,16 +2,16 @@ "name": "just-mean", "version": "2.1.1", "description": "the mean (average) value in an array", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-median/index.js b/packages/array-median/index.cjs similarity index 100% rename from packages/array-median/index.js rename to packages/array-median/index.cjs diff --git a/packages/array-median/package.json b/packages/array-median/package.json index d391db7bb..bd865c206 100644 --- a/packages/array-median/package.json +++ b/packages/array-median/package.json @@ -2,16 +2,16 @@ "name": "just-median", "version": "2.1.1", "description": "return the median value of an array of numbers", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-mode/index.js b/packages/array-mode/index.cjs similarity index 100% rename from packages/array-mode/index.js rename to packages/array-mode/index.cjs diff --git a/packages/array-mode/package.json b/packages/array-mode/package.json index 9f03ae33e..2558b8de1 100644 --- a/packages/array-mode/package.json +++ b/packages/array-mode/package.json @@ -2,16 +2,16 @@ "name": "just-mode", "version": "2.1.1", "description": "return the most frequently occuring number(s)", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-partition/index.js b/packages/array-partition/index.cjs similarity index 100% rename from packages/array-partition/index.js rename to packages/array-partition/index.cjs diff --git a/packages/array-partition/package.json b/packages/array-partition/package.json index 276c4ed52..958b6461f 100644 --- a/packages/array-partition/package.json +++ b/packages/array-partition/package.json @@ -2,16 +2,16 @@ "name": "just-partition", "version": "2.1.1", "description": "Elements satisfying predicate added to first array, remainder added to second", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-percentile/index.js b/packages/array-percentile/index.cjs similarity index 100% rename from packages/array-percentile/index.js rename to packages/array-percentile/index.cjs diff --git a/packages/array-percentile/package.json b/packages/array-percentile/package.json index 509a99dfa..da673ea9a 100644 --- a/packages/array-percentile/package.json +++ b/packages/array-percentile/package.json @@ -2,16 +2,16 @@ "name": "just-percentile", "version": "4.1.1", "description": "return the value at the given percentile (using linear interpolation)", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-permutations/index.js b/packages/array-permutations/index.cjs similarity index 100% rename from packages/array-permutations/index.js rename to packages/array-permutations/index.cjs diff --git a/packages/array-permutations/package.json b/packages/array-permutations/package.json index bcdfe7199..229b6cf5b 100644 --- a/packages/array-permutations/package.json +++ b/packages/array-permutations/package.json @@ -2,16 +2,16 @@ "name": "just-permutations", "version": "2.1.1", "description": "Returns all permutations of the length N of the elements of the given Array", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-random/index.js b/packages/array-random/index.cjs similarity index 100% rename from packages/array-random/index.js rename to packages/array-random/index.cjs diff --git a/packages/array-random/package.json b/packages/array-random/package.json index ea88fddfd..6992c93ce 100644 --- a/packages/array-random/package.json +++ b/packages/array-random/package.json @@ -2,16 +2,16 @@ "name": "just-random", "version": "3.1.1", "description": "return a randomly selected element in an array", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-range/index.js b/packages/array-range/index.cjs similarity index 100% rename from packages/array-range/index.js rename to packages/array-range/index.cjs diff --git a/packages/array-range/package.json b/packages/array-range/package.json index cca6a439c..73fe75503 100644 --- a/packages/array-range/package.json +++ b/packages/array-range/package.json @@ -2,16 +2,16 @@ "name": "just-range", "version": "4.1.1", "description": "Generate a range array for numbers", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-remove/index.js b/packages/array-remove/index.cjs similarity index 100% rename from packages/array-remove/index.js rename to packages/array-remove/index.cjs diff --git a/packages/array-remove/package.json b/packages/array-remove/package.json index 528143b2a..5e34e8e14 100644 --- a/packages/array-remove/package.json +++ b/packages/array-remove/package.json @@ -2,16 +2,16 @@ "name": "just-remove", "version": "3.1.1", "description": "removes one array from another", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-shuffle/index.js b/packages/array-shuffle/index.cjs similarity index 100% rename from packages/array-shuffle/index.js rename to packages/array-shuffle/index.cjs diff --git a/packages/array-shuffle/package.json b/packages/array-shuffle/package.json index 82c562798..4670d93c9 100644 --- a/packages/array-shuffle/package.json +++ b/packages/array-shuffle/package.json @@ -2,16 +2,16 @@ "name": "just-shuffle", "version": "4.1.1", "description": "return the elements of an array in random order", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-skewness/index.js b/packages/array-skewness/index.cjs similarity index 100% rename from packages/array-skewness/index.js rename to packages/array-skewness/index.cjs diff --git a/packages/array-skewness/package.json b/packages/array-skewness/package.json index fd18a1eb5..c4e3e3ed5 100644 --- a/packages/array-skewness/package.json +++ b/packages/array-skewness/package.json @@ -2,16 +2,16 @@ "name": "just-skewness", "version": "2.1.1", "description": "return the skewness of an array or numeric argument list using Pearson's second skewness coefficient", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-sort-by/index.js b/packages/array-sort-by/index.cjs similarity index 100% rename from packages/array-sort-by/index.js rename to packages/array-sort-by/index.cjs diff --git a/packages/array-sort-by/package.json b/packages/array-sort-by/package.json index 803e1caec..b2557a9b9 100644 --- a/packages/array-sort-by/package.json +++ b/packages/array-sort-by/package.json @@ -2,16 +2,16 @@ "name": "just-sort-by", "version": "3.1.1", "description": "Produces a new array, sorted in ascending order", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-split-at/index.js b/packages/array-split-at/index.cjs similarity index 100% rename from packages/array-split-at/index.js rename to packages/array-split-at/index.cjs diff --git a/packages/array-split-at/package.json b/packages/array-split-at/package.json index ca34f1080..fe226d14c 100644 --- a/packages/array-split-at/package.json +++ b/packages/array-split-at/package.json @@ -2,16 +2,16 @@ "name": "just-split-at", "version": "3.1.1", "description": "splits an array into two at a given position", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-split/index.js b/packages/array-split/index.cjs similarity index 100% rename from packages/array-split/index.js rename to packages/array-split/index.cjs diff --git a/packages/array-split/package.json b/packages/array-split/package.json index 6923885fa..a9273e379 100644 --- a/packages/array-split/package.json +++ b/packages/array-split/package.json @@ -2,16 +2,16 @@ "name": "just-split", "version": "3.1.1", "description": "Splits array into groups of n items each", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-standard-deviation/index.js b/packages/array-standard-deviation/index.cjs similarity index 100% rename from packages/array-standard-deviation/index.js rename to packages/array-standard-deviation/index.cjs diff --git a/packages/array-standard-deviation/package.json b/packages/array-standard-deviation/package.json index 2263aa84b..d292678e9 100644 --- a/packages/array-standard-deviation/package.json +++ b/packages/array-standard-deviation/package.json @@ -2,16 +2,16 @@ "name": "just-standard-deviation", "version": "2.1.1", "description": "return the standard deviation of an array or numeric argument list", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-tail/index.js b/packages/array-tail/index.cjs similarity index 100% rename from packages/array-tail/index.js rename to packages/array-tail/index.cjs diff --git a/packages/array-tail/package.json b/packages/array-tail/package.json index 2da0954f0..119849245 100644 --- a/packages/array-tail/package.json +++ b/packages/array-tail/package.json @@ -2,16 +2,16 @@ "name": "just-tail", "version": "3.1.1", "description": "return all but the first element of an array", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-union/index.js b/packages/array-union/index.cjs similarity index 100% rename from packages/array-union/index.js rename to packages/array-union/index.cjs diff --git a/packages/array-union/package.json b/packages/array-union/package.json index 787992e04..8edeaf583 100644 --- a/packages/array-union/package.json +++ b/packages/array-union/package.json @@ -2,16 +2,16 @@ "name": "just-union", "version": "3.1.1", "description": "returns the union of two arrays", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-unique/index.js b/packages/array-unique/index.cjs similarity index 100% rename from packages/array-unique/index.js rename to packages/array-unique/index.cjs diff --git a/packages/array-unique/package.json b/packages/array-unique/package.json index 9df9d9d74..095639e7d 100644 --- a/packages/array-unique/package.json +++ b/packages/array-unique/package.json @@ -2,16 +2,16 @@ "name": "just-unique", "version": "4.1.1", "description": "dedupes an array", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-variance/index.js b/packages/array-variance/index.cjs similarity index 100% rename from packages/array-variance/index.js rename to packages/array-variance/index.cjs diff --git a/packages/array-variance/package.json b/packages/array-variance/package.json index ca17b68e0..6287f1f73 100644 --- a/packages/array-variance/package.json +++ b/packages/array-variance/package.json @@ -2,16 +2,16 @@ "name": "just-variance", "version": "2.1.1", "description": "return the standard deviation of an array or numeric argument list", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/array-zip/index.js b/packages/array-zip/index.cjs similarity index 100% rename from packages/array-zip/index.js rename to packages/array-zip/index.cjs diff --git a/packages/array-zip/package.json b/packages/array-zip/package.json index 066e567f5..c876e2885 100644 --- a/packages/array-zip/package.json +++ b/packages/array-zip/package.json @@ -2,16 +2,16 @@ "name": "just-zip-it", "version": "3.1.1", "description": "returns an array of grouped elements, taking n-th element from every given array", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/collection-clone/index.js b/packages/collection-clone/index.cjs similarity index 100% rename from packages/collection-clone/index.js rename to packages/collection-clone/index.cjs diff --git a/packages/collection-clone/package.json b/packages/collection-clone/package.json index abf8b058b..260e15748 100644 --- a/packages/collection-clone/package.json +++ b/packages/collection-clone/package.json @@ -2,16 +2,16 @@ "name": "just-clone", "version": "6.1.1", "description": "deep copies objects and arrays", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/collection-compare/index.js b/packages/collection-compare/index.cjs similarity index 100% rename from packages/collection-compare/index.js rename to packages/collection-compare/index.cjs diff --git a/packages/collection-compare/package.json b/packages/collection-compare/package.json index b6ec6d904..e9f082128 100644 --- a/packages/collection-compare/package.json +++ b/packages/collection-compare/package.json @@ -2,12 +2,12 @@ "name": "just-compare", "version": "2.2.2", "description": "compare two collections", - "main": "index.js", + "main": "index.cjs", "module": "index.mjs", "exports": { ".": { "types": "./index.d.ts", - "require": "./index.js", + "require": "./index.cjs", "default": "./index.mjs" }, "./package.json": "./package.json" diff --git a/packages/collection-diff-apply/index.js b/packages/collection-diff-apply/index.cjs similarity index 100% rename from packages/collection-diff-apply/index.js rename to packages/collection-diff-apply/index.cjs diff --git a/packages/collection-diff-apply/package.json b/packages/collection-diff-apply/package.json index 5317303a8..be66ae26f 100644 --- a/packages/collection-diff-apply/package.json +++ b/packages/collection-diff-apply/package.json @@ -2,16 +2,16 @@ "name": "just-diff-apply", "version": "5.4.1", "description": "Apply a diff to an object. Optionally supports jsonPatch protocol", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/collection-diff/index.js b/packages/collection-diff/index.cjs similarity index 100% rename from packages/collection-diff/index.js rename to packages/collection-diff/index.cjs diff --git a/packages/collection-diff/package.json b/packages/collection-diff/package.json index 035daf034..6013bb25d 100644 --- a/packages/collection-diff/package.json +++ b/packages/collection-diff/package.json @@ -2,16 +2,16 @@ "name": "just-diff", "version": "5.1.1", "description": "Return an object representing the diffs between two objects. Supports jsonPatch protocol", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/collection-flush/index.js b/packages/collection-flush/index.cjs similarity index 100% rename from packages/collection-flush/index.js rename to packages/collection-flush/index.cjs diff --git a/packages/collection-flush/package.json b/packages/collection-flush/package.json index f74f8922a..35c6a04c9 100644 --- a/packages/collection-flush/package.json +++ b/packages/collection-flush/package.json @@ -2,12 +2,12 @@ "name": "just-flush", "version": "2.2.1", "description": "returns a copy of an array or object with null/undefined members removed", - "main": "index.js", + "main": "index.cjs", "types": "index.d.ts", "module": "index.mjs", "exports": { ".": { - "require": "./index.js", + "require": "./index.cjs", "types": "./index.d.ts", "default": "./index.mjs" }, diff --git a/packages/collection-pluck/index.js b/packages/collection-pluck/index.cjs similarity index 100% rename from packages/collection-pluck/index.js rename to packages/collection-pluck/index.cjs diff --git a/packages/collection-pluck/package.json b/packages/collection-pluck/package.json index bc75b7bbc..dc9c1a084 100644 --- a/packages/collection-pluck/package.json +++ b/packages/collection-pluck/package.json @@ -2,12 +2,12 @@ "name": "just-pluck-it", "version": "2.2.1", "description": "pluck a property from each member of a collection", - "main": "index.js", + "main": "index.cjs", "types": "index.d.ts", "module": "index.mjs", "exports": { ".": { - "require": "./index.js", + "require": "./index.cjs", "types": "./index.d.ts", "default": "./index.mjs" }, diff --git a/packages/function-compose/index.js b/packages/function-compose/index.cjs similarity index 100% rename from packages/function-compose/index.js rename to packages/function-compose/index.cjs diff --git a/packages/function-compose/package.json b/packages/function-compose/package.json index c2b52b5b4..540d399af 100644 --- a/packages/function-compose/package.json +++ b/packages/function-compose/package.json @@ -2,12 +2,12 @@ "name": "just-compose", "version": "2.2.1", "description": "return a function composed of 2 or more functions", - "main": "index.js", + "main": "index.cjs", "types": "index.d.ts", "module": "index.mjs", "exports": { ".": { - "require": "./index.js", + "require": "./index.cjs", "types": "./index.d.ts", "default": "./index.mjs" }, diff --git a/packages/function-curry/index.js b/packages/function-curry/index.cjs similarity index 100% rename from packages/function-curry/index.js rename to packages/function-curry/index.cjs diff --git a/packages/function-curry/package.json b/packages/function-curry/package.json index 254e0b46a..5c8dfd7d0 100644 --- a/packages/function-curry/package.json +++ b/packages/function-curry/package.json @@ -2,16 +2,16 @@ "name": "just-curry-it", "version": "5.2.1", "description": "return a curried function", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/function-debounce/index.js b/packages/function-debounce/index.cjs similarity index 100% rename from packages/function-debounce/index.js rename to packages/function-debounce/index.cjs diff --git a/packages/function-debounce/package.json b/packages/function-debounce/package.json index 02955eff4..ea656e29c 100644 --- a/packages/function-debounce/package.json +++ b/packages/function-debounce/package.json @@ -2,16 +2,16 @@ "name": "just-debounce-it", "version": "3.1.1", "description": "return a debounced function", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/function-demethodize/index.js b/packages/function-demethodize/index.cjs similarity index 100% rename from packages/function-demethodize/index.js rename to packages/function-demethodize/index.cjs diff --git a/packages/function-demethodize/package.json b/packages/function-demethodize/package.json index 99087fd5a..8abc75082 100644 --- a/packages/function-demethodize/package.json +++ b/packages/function-demethodize/package.json @@ -2,12 +2,12 @@ "name": "just-demethodize", "version": "3.1.1", "description": "turn a method into a standalone function; the first arg becomes `this`", - "main": "index.js", + "main": "index.cjs", "types": "index.d.ts", "module": "index.mjs", "exports": { ".": { - "require": "./index.js", + "require": "./index.cjs", "types": "./index.d.ts", "default": "./index.mjs" }, diff --git a/packages/function-flip/index.js b/packages/function-flip/index.cjs similarity index 100% rename from packages/function-flip/index.js rename to packages/function-flip/index.cjs diff --git a/packages/function-flip/package.json b/packages/function-flip/package.json index e98005b80..26b878630 100644 --- a/packages/function-flip/package.json +++ b/packages/function-flip/package.json @@ -2,12 +2,12 @@ "name": "just-flip", "version": "2.1.1", "description": "flip first two arguments of a function", - "main": "index.js", + "main": "index.cjs", "types": "index.d.ts", "module": "index.mjs", "exports": { ".": { - "require": "./index.js", + "require": "./index.cjs", "types": "./index.d.ts", "default": "./index.mjs" }, diff --git a/packages/function-memoize-last/index.js b/packages/function-memoize-last/index.cjs similarity index 100% rename from packages/function-memoize-last/index.js rename to packages/function-memoize-last/index.cjs diff --git a/packages/function-memoize-last/package.json b/packages/function-memoize-last/package.json index 13c41d2b3..21b1913d4 100644 --- a/packages/function-memoize-last/package.json +++ b/packages/function-memoize-last/package.json @@ -2,16 +2,16 @@ "name": "just-memoize-last", "version": "3.1.1", "description": "A memoize implementation that only caches the most recent evaluation", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/function-memoize/index.js b/packages/function-memoize/index.cjs similarity index 100% rename from packages/function-memoize/index.js rename to packages/function-memoize/index.cjs diff --git a/packages/function-memoize/package.json b/packages/function-memoize/package.json index e968f74f2..9345940d3 100644 --- a/packages/function-memoize/package.json +++ b/packages/function-memoize/package.json @@ -2,16 +2,16 @@ "name": "just-memoize", "version": "2.1.1", "description": "An implementation of the memoize technique", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/function-once/index.js b/packages/function-once/index.cjs similarity index 100% rename from packages/function-once/index.js rename to packages/function-once/index.cjs diff --git a/packages/function-once/package.json b/packages/function-once/package.json index bcd6469c5..9893f05af 100644 --- a/packages/function-once/package.json +++ b/packages/function-once/package.json @@ -2,16 +2,16 @@ "name": "just-once", "version": "2.1.1", "description": "create a function that can only be invoked once", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/function-partial/index.js b/packages/function-partial/index.cjs similarity index 100% rename from packages/function-partial/index.js rename to packages/function-partial/index.cjs diff --git a/packages/function-partial/package.json b/packages/function-partial/package.json index 96aee26ee..e9fbdd501 100644 --- a/packages/function-partial/package.json +++ b/packages/function-partial/package.json @@ -2,16 +2,16 @@ "name": "just-partial-it", "version": "3.3.0", "description": "return a partial function", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/function-throttle/index.js b/packages/function-throttle/index.cjs similarity index 100% rename from packages/function-throttle/index.js rename to packages/function-throttle/index.cjs diff --git a/packages/function-throttle/package.json b/packages/function-throttle/package.json index 96776fbe9..debf0e257 100644 --- a/packages/function-throttle/package.json +++ b/packages/function-throttle/package.json @@ -2,16 +2,16 @@ "name": "just-throttle", "version": "4.1.1", "description": "return a throttled function", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/number-clamp/index.js b/packages/number-clamp/index.cjs similarity index 100% rename from packages/number-clamp/index.js rename to packages/number-clamp/index.cjs diff --git a/packages/number-clamp/package.json b/packages/number-clamp/package.json index 2e38bb736..8e6d0e081 100644 --- a/packages/number-clamp/package.json +++ b/packages/number-clamp/package.json @@ -2,16 +2,16 @@ "name": "just-clamp", "version": "4.1.1", "description": "restrict a number within a range", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/number-in-range/index.js b/packages/number-in-range/index.cjs similarity index 100% rename from packages/number-in-range/index.js rename to packages/number-in-range/index.cjs diff --git a/packages/number-in-range/package.json b/packages/number-in-range/package.json index 3e9ae1ea6..773d96a54 100644 --- a/packages/number-in-range/package.json +++ b/packages/number-in-range/package.json @@ -2,16 +2,16 @@ "name": "just-in-range", "version": "1.1.1", "description": "Checks if number is within a given range", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/number-is-prime/index.js b/packages/number-is-prime/index.cjs similarity index 100% rename from packages/number-is-prime/index.js rename to packages/number-is-prime/index.cjs diff --git a/packages/number-is-prime/package.json b/packages/number-is-prime/package.json index a20444f07..4db411b52 100644 --- a/packages/number-is-prime/package.json +++ b/packages/number-is-prime/package.json @@ -2,16 +2,16 @@ "name": "just-is-prime", "version": "2.2.0", "description": "Check if number is prime", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/number-modulo/index.js b/packages/number-modulo/index.cjs similarity index 100% rename from packages/number-modulo/index.js rename to packages/number-modulo/index.cjs diff --git a/packages/number-modulo/package.json b/packages/number-modulo/package.json index 7a5bffd45..5ad9b6d8c 100644 --- a/packages/number-modulo/package.json +++ b/packages/number-modulo/package.json @@ -2,16 +2,16 @@ "name": "just-modulo", "version": "2.1.1", "description": "modulo of a number and a divisor", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/number-random-integer/index.js b/packages/number-random-integer/index.cjs similarity index 100% rename from packages/number-random-integer/index.js rename to packages/number-random-integer/index.cjs diff --git a/packages/number-random-integer/package.json b/packages/number-random-integer/package.json index 45fcc1b20..db3e8b6cf 100644 --- a/packages/number-random-integer/package.json +++ b/packages/number-random-integer/package.json @@ -2,16 +2,16 @@ "name": "just-random-integer", "version": "4.1.1", "description": "Produces an integer between two values", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-deep-map-values/index.js b/packages/object-deep-map-values/index.cjs similarity index 100% rename from packages/object-deep-map-values/index.js rename to packages/object-deep-map-values/index.cjs diff --git a/packages/object-deep-map-values/package.json b/packages/object-deep-map-values/package.json index 983293e3d..106e47f4c 100644 --- a/packages/object-deep-map-values/package.json +++ b/packages/object-deep-map-values/package.json @@ -2,16 +2,16 @@ "name": "just-deep-map-values", "version": "1.1.1", "description": "Returns an object with values at all depths mapped according to the provided function", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "build": "rollup -c" diff --git a/packages/object-entries/index.js b/packages/object-entries/index.cjs similarity index 100% rename from packages/object-entries/index.js rename to packages/object-entries/index.cjs diff --git a/packages/object-entries/package.json b/packages/object-entries/package.json index ff694d8f9..20b1486af 100644 --- a/packages/object-entries/package.json +++ b/packages/object-entries/package.json @@ -2,16 +2,16 @@ "name": "just-entries", "version": "2.2.1", "description": "return object entries as an array of [key, value] pairs", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-extend/index.js b/packages/object-extend/index.cjs similarity index 100% rename from packages/object-extend/index.js rename to packages/object-extend/index.cjs diff --git a/packages/object-extend/package.json b/packages/object-extend/package.json index 802d254bf..47607a6e8 100644 --- a/packages/object-extend/package.json +++ b/packages/object-extend/package.json @@ -2,16 +2,16 @@ "name": "just-extend", "version": "6.1.1", "description": "extend an object", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-filter/index.js b/packages/object-filter/index.cjs similarity index 100% rename from packages/object-filter/index.js rename to packages/object-filter/index.cjs diff --git a/packages/object-filter/package.json b/packages/object-filter/package.json index 84a69c3f8..bd8267d4e 100644 --- a/packages/object-filter/package.json +++ b/packages/object-filter/package.json @@ -2,16 +2,16 @@ "name": "just-filter-object", "version": "3.1.1", "description": "filter an object", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-flip/index.js b/packages/object-flip/index.cjs similarity index 100% rename from packages/object-flip/index.js rename to packages/object-flip/index.cjs diff --git a/packages/object-flip/package.json b/packages/object-flip/package.json index 2ccdd5771..4afe27f03 100644 --- a/packages/object-flip/package.json +++ b/packages/object-flip/package.json @@ -2,16 +2,16 @@ "name": "just-flip-object", "version": "2.2.1", "description": "flip the keys and values", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-has/index.js b/packages/object-has/index.cjs similarity index 100% rename from packages/object-has/index.js rename to packages/object-has/index.cjs diff --git a/packages/object-has/package.json b/packages/object-has/package.json index eb3e3abef..e58fa796b 100644 --- a/packages/object-has/package.json +++ b/packages/object-has/package.json @@ -2,16 +2,16 @@ "name": "just-has", "version": "2.2.1", "description": "return a boolen indicating the existence of a deep property, don't throw if parent is undefined", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-is-circular/index.js b/packages/object-is-circular/index.cjs similarity index 100% rename from packages/object-is-circular/index.js rename to packages/object-is-circular/index.cjs diff --git a/packages/object-is-circular/package.json b/packages/object-is-circular/package.json index 02625ba9f..6b6456a10 100644 --- a/packages/object-is-circular/package.json +++ b/packages/object-is-circular/package.json @@ -2,16 +2,16 @@ "name": "just-is-circular", "version": "2.1.1", "description": "determine if an object contains a circular reference", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-is-empty/index.js b/packages/object-is-empty/index.cjs similarity index 100% rename from packages/object-is-empty/index.js rename to packages/object-is-empty/index.cjs diff --git a/packages/object-is-empty/package.json b/packages/object-is-empty/package.json index 0d2856b76..14b1286e4 100644 --- a/packages/object-is-empty/package.json +++ b/packages/object-is-empty/package.json @@ -2,16 +2,16 @@ "name": "just-is-empty", "version": "3.2.1", "description": "return true if object has no enumerable key values", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-is-primitive/index.js b/packages/object-is-primitive/index.cjs similarity index 100% rename from packages/object-is-primitive/index.js rename to packages/object-is-primitive/index.cjs diff --git a/packages/object-is-primitive/package.json b/packages/object-is-primitive/package.json index ae9c43140..54fec3ac4 100644 --- a/packages/object-is-primitive/package.json +++ b/packages/object-is-primitive/package.json @@ -2,12 +2,12 @@ "name": "just-is-primitive", "version": "2.2.1", "description": "determine if a value is a primitive value", - "main": "index.js", + "main": "index.cjs", "types": "index.d.ts", "module": "index.mjs", "exports": { ".": { - "require": "./index.js", + "require": "./index.cjs", "types": "./index.d.ts", "default": "./index.mjs" }, diff --git a/packages/object-map-keys/index.js b/packages/object-map-keys/index.cjs similarity index 100% rename from packages/object-map-keys/index.js rename to packages/object-map-keys/index.cjs diff --git a/packages/object-map-keys/package.json b/packages/object-map-keys/package.json index d21963afa..9c6ddebd5 100644 --- a/packages/object-map-keys/package.json +++ b/packages/object-map-keys/package.json @@ -2,12 +2,12 @@ "name": "just-map-keys", "version": "2.2.1", "description": "map an object, predicate updates keys, receives (value, key, object)", - "main": "index.js", + "main": "index.cjs", "types": "index.d.ts", "module": "index.mjs", "exports": { ".": { - "require": "./index.js", + "require": "./index.cjs", "types": "./index.d.ts", "default": "./index.mjs" }, diff --git a/packages/object-map-values/index.js b/packages/object-map-values/index.cjs similarity index 100% rename from packages/object-map-values/index.js rename to packages/object-map-values/index.cjs diff --git a/packages/object-map-values/package.json b/packages/object-map-values/package.json index b4292d76b..0c8619285 100644 --- a/packages/object-map-values/package.json +++ b/packages/object-map-values/package.json @@ -2,16 +2,16 @@ "name": "just-map-values", "version": "3.1.1", "description": "map an object, predicate updates values, receives (value, key, object)", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-map/index.js b/packages/object-map/index.cjs similarity index 100% rename from packages/object-map/index.js rename to packages/object-map/index.cjs diff --git a/packages/object-map/package.json b/packages/object-map/package.json index df658cf42..31108274a 100644 --- a/packages/object-map/package.json +++ b/packages/object-map/package.json @@ -2,12 +2,12 @@ "name": "just-map-object", "version": "2.2.1", "description": "map an object, passing key and value to predicates", - "main": "index.js", + "main": "index.cjs", "types": "index.d.ts", "module": "index.mjs", "exports": { ".": { - "require": "./index.js", + "require": "./index.cjs", "types": "./index.d.ts", "default": "./index.mjs" }, diff --git a/packages/object-merge/index.js b/packages/object-merge/index.cjs similarity index 100% rename from packages/object-merge/index.js rename to packages/object-merge/index.cjs diff --git a/packages/object-merge/package.json b/packages/object-merge/package.json index f879b2411..32ba811fc 100644 --- a/packages/object-merge/package.json +++ b/packages/object-merge/package.json @@ -2,16 +2,16 @@ "name": "just-merge", "version": "3.1.1", "description": "shallow extend an object", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-omit/index.js b/packages/object-omit/index.cjs similarity index 100% rename from packages/object-omit/index.js rename to packages/object-omit/index.cjs diff --git a/packages/object-omit/package.json b/packages/object-omit/package.json index e3503b804..bda1095d1 100644 --- a/packages/object-omit/package.json +++ b/packages/object-omit/package.json @@ -2,16 +2,16 @@ "name": "just-omit", "version": "2.1.2", "description": "copy an object but omit the specified keys", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-pick/index.js b/packages/object-pick/index.cjs similarity index 100% rename from packages/object-pick/index.js rename to packages/object-pick/index.cjs diff --git a/packages/object-pick/package.json b/packages/object-pick/package.json index 9d76a9e7c..a765233ed 100644 --- a/packages/object-pick/package.json +++ b/packages/object-pick/package.json @@ -2,16 +2,16 @@ "name": "just-pick", "version": "4.1.1", "description": "copy an object but with only the specified keys", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-reduce/index.js b/packages/object-reduce/index.cjs similarity index 100% rename from packages/object-reduce/index.js rename to packages/object-reduce/index.cjs diff --git a/packages/object-reduce/package.json b/packages/object-reduce/package.json index 3f9b78aa9..65b961934 100644 --- a/packages/object-reduce/package.json +++ b/packages/object-reduce/package.json @@ -2,16 +2,16 @@ "name": "just-reduce-object", "version": "2.2.2", "description": "reduce an object", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-safe-get/index.js b/packages/object-safe-get/index.cjs similarity index 100% rename from packages/object-safe-get/index.js rename to packages/object-safe-get/index.cjs diff --git a/packages/object-safe-get/package.json b/packages/object-safe-get/package.json index e9fb953b3..5438c4180 100644 --- a/packages/object-safe-get/package.json +++ b/packages/object-safe-get/package.json @@ -2,16 +2,16 @@ "name": "just-safe-get", "version": "4.1.1", "description": "get value at property, don't throw if parent is undefined", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-safe-set/index.js b/packages/object-safe-set/index.cjs similarity index 100% rename from packages/object-safe-set/index.js rename to packages/object-safe-set/index.cjs diff --git a/packages/object-safe-set/package.json b/packages/object-safe-set/package.json index 9760dea84..22d378ed8 100644 --- a/packages/object-safe-set/package.json +++ b/packages/object-safe-set/package.json @@ -2,16 +2,16 @@ "name": "just-safe-set", "version": "4.1.1", "description": "set value at property, create intermediate properties if necessary", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-typeof/index.js b/packages/object-typeof/index.cjs similarity index 100% rename from packages/object-typeof/index.js rename to packages/object-typeof/index.cjs diff --git a/packages/object-typeof/package.json b/packages/object-typeof/package.json index 48bd7b865..34fb25445 100644 --- a/packages/object-typeof/package.json +++ b/packages/object-typeof/package.json @@ -2,16 +2,16 @@ "name": "just-typeof", "version": "3.1.1", "description": "type inferer", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/object-values/index.js b/packages/object-values/index.cjs similarity index 100% rename from packages/object-values/index.js rename to packages/object-values/index.cjs diff --git a/packages/object-values/package.json b/packages/object-values/package.json index 64ab08e5a..8ce59499e 100644 --- a/packages/object-values/package.json +++ b/packages/object-values/package.json @@ -2,16 +2,16 @@ "name": "just-values", "version": "2.1.1", "description": "return property values as an array", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-camel-case/index.js b/packages/string-camel-case/index.cjs similarity index 100% rename from packages/string-camel-case/index.js rename to packages/string-camel-case/index.cjs diff --git a/packages/string-camel-case/package.json b/packages/string-camel-case/package.json index 27564622b..af9096285 100644 --- a/packages/string-camel-case/package.json +++ b/packages/string-camel-case/package.json @@ -2,16 +2,16 @@ "name": "just-camel-case", "version": "6.1.1", "description": "convert a string to camel case", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-capitalize/index.js b/packages/string-capitalize/index.cjs similarity index 100% rename from packages/string-capitalize/index.js rename to packages/string-capitalize/index.cjs diff --git a/packages/string-capitalize/package.json b/packages/string-capitalize/package.json index 5784d05f6..bd745ea3b 100644 --- a/packages/string-capitalize/package.json +++ b/packages/string-capitalize/package.json @@ -2,16 +2,16 @@ "name": "just-capitalize", "version": "3.1.1", "description": "capitalize the first character of a string", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-kebab-case/index.js b/packages/string-kebab-case/index.cjs similarity index 100% rename from packages/string-kebab-case/index.js rename to packages/string-kebab-case/index.cjs diff --git a/packages/string-kebab-case/package.json b/packages/string-kebab-case/package.json index decbadf39..7c1069e40 100644 --- a/packages/string-kebab-case/package.json +++ b/packages/string-kebab-case/package.json @@ -2,16 +2,16 @@ "name": "just-kebab-case", "version": "4.1.1", "description": "convert a string to kebab case", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-left-pad/index.js b/packages/string-left-pad/index.cjs similarity index 100% rename from packages/string-left-pad/index.js rename to packages/string-left-pad/index.cjs diff --git a/packages/string-left-pad/package.json b/packages/string-left-pad/package.json index 447180285..96b0fa5d2 100644 --- a/packages/string-left-pad/package.json +++ b/packages/string-left-pad/package.json @@ -7,7 +7,7 @@ "module": "index.mjs", "exports": { ".": { - "require": "./index.js", + "require": "./index.cjs", "types": "./index.d.ts", "default": "./index.mjs" }, diff --git a/packages/string-pascal-case/index.js b/packages/string-pascal-case/index.cjs similarity index 100% rename from packages/string-pascal-case/index.js rename to packages/string-pascal-case/index.cjs diff --git a/packages/string-pascal-case/package.json b/packages/string-pascal-case/package.json index 5deb131ec..a96592bd0 100644 --- a/packages/string-pascal-case/package.json +++ b/packages/string-pascal-case/package.json @@ -2,16 +2,16 @@ "name": "just-pascal-case", "version": "3.1.1", "description": "convert a string to pascal case", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-prune/index.js b/packages/string-prune/index.cjs similarity index 100% rename from packages/string-prune/index.js rename to packages/string-prune/index.cjs diff --git a/packages/string-prune/package.json b/packages/string-prune/package.json index 987e2bd68..4c2bfba26 100644 --- a/packages/string-prune/package.json +++ b/packages/string-prune/package.json @@ -2,16 +2,16 @@ "name": "just-prune", "version": "2.1.1", "description": "prune a string with whole words and a custom suffix", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-replace-all/index.js b/packages/string-replace-all/index.cjs similarity index 100% rename from packages/string-replace-all/index.js rename to packages/string-replace-all/index.cjs diff --git a/packages/string-replace-all/package.json b/packages/string-replace-all/package.json index 0da863cb4..b3c2e2c61 100644 --- a/packages/string-replace-all/package.json +++ b/packages/string-replace-all/package.json @@ -2,16 +2,16 @@ "name": "just-replace-all", "version": "2.1.1", "description": "replace all occurrences of a string within a string with another string", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-right-pad/index.js b/packages/string-right-pad/index.cjs similarity index 100% rename from packages/string-right-pad/index.js rename to packages/string-right-pad/index.cjs diff --git a/packages/string-right-pad/package.json b/packages/string-right-pad/package.json index a50327436..c18c73bb5 100644 --- a/packages/string-right-pad/package.json +++ b/packages/string-right-pad/package.json @@ -2,16 +2,16 @@ "name": "just-right-pad", "version": "3.1.1", "description": "add characters to the right of a string such that its total length is n", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-snake-case/index.js b/packages/string-snake-case/index.cjs similarity index 100% rename from packages/string-snake-case/index.js rename to packages/string-snake-case/index.cjs diff --git a/packages/string-snake-case/package.json b/packages/string-snake-case/package.json index 453b991fa..144b7e73a 100644 --- a/packages/string-snake-case/package.json +++ b/packages/string-snake-case/package.json @@ -2,16 +2,16 @@ "name": "just-snake-case", "version": "3.1.1", "description": "convert a string to snake case", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-squash/index.js b/packages/string-squash/index.cjs similarity index 100% rename from packages/string-squash/index.js rename to packages/string-squash/index.cjs diff --git a/packages/string-squash/package.json b/packages/string-squash/package.json index e7403745f..f145d005e 100644 --- a/packages/string-squash/package.json +++ b/packages/string-squash/package.json @@ -2,16 +2,16 @@ "name": "just-squash", "version": "2.1.1", "description": "remove all spaces from a string, optionally remove escape sequences too", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-template/index.js b/packages/string-template/index.cjs similarity index 100% rename from packages/string-template/index.js rename to packages/string-template/index.cjs diff --git a/packages/string-template/package.json b/packages/string-template/package.json index 6a22234ad..f31adab73 100644 --- a/packages/string-template/package.json +++ b/packages/string-template/package.json @@ -2,16 +2,16 @@ "name": "just-template", "version": "2.1.1", "description": "interpolate a string with variables", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/packages/string-truncate/index.js b/packages/string-truncate/index.cjs similarity index 100% rename from packages/string-truncate/index.js rename to packages/string-truncate/index.cjs diff --git a/packages/string-truncate/package.json b/packages/string-truncate/package.json index 678f262a5..37d47dcf4 100644 --- a/packages/string-truncate/package.json +++ b/packages/string-truncate/package.json @@ -2,16 +2,16 @@ "name": "just-truncate", "version": "2.1.1", "description": "truncate a string with a custom suffix", - "main": "index.js", - "module": "index.mjs", + "type": "module", "exports": { ".": { - "require": "./index.js", "types": "./index.d.ts", - "default": "./index.mjs" + "require": "./index.cjs", + "import": "./index.mjs" }, "./package.json": "./package.json" }, + "main": "index.cjs", "types": "index.d.ts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/test/array-cartesian-product/index.js b/test/array-cartesian-product/index.cjs similarity index 100% rename from test/array-cartesian-product/index.js rename to test/array-cartesian-product/index.cjs diff --git a/test/array-compact/index.js b/test/array-compact/index.cjs similarity index 100% rename from test/array-compact/index.js rename to test/array-compact/index.cjs diff --git a/test/array-flatten/index.js b/test/array-flatten/index.cjs similarity index 100% rename from test/array-flatten/index.js rename to test/array-flatten/index.cjs diff --git a/test/array-group-by/index.js b/test/array-group-by/index.cjs similarity index 100% rename from test/array-group-by/index.js rename to test/array-group-by/index.cjs diff --git a/test/array-index/index.js b/test/array-index/index.cjs similarity index 100% rename from test/array-index/index.js rename to test/array-index/index.cjs diff --git a/test/array-insert/index.js b/test/array-insert/index.cjs similarity index 100% rename from test/array-insert/index.js rename to test/array-insert/index.cjs diff --git a/test/array-intersect/index.js b/test/array-intersect/index.cjs similarity index 100% rename from test/array-intersect/index.js rename to test/array-intersect/index.cjs diff --git a/test/array-last/index.js b/test/array-last/index.cjs similarity index 100% rename from test/array-last/index.js rename to test/array-last/index.cjs diff --git a/test/array-mean/index.js b/test/array-mean/index.cjs similarity index 100% rename from test/array-mean/index.js rename to test/array-mean/index.cjs diff --git a/test/array-median/index.js b/test/array-median/index.cjs similarity index 100% rename from test/array-median/index.js rename to test/array-median/index.cjs diff --git a/test/array-mode/index.js b/test/array-mode/index.cjs similarity index 100% rename from test/array-mode/index.js rename to test/array-mode/index.cjs diff --git a/test/array-partition/index.js b/test/array-partition/index.cjs similarity index 100% rename from test/array-partition/index.js rename to test/array-partition/index.cjs diff --git a/test/array-percentile/index.js b/test/array-percentile/index.cjs similarity index 100% rename from test/array-percentile/index.js rename to test/array-percentile/index.cjs diff --git a/test/array-permutations/index.js b/test/array-permutations/index.cjs similarity index 100% rename from test/array-permutations/index.js rename to test/array-permutations/index.cjs diff --git a/test/array-random/index.js b/test/array-random/index.cjs similarity index 100% rename from test/array-random/index.js rename to test/array-random/index.cjs diff --git a/test/array-range/index.js b/test/array-range/index.cjs similarity index 100% rename from test/array-range/index.js rename to test/array-range/index.cjs diff --git a/test/array-remove/index.js b/test/array-remove/index.cjs similarity index 100% rename from test/array-remove/index.js rename to test/array-remove/index.cjs diff --git a/test/array-shuffle/index.js b/test/array-shuffle/index.cjs similarity index 100% rename from test/array-shuffle/index.js rename to test/array-shuffle/index.cjs diff --git a/test/array-skewness/index.js b/test/array-skewness/index.cjs similarity index 100% rename from test/array-skewness/index.js rename to test/array-skewness/index.cjs diff --git a/test/array-sort-by/index.js b/test/array-sort-by/index.cjs similarity index 100% rename from test/array-sort-by/index.js rename to test/array-sort-by/index.cjs diff --git a/test/array-split-at/index.js b/test/array-split-at/index.cjs similarity index 100% rename from test/array-split-at/index.js rename to test/array-split-at/index.cjs diff --git a/test/array-split/index.js b/test/array-split/index.cjs similarity index 100% rename from test/array-split/index.js rename to test/array-split/index.cjs diff --git a/test/array-standard-deviation/index.js b/test/array-standard-deviation/index.cjs similarity index 100% rename from test/array-standard-deviation/index.js rename to test/array-standard-deviation/index.cjs diff --git a/test/array-tail/index.js b/test/array-tail/index.cjs similarity index 100% rename from test/array-tail/index.js rename to test/array-tail/index.cjs diff --git a/test/array-union/index.js b/test/array-union/index.cjs similarity index 100% rename from test/array-union/index.js rename to test/array-union/index.cjs diff --git a/test/array-unique/index.js b/test/array-unique/index.cjs similarity index 100% rename from test/array-unique/index.js rename to test/array-unique/index.cjs diff --git a/test/array-variance/index.js b/test/array-variance/index.cjs similarity index 100% rename from test/array-variance/index.js rename to test/array-variance/index.cjs diff --git a/test/array-zip/index.js b/test/array-zip/index.cjs similarity index 100% rename from test/array-zip/index.js rename to test/array-zip/index.cjs diff --git a/test/collection-clone/index.js b/test/collection-clone/index.cjs similarity index 100% rename from test/collection-clone/index.js rename to test/collection-clone/index.cjs diff --git a/test/collection-compare/index.js b/test/collection-compare/index.cjs similarity index 100% rename from test/collection-compare/index.js rename to test/collection-compare/index.cjs diff --git a/test/collection-diff-apply/index.js b/test/collection-diff-apply/index.cjs similarity index 100% rename from test/collection-diff-apply/index.js rename to test/collection-diff-apply/index.cjs diff --git a/test/collection-diff/index.js b/test/collection-diff/index.cjs similarity index 100% rename from test/collection-diff/index.js rename to test/collection-diff/index.cjs diff --git a/test/collection-flush/index.js b/test/collection-flush/index.cjs similarity index 100% rename from test/collection-flush/index.js rename to test/collection-flush/index.cjs diff --git a/test/collection-pluck/index.js b/test/collection-pluck/index.cjs similarity index 100% rename from test/collection-pluck/index.js rename to test/collection-pluck/index.cjs diff --git a/test/function-compose/index.js b/test/function-compose/index.cjs similarity index 100% rename from test/function-compose/index.js rename to test/function-compose/index.cjs diff --git a/test/function-curry/index.js b/test/function-curry/index.cjs similarity index 100% rename from test/function-curry/index.js rename to test/function-curry/index.cjs diff --git a/test/function-debounce/index.js b/test/function-debounce/index.cjs similarity index 100% rename from test/function-debounce/index.js rename to test/function-debounce/index.cjs diff --git a/test/function-demethodize/index.js b/test/function-demethodize/index.cjs similarity index 100% rename from test/function-demethodize/index.js rename to test/function-demethodize/index.cjs diff --git a/test/function-flip/index.js b/test/function-flip/index.cjs similarity index 100% rename from test/function-flip/index.js rename to test/function-flip/index.cjs diff --git a/test/function-memoize-last/index.js b/test/function-memoize-last/index.cjs similarity index 100% rename from test/function-memoize-last/index.js rename to test/function-memoize-last/index.cjs diff --git a/test/function-memoize/index.js b/test/function-memoize/index.cjs similarity index 100% rename from test/function-memoize/index.js rename to test/function-memoize/index.cjs diff --git a/test/function-once/index.js b/test/function-once/index.cjs similarity index 100% rename from test/function-once/index.js rename to test/function-once/index.cjs diff --git a/test/function-partial/index.js b/test/function-partial/index.cjs similarity index 100% rename from test/function-partial/index.js rename to test/function-partial/index.cjs diff --git a/test/function-throttle/index.js b/test/function-throttle/index.cjs similarity index 100% rename from test/function-throttle/index.js rename to test/function-throttle/index.cjs diff --git a/test/number-clamp/index.js b/test/number-clamp/index.cjs similarity index 100% rename from test/number-clamp/index.js rename to test/number-clamp/index.cjs diff --git a/test/number-in-range/index.js b/test/number-in-range/index.cjs similarity index 100% rename from test/number-in-range/index.js rename to test/number-in-range/index.cjs diff --git a/test/number-is-prime/index.js b/test/number-is-prime/index.cjs similarity index 100% rename from test/number-is-prime/index.js rename to test/number-is-prime/index.cjs diff --git a/test/number-modulo/index.js b/test/number-modulo/index.cjs similarity index 100% rename from test/number-modulo/index.js rename to test/number-modulo/index.cjs diff --git a/test/number-random-integer/index.js b/test/number-random-integer/index.cjs similarity index 100% rename from test/number-random-integer/index.js rename to test/number-random-integer/index.cjs diff --git a/test/object-deep-map-values/index.js b/test/object-deep-map-values/index.cjs similarity index 100% rename from test/object-deep-map-values/index.js rename to test/object-deep-map-values/index.cjs diff --git a/test/object-entries/index.js b/test/object-entries/index.cjs similarity index 100% rename from test/object-entries/index.js rename to test/object-entries/index.cjs diff --git a/test/object-extend/index.js b/test/object-extend/index.cjs similarity index 100% rename from test/object-extend/index.js rename to test/object-extend/index.cjs diff --git a/test/object-filter/index.js b/test/object-filter/index.cjs similarity index 100% rename from test/object-filter/index.js rename to test/object-filter/index.cjs diff --git a/test/object-flip/index.js b/test/object-flip/index.cjs similarity index 100% rename from test/object-flip/index.js rename to test/object-flip/index.cjs diff --git a/test/object-has/index.js b/test/object-has/index.cjs similarity index 100% rename from test/object-has/index.js rename to test/object-has/index.cjs diff --git a/test/object-is-circular/index.js b/test/object-is-circular/index.cjs similarity index 100% rename from test/object-is-circular/index.js rename to test/object-is-circular/index.cjs diff --git a/test/object-is-empty/index.js b/test/object-is-empty/index.cjs similarity index 100% rename from test/object-is-empty/index.js rename to test/object-is-empty/index.cjs diff --git a/test/object-is-primitive/index.js b/test/object-is-primitive/index.cjs similarity index 100% rename from test/object-is-primitive/index.js rename to test/object-is-primitive/index.cjs diff --git a/test/object-map-keys/index.js b/test/object-map-keys/index.cjs similarity index 100% rename from test/object-map-keys/index.js rename to test/object-map-keys/index.cjs diff --git a/test/object-map-values/index.js b/test/object-map-values/index.cjs similarity index 100% rename from test/object-map-values/index.js rename to test/object-map-values/index.cjs diff --git a/test/object-map/index.js b/test/object-map/index.cjs similarity index 100% rename from test/object-map/index.js rename to test/object-map/index.cjs diff --git a/test/object-merge/index.js b/test/object-merge/index.cjs similarity index 100% rename from test/object-merge/index.js rename to test/object-merge/index.cjs diff --git a/test/object-omit/index.js b/test/object-omit/index.cjs similarity index 100% rename from test/object-omit/index.js rename to test/object-omit/index.cjs diff --git a/test/object-pick/index.js b/test/object-pick/index.cjs similarity index 100% rename from test/object-pick/index.js rename to test/object-pick/index.cjs diff --git a/test/object-reduce/index.js b/test/object-reduce/index.cjs similarity index 100% rename from test/object-reduce/index.js rename to test/object-reduce/index.cjs diff --git a/test/object-safe-get/index.js b/test/object-safe-get/index.cjs similarity index 100% rename from test/object-safe-get/index.js rename to test/object-safe-get/index.cjs diff --git a/test/object-safe-set/index.js b/test/object-safe-set/index.cjs similarity index 100% rename from test/object-safe-set/index.js rename to test/object-safe-set/index.cjs diff --git a/test/object-typeof/index.js b/test/object-typeof/index.cjs similarity index 100% rename from test/object-typeof/index.js rename to test/object-typeof/index.cjs diff --git a/test/object-values/index.js b/test/object-values/index.cjs similarity index 100% rename from test/object-values/index.js rename to test/object-values/index.cjs diff --git a/test/string-camel-case/index.js b/test/string-camel-case/index.cjs similarity index 100% rename from test/string-camel-case/index.js rename to test/string-camel-case/index.cjs diff --git a/test/string-capitalize/index.js b/test/string-capitalize/index.cjs similarity index 100% rename from test/string-capitalize/index.js rename to test/string-capitalize/index.cjs diff --git a/test/string-kebab-case/index.js b/test/string-kebab-case/index.cjs similarity index 100% rename from test/string-kebab-case/index.js rename to test/string-kebab-case/index.cjs diff --git a/test/string-left-pad/index.js b/test/string-left-pad/index.cjs similarity index 100% rename from test/string-left-pad/index.js rename to test/string-left-pad/index.cjs diff --git a/test/string-pascal-case/index.js b/test/string-pascal-case/index.cjs similarity index 100% rename from test/string-pascal-case/index.js rename to test/string-pascal-case/index.cjs diff --git a/test/string-prune/index.js b/test/string-prune/index.cjs similarity index 100% rename from test/string-prune/index.js rename to test/string-prune/index.cjs diff --git a/test/string-replace-all/index.js b/test/string-replace-all/index.cjs similarity index 100% rename from test/string-replace-all/index.js rename to test/string-replace-all/index.cjs diff --git a/test/string-right-pad/index.js b/test/string-right-pad/index.cjs similarity index 100% rename from test/string-right-pad/index.js rename to test/string-right-pad/index.cjs diff --git a/test/string-snake-case/index.js b/test/string-snake-case/index.cjs similarity index 100% rename from test/string-snake-case/index.js rename to test/string-snake-case/index.cjs diff --git a/test/string-squash/index.js b/test/string-squash/index.cjs similarity index 100% rename from test/string-squash/index.js rename to test/string-squash/index.cjs diff --git a/test/string-template/index.js b/test/string-template/index.cjs similarity index 100% rename from test/string-template/index.js rename to test/string-template/index.cjs diff --git a/test/string-truncate/index.js b/test/string-truncate/index.cjs similarity index 100% rename from test/string-truncate/index.js rename to test/string-truncate/index.cjs