Skip to content

Commit

Permalink
fix: package.json definitions for NPM publish
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioflores-j committed Sep 9, 2024
1 parent 0cd5123 commit c0ab987
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 17 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Sergio Eduardo Flores Jr.
Copyright (c) 2023-2024 Sergio Eduardo Flores Jr.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
"test": "npx turbo run test",
"test-affected": "npx turbo run test --filter=[$FROM_COMMIT...$TO_COMMIT]"
},
"author": "Sergio Flores",
"license": "ISC",
"author": {
"name": "ts-to-go contributors",
"url": "https://github.com/sergioflores-j/ts-to-go/graphs/contributors"
},
"license": "MIT",
"workspaces": [
"packages/*"
],
Expand Down
7 changes: 5 additions & 2 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
"test": "jest --passWithNoTests",
"type-check": "tsc --noEmit"
},
"author": "Sergio Flores",
"license": "ISC",
"author": {
"name": "ts-to-go contributors",
"url": "https://github.com/sergioflores-j/ts-to-go/graphs/contributors"
},
"license": "MIT",
"dependencies": {
"@ts-to-go/wrap-exception": "*"
}
Expand Down
50 changes: 38 additions & 12 deletions packages/wrapException/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,55 @@
"name": "@ts-to-go/wrap-exception",
"version": "2.0.0-rc.2",
"description": "TS to go for better error handling",
"author": {
"name": "ts-to-go contributors",
"url": "https://github.com/sergioflores-j/ts-to-go/graphs/contributors"
},
"type": "commonjs",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js"
"import": {
"types": "./index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./index.d.ts",
"default": "./dist/index.js"
}
}
},
"private": false,
"repository": {
"type": "git",
"url": "git+https://github.com/sergioflores-j/ts-to-go.git",
"directory": "packages/wrapException"
},
"homepage": "https://github.com/sergioflores-j/ts-to-go",
"bugs": "https://github.com/sergioflores-j/ts-to-go/issues",
"files": [
"dist/**"
],
"scripts": {
"build": "esbuild --version && esbuild src/index.ts --bundle --platform=node --target=node16 --outfile=dist/index.js && tsc --version && tsc --project ./tsconfig.lib.json",
"lint": "eslint . --ext .ts",
"test": "jest",
"type-check": "tsc --version && tsc --noEmit",
"set-version": "npm version $VERSION"
},
"author": "Sergio Flores",
"license": "ISC"
"engineStrict": true,
"engines": {
"node": ">=16"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sergioflores-j/ts-to-go.git",
"directory": "packages/wrapException"
},
"homepage": "https://github.com/sergioflores-j/ts-to-go",
"bugs": "https://github.com/sergioflores-j/ts-to-go/issues",
"license": "MIT",
"keywords": [
"Typescript",
"Utility",
"Error Handling",
"Code Quality",
"Code Standards"
]
}

0 comments on commit c0ab987

Please sign in to comment.