Skip to content

Commit

Permalink
Merge pull request #6 from namecheap/feat/moved-to-typescript
Browse files Browse the repository at this point in the history
feat: rewrote code in TypeScript, introduced a crypto shim, and updated code to use the crypto shim
  • Loading branch information
yehor-manzhula authored Nov 13, 2024
2 parents 51028f2 + a8b3d14 commit fd30c91
Show file tree
Hide file tree
Showing 27 changed files with 2,033 additions and 373 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- if: github.event_name == 'pull_request'
name: Lint commit messages
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
- run: npm run build
- run: npm test
publish:
name: "Publish"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/lib
/.idea

# Logs
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
artifacts/
coverage/
test/
src/
.gitignore
.npmignore
.nyc_output
Expand Down
276 changes: 0 additions & 276 deletions index.js

This file was deleted.

8 changes: 6 additions & 2 deletions nyc.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ module.exports = {
branches: [85, 100],
statements: [85, 100],
},
include: ['**/*.js'],
exclude: ['node_modules', 'test-results', 'test/*', '**/*.spec.js', '*.config.js'],
include: ['**/*.ts'],
exclude: ['node_modules', 'test-results', 'test/*', "**/*.d.ts", '**/*.spec.ts', '*.config.js'],
reporter: ['text', 'html', 'cobertura'],
cache: false,
all: true,
'temp-directory': './test-results/coverage/.tmp',
'report-dir': './test-results/coverage',
require: [
'ts-node/register',
'source-map-support/register'
],
};
Loading

0 comments on commit fd30c91

Please sign in to comment.