Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update package.json; added dist folder to the files property in package json to export them to the npm #10

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "This package is a wrapper for typescript compiler to make code generation easy",
"version": "0.0.4",
"main": "dist/index.js",
"types": "dist/types/index.d.ts",
"types": "dist/typings/index.d.ts",
"scripts": {
"build": "webpack",
"test": "jest"
Expand All @@ -14,7 +14,6 @@
"node-polyfill-webpack-plugin": "^2.0.1",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"ts-polyfill": "^3.8.2",
"typescript": "^5.0.2",
"webpack": "^5.88.2",
Expand All @@ -36,6 +35,7 @@
},
"homepage": "https://github.com/RezaRostamiNikoo/write-ts/blob/master/README.md",
"files": [
"package.json"
"package.json",
"dist"
]
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"sourceMap": true,
"declaration": true,
"declarationMap": true,
"declarationDir": "dist/types",
"declarationDir": "dist/typings",
"esModuleInterop": true
},
"include": [
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
}
]
},
devtool: 'source-map',
devtool: 'none',
resolve: {
extensions: [".ts", ".js"],
},
Expand Down