Skip to content

Commit 7313ad8

Browse files
committed
build: Cleanup package.json, add types exports
1 parent 97cff2c commit 7313ad8

File tree

3 files changed

+20
-28
lines changed

3 files changed

+20
-28
lines changed

package.json

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
{
22
"name": "typescript-transform-paths",
33
"version": "3.2.1",
4-
"description": "Transforms module resolution paths using TypeScript path mapping",
4+
"description": "Transforms module resolution paths using TypeScript path mapping and/or custom paths",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
7+
"scripts": {
8+
"compile": "tsc",
9+
"build": "yarn run clean && yarn run compile",
10+
"test": "jest",
11+
"release": "standard-version",
12+
"--------------": "",
13+
"format": "prettier --write \"{src,test}/**/{*.js,!(*.d).ts}\"",
14+
"clean": "rimraf dist **/*.tsbuildinfo",
15+
"clean:all": "yarn run clean && rimraf node_modules test/node_modules test/.yarn-cache",
16+
"reset": "yarn run clean:all && yarn install",
17+
"-------------- ": "",
18+
"prebuild": "rimraf dist",
19+
"install:tests": "cd test && yarn install && cd projects/extras && yarn install",
20+
"prepare": "yarn run install:tests"
21+
},
522
"keywords": [
623
"typescript",
724
"transform",
@@ -31,29 +48,6 @@
3148
"README.md",
3249
"CHANGELOG.md"
3350
],
34-
"main": "dist/index.js",
35-
"scripts": {
36-
"compile": "tsc",
37-
"build": "yarn run clean && yarn run compile",
38-
"test": "jest",
39-
"release": "standard-version",
40-
"--------------": "",
41-
"format": "prettier --write \"{src,test}/**/{*.js,!(*.d).ts}\"",
42-
"clean": "rimraf dist **/*.tsbuildinfo",
43-
"clean:all": "yarn run clean && rimraf node_modules test/node_modules test/.yarn-cache",
44-
"reset": "yarn run clean:all && yarn install",
45-
"-------------- ": "",
46-
"prebuild": "rimraf dist",
47-
"install:tests": "cd test && yarn install",
48-
"prepare": "yarn run install:tests"
49-
},
50-
"jest": {
51-
"preset": "ts-jest",
52-
"testEnvironment": "node",
53-
"testMatch": [
54-
"**/tests/transformer.test.ts"
55-
]
56-
},
5751
"devDependencies": {
5852
"@types/jest": "^26.0.24",
5953
"@types/minimatch": "^3.0.5",

tsconfig.base.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
"module": "CommonJS",
99
"moduleResolution": "node",
1010

11-
"declaration": false,
12-
"sourceMap": false,
13-
1411
"strict": true,
1512
"preserveConstEnums": true,
1613
"removeComments": false,

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
"compilerOptions": {
77
"rootDir": "src",
8-
"outDir": "dist"
8+
"outDir": "dist",
9+
"declaration": true
910
}
1011
}

0 commit comments

Comments
 (0)