Skip to content

Commit

Permalink
chore: merge pull request #27 from threeal/modern-typescript
Browse files Browse the repository at this point in the history
Modern TypeScript
  • Loading branch information
threeal authored Aug 1, 2023
2 parents c279812 + 881057b commit 40936e8
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: npm test

- name: Run Project
run: lib/google-rank.js --help
run: dist/google-rank.js --help

- name: Check diff
run: git diff --exit-code HEAD
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lib/
dist/
node_modules/

package-lock.json
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 6 additions & 19 deletions lib/utils/arguments.js → dist/utils/arguments.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/utils/arguments.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion lib/utils/arguments.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"license": "MIT",
"author": "Alfi Maulana <[email protected]> (https://github.com/threeal)",
"files": [
"lib"
"dist"
],
"bin": {
"google-rank": "lib/google-rank.js"
"google-rank": "dist/google-rank.js"
},
"repository": "github:threeal/google-rank.git",
"scripts": {
"build": "tsc && chmod-cli lib/google-rank.js -m 0o777",
"clean": "rimraf lib",
"build": "tsc && chmod-cli dist/google-rank.js -m 0o777",
"clean": "rimraf dist",
"format": "prettier --write .",
"lint": "eslint src",
"test": "jest"
Expand Down
10 changes: 7 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"compilerOptions": {
"strict": true,
"module": "CommonJS",
"module": "Node16",
"moduleResolution": "Node16",
"declaration": true,
"outDir": "lib",
"outDir": "dist",
"sourceMap": true,
"esModuleInterop": true,
"target": "ES2021"
"forceConsistentCasingInFileNames": true,
"lib": ["ES2022"],
"target": "ES2022",
"skipLibCheck": true
},
"include": ["src"],
"exclude": ["**/*.test.ts"]
Expand Down

0 comments on commit 40936e8

Please sign in to comment.