rut.ts 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/package.json +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rut.ts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Handle chilean RUT values with ease.",
|
|
5
6
|
"author": "arrowsw",
|
|
7
|
+
"sideEffects": false,
|
|
6
8
|
"main": "./dist/cjs/index.min.js",
|
|
7
9
|
"module": "./dist/esm/index.min.js",
|
|
8
10
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -20,12 +22,12 @@
|
|
|
20
22
|
},
|
|
21
23
|
"scripts": {
|
|
22
24
|
"build": "npm run build:esm && npm run build:cjs && npm run minify && npm run afterbuild",
|
|
23
|
-
"afterbuild": "rm -rf dist/esm/index.js && rm -rf dist/cjs/index.js",
|
|
25
|
+
"afterbuild": "rm -rf dist/esm/index.js && rm -rf dist/cjs/index.js && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
24
26
|
"build:esm": "tsc",
|
|
25
27
|
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
|
|
26
28
|
"lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
|
|
27
29
|
"prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"",
|
|
28
|
-
"test": "jest --config jest.config.
|
|
30
|
+
"test": "jest --config jest.config.cjs",
|
|
29
31
|
"prepare": "npm run build",
|
|
30
32
|
"prepublishOnly": "npm run test && npm run prettier && npm run lint",
|
|
31
33
|
"minify:esm": "terser dist/esm/index.js -o dist/esm/index.min.js -c -m",
|