Skip to content

Commit 999a666

Browse files
committed
1.0.14
1 parent f2fd5f6 commit 999a666

6 files changed

Lines changed: 20 additions & 45 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/node_modules
22
/dist-browser
33
/dist-node
4+
/dist
45
/coverage
56
package-lock.json

.npmignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Folders
22
node_modules
33
coverage
4-
dist
54
test
65
.github
76

@@ -15,5 +14,4 @@ package-lock.json
1514
.prettierrc
1615

1716
# Include
18-
!dist-node
19-
!dist-browser
17+
!dist

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### 1.0.14 Fix
2+
3+
### 1.0.13 Fix Error in .npmignore
4+
5+
### 1.0.12 Update build for global compilation
6+
17
### 1.0.11 Add package-lock.json to .npmignore
28

39
### 1.0.10 Fix build for .js files

package.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
11
{
22
"name": "rutility",
3-
"version": "1.0.11",
4-
"main": "dist-node/index.js",
5-
"browser": "dist-browser/index.js",
3+
"version": "1.0.14",
4+
"main": "dist/index.js",
5+
"browser": "dist/index.js",
6+
"module": "dist/index.js",
67
"scripts": {
78
"prettier-format": "prettier --config .prettierrc \"{src,test}/**/*.ts\" --write",
89
"test:unit": "jest",
910
"test:coverage": "npx jest --coverage --collectCoverageFrom='src/**/*.ts'",
1011
"test:lint": "eslint --fix",
1112
"test": "npm run test:unit & npm run test:coverage & npm run test:lint & npm run prettier-format",
12-
"build-browser": "tsc --project tsconfig.browser.json",
13-
"build-node": "tsc --project tsconfig.node.json",
14-
"build": "npm run build-browser & npm run build-node"
13+
"build": "tsc --project tsconfig.json"
1514
},
16-
"files": [
17-
"dist-node",
18-
"dist-browser"
19-
],
15+
"files": ["dist"],
2016
"exports": {
2117
".": {
22-
"node": "./dist-node/index.js",
23-
"browser": "./dist-browser/index.js"
18+
"import": "./dist/index.js",
19+
"require": "./dist/index.js",
20+
"default": "./dist/index.js"
2421
}
2522
},
26-
"types": "dist-node/index.d.ts",
23+
"types": "dist/index.d.ts",
2724
"author": "Pedro Yanez <wotanCode> (https://github.com/wotanCode)",
2825
"license": "MIT",
2926
"description": "A JavaScript library for validating and formatting Chilean RUTs (Rol Único Tributario). It provides functions to add/remove dots and dashes, validate formats, and calculate check digits",

tsconfig.browser.json

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
{
22
"compilerOptions": {
3-
"allowSyntheticDefaultImports": true,
43
"declaration": true,
54
"declarationMap": true,
6-
"emitDeclarationOnly": false,
75
"esModuleInterop": true,
8-
"lib": ["es2015"],
96
"module": "commonjs",
10-
"moduleResolution": "node",
11-
"outDir": "./dist-node",
12-
"resolveJsonModule": true,
13-
"rootDir": "./src",
7+
"outDir": "./dist",
148
"sourceMap": true,
15-
"skipLibCheck": true,
169
"forceConsistentCasingInFileNames": true,
1710
"strict": true,
18-
"target": "es6"
11+
"target": "es5",
1912
},
2013
"exclude": ["node_modules", "dist", "test"],
2114
"include": ["src/**/*.ts"]

0 commit comments

Comments
 (0)