Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
feat: monorepo & add rust
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomio committed Feb 22, 2022
1 parent 14752bf commit 270f770
Showing 30 changed files with 1,362 additions and 1,060 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/src/ @1chiSensei
/scripts/ @1chiSensei
/packages/node/ @1chiSensei
/packages/rust/ @1chiSensei
632 changes: 0 additions & 632 deletions .yarn/releases/yarn-3.1.0-rc.1.cjs

This file was deleted.

File renamed without changes.
6 changes: 6 additions & 0 deletions packages/node/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "@sapphire/eslint-config",
"parserOptions": {
"project": "./packages/node/tsconfig.eslint.json"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
785 changes: 785 additions & 0 deletions packages/node/.yarn/releases/yarn-3.2.0.cjs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions .yarnrc.yml → packages/node/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -4,8 +4,8 @@ nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
spec: '@yarnpkg/plugin-typescript'
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
spec: '@yarnpkg/plugin-interactive-tools'

yarnPath: .yarn/releases/yarn-3.1.0-rc.1.cjs
yarnPath: .yarn/releases/yarn-3.2.0.cjs
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md → packages/node/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# is-railway
# is-railway (Node.js)

> Check if the current process is running inside Railway
22 changes: 11 additions & 11 deletions package.json → packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "is-railway",
"version": "1.1.0",
"version": "1.1.2",
"description": "Check if the current process is running inside Railway",
"license": "Apache-2.0",
"repository": "1chiSensei/is-railway",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"bin": "./dist/cli.js",
"homepage": "https://github.com/1chiSensei/is-railway",
"homepage": "https://github.com/1chiSensei/is-railway/tree/main/packages/node",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"author": {
"name": "Yoshida Tomio",
"name": "Tomio",
"email": "mail@tomio.codes",
"url": "https://github.com/1chiSensei"
},
@@ -39,20 +39,20 @@
"dist/index.mjs"
],
"devDependencies": {
"@sapphire/eslint-config": "^3.2.3",
"@sapphire/prettier-config": "^1.1.6",
"@sapphire/ts-config": "^3.0.0",
"@sapphire/eslint-config": "^4.2.1",
"@sapphire/prettier-config": "^1.3.0",
"@sapphire/ts-config": "^3.3.1",
"@types/eslint": "^7",
"@types/node": "^16.7.5",
"@types/prettier": "^2",
"@types/update-notifier": "^5",
"eslint": "^7.32.0",
"gen-esm-wrapper": "^1.1.2",
"prettier": "^2.3.2",
"typescript": "^4.4.2"
"eslint": "^8.9.0",
"gen-esm-wrapper": "^1.1.3",
"prettier": "^2.5.1",
"typescript": "^4.5.5"
},
"prettier": "@sapphire/prettier-config",
"packageManager": "yarn@3.1.0-rc.1",
"packageManager": "yarn@3.2.0",
"dependencies": {
"update-notifier": "^5.1.0"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/index.ts → packages/node/src/index.ts
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ const isRailway = () =>
exists(
process.env.RAILWAY_STATIC_URL ||
process.env.RAILWAY_ENVIRONMENT ||
process.env.RAILWAY_DEPLOYMENT_OVERLAP_SECONDS ||
process.env.RAILWAY_HEALTHCHECK_TIMEOUT_SEC ||
process.env.RAILWAY_GIT_COMMIT_SHA ||
process.env.RAILWAY_GIT_AUTHOR ||
process.env.RAILWAY_GIT_BRANCH ||
2 changes: 1 addition & 1 deletion src/tsconfig.json → packages/node/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@
"noEmitHelpers": false
},
"include": ["."]
}
}
2 changes: 1 addition & 1 deletion tsconfig.base.json → packages/node/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@sapphire/ts-config"
}
}
Original file line number Diff line number Diff line change
@@ -4,4 +4,4 @@
"allowJs": true,
"checkJs": true
}
}
}
Loading

0 comments on commit 270f770

Please sign in to comment.