Skip to content

Commit fd30c91

Browse files
Merge pull request #6 from namecheap/feat/moved-to-typescript
feat: rewrote code in TypeScript, introduced a crypto shim, and updated code to use the crypto shim
2 parents 51028f2 + a8b3d14 commit fd30c91

27 files changed

Lines changed: 2033 additions & 373 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- if: github.event_name == 'pull_request'
3333
name: Lint commit messages
3434
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
35+
- run: npm run build
3536
- run: npm test
3637
publish:
3738
name: "Publish"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/lib
12
/.idea
23

34
# Logs

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
artifacts/
22
coverage/
33
test/
4+
src/
45
.gitignore
56
.npmignore
67
.nyc_output

index.js

Lines changed: 0 additions & 276 deletions
This file was deleted.

nyc.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ module.exports = {
1010
branches: [85, 100],
1111
statements: [85, 100],
1212
},
13-
include: ['**/*.js'],
14-
exclude: ['node_modules', 'test-results', 'test/*', '**/*.spec.js', '*.config.js'],
13+
include: ['**/*.ts'],
14+
exclude: ['node_modules', 'test-results', 'test/*', "**/*.d.ts", '**/*.spec.ts', '*.config.js'],
1515
reporter: ['text', 'html', 'cobertura'],
1616
cache: false,
1717
all: true,
1818
'temp-directory': './test-results/coverage/.tmp',
1919
'report-dir': './test-results/coverage',
20+
require: [
21+
'ts-node/register',
22+
'source-map-support/register'
23+
],
2024
};

0 commit comments

Comments
 (0)