Skip to content

Commit 83c4598

Browse files
authored
Merge pull request #43 from afterpay/pedro/new-node-registry
Update project base to comply with Block's new infosec rules
2 parents d336d35 + ee31913 commit 83c4598

8 files changed

Lines changed: 42 additions & 4510 deletions

File tree

.github/workflows/build-and-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Install Dependencies
18-
run: npm ci
18+
run: npm install
1919

2020
- name: Build
2121
run: npm run build

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,5 @@ typings/
9696

9797
# Ignore built ts files
9898
dist/**/*
99+
/.idea/
100+
package-lock.json

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,22 @@ export AFTERPAY_SECRET_KEY="************"
4646

4747
### Running the Server
4848

49-
Install dependencies:
49+
**Install dependencies:**
5050

5151
```sh
5252
npm install
5353
```
5454

55-
Build the server:
55+
**Note**, Block employees only: should also follow extra setup instructions present at `go/ap-sdk-docs`.
56+
57+
---
58+
**Build the server:**
5659

5760
```sh
5861
npm run build
5962
```
6063

61-
Run the server:
64+
**Run the server:**
6265

6366
```sh
6467
npm run start

eslint.config.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import tsParser from '@typescript-eslint/parser';
2+
import tsPlugin from '@typescript-eslint/eslint-plugin';
3+
4+
export default [
5+
{
6+
files: ["src/**/*.ts"],
7+
plugins: {
8+
'@typescript-eslint': tsPlugin
9+
},
10+
languageOptions: {
11+
parser: tsParser,
12+
parserOptions: {
13+
project: './tsconfig.json'
14+
}
15+
}
16+
}
17+
];

0 commit comments

Comments
 (0)