Skip to content

Commit

Permalink
build(INFRA-552): publish an npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnzhu committed Jan 4, 2024
1 parent 46505dd commit 7ab2f26
Show file tree
Hide file tree
Showing 4 changed files with 2,557 additions and 37 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
node_modules/
node_modules/
*.tgz
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@
"version": "0.0.0",
"license": "MIT",
"description": "remote cache server for turbo repo",
"bin": {
"start-turbo-cache-server": "dist/bin/start_server.js"
},
"files": [
"dist/bin/*",
"dist/src/*",
"package.json",
"README.md"
],
"scripts": {
"build": "tsc",
"start": "pm2 start dist/bin/start_server.js --name turbo-cache",
"stop": "pm2 stop turbo-cache",
"ts-type-check": "",
"clean": "rm -rf ./dist",
"lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --ext .ts,.tsx,.js,.jsx . --max-warnings 0",
"lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --ext .ts . --max-warnings 0",
"prettier": "prettier",
"test": "jest --silent"
},
Expand All @@ -29,9 +38,11 @@
"@typescript-eslint/parser": "^6.17.0",
"aws-sdk-client-mock": "^3.0.0",
"aws-sdk-client-mock-jest": "^3.0.0",
"conventional-changelog-conventionalcommits": "^5.0.0",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"pm2": "^4.0.0",
"semantic-release": "^19.0.3",
"supertest": "^6.3.3",
"ts-node": "^8.0.2",
"typescript": "^5.3.2"
Expand Down
16 changes: 16 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
branches: ['master'],
plugins: [
['@semantic-release/commit-analyzer', { preset: 'conventionalcommits' }],
['@semantic-release/npm', { pkgRoot: 'dist/' }],
[
'@semantic-release/github',
{
// Setting this to false disables the default behavior
// of opening a GitHub issue when a release fails.
// We can enable this later if we want.
failComment: false,
},
],
],
};
Loading

0 comments on commit 7ab2f26

Please sign in to comment.