Skip to content

Commit

Permalink
tsc should use the src folders as root
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrinodimattia committed Jul 24, 2020
1 parent f61023d commit 7409d1a
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 12 deletions.
8 changes: 4 additions & 4 deletions packages/jwt-verifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"author": "Sandrino Di Mattia",
"homepage": "https://github.com/sandrinodimattia/serverless-jwt#readme",
"license": "MIT",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"directories": {
"lib": "dist"
},
"files": [
"dist/src/**"
"dist/**"
],
"publishConfig": {
"access": "public"
Expand All @@ -24,7 +24,7 @@
"prepublishOnly": "npm run build",
"prebuild": "npm run clean",
"build": "tsc -p tsconfig.build.json",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo"
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo"
},
"bugs": {
"url": "https://github.com/sandrinodimattia/serverless-jwt/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/jwt-verifier/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"composite": true,
"outDir": "./dist",
"rootDir": "./",
"rootDir": "./src",
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./typings/*.d.ts"]
},
"exclude": ["node_modules", "test", "dist"]
Expand Down
1 change: 1 addition & 0 deletions packages/jwt-verifier/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"compilerOptions": {
"typeRoots": ["../../node_modules/@types", "./node_modules/@types", "./typings/*.d.ts"]
},
"exclude": ["node_modules", "dist"],
"include": ["src", "test", "typings"]
}
6 changes: 3 additions & 3 deletions packages/netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"author": "Sandrino Di Mattia",
"homepage": "https://github.com/sandrinodimattia/serverless-jwt#readme",
"license": "MIT",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"directories": {
"lib": "dist"
},
Expand All @@ -24,7 +24,7 @@
"prepublishOnly": "npm run build",
"prebuild": "npm run clean",
"build": "tsc -p tsconfig.build.json",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo"
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo"
},
"bugs": {
"url": "https://github.com/sandrinodimattia/serverless-jwt/issues"
Expand Down
2 changes: 1 addition & 1 deletion packages/netlify/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"composite": true,
"outDir": "./dist",
"rootDir": "./"
"rootDir": "./src"
},
"exclude": ["node_modules", "dist", "test"]
}
1 change: 1 addition & 0 deletions packages/netlify/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "../../tsconfig.json",
"exclude": ["node_modules", "dist"],
"include": ["src", "test"]
}
2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"prepublishOnly": "npm run build",
"prebuild": "npm run clean",
"build": "tsc -p tsconfig.build.json",
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo"
"clean": "rm -rf ./dist && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo"
},
"bugs": {
"url": "https://github.com/sandrinodimattia/serverless-jwt/issues"
Expand Down
3 changes: 2 additions & 1 deletion packages/next/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"composite": true,
"outDir": "./dist",
"rootDir": "./src"
"rootDir": "./src",
"skipLibCheck": true
},
"exclude": ["node_modules", "dist", "test"]
}
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"experimentalDecorators": true,
"resolveJsonModule": true,
"importHelpers": true,
"allowJs": false,
"target": "es5",
"module": "commonjs",
"allowSyntheticDefaultImports": true,
Expand All @@ -21,5 +22,5 @@
"strict": true,
"noUnusedLocals": true
},
"exclude": ["node_modules"]
"exclude": ["examples", "node_modules"]
}

0 comments on commit 7409d1a

Please sign in to comment.