Skip to content

Commit 02c847e

Browse files
author
Xander Dumaine
authored
Merge pull request #53 from JupiterOne/convert-to-node
yarn->node
2 parents a8248a4 + 4bc4314 commit 02c847e

File tree

11 files changed

+12038
-6416
lines changed

11 files changed

+12038
-6416
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"root": true,
3-
"extends": ["@jupiterone/eslint-config/node"],
3+
"extends": ["@jupiterone/eslint-config/node18"],
44
"ignorePatterns": [
55
"node_modules/",
66
"dist/",

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
uses: actions/checkout@v2
2222

2323
- name: Install dependencies
24-
run: yarn
24+
run: npm ci
2525

2626
- name: Start containers and run tests
27-
run: yarn test:ci
27+
run: npm run test:ci
2828

2929
- name: Run build
30-
run: yarn build
30+
run: npm run build
3131

3232
# Publishing is done in a separate job to allow
3333
# for all matrix builds to complete.
@@ -70,6 +70,6 @@ jobs:
7070
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
7171
run: |
7272
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
73-
yarn
74-
yarn build
73+
npm ci
74+
npm run build
7575
npm publish ./dist

.huskyrc

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

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const { total } = await myDocumentDao.incr(
120120
// The `number` property to increment
121121
'total',
122122
// The number to increment by. Defaults to 1.
123-
5,
123+
5
124124
);
125125

126126
// `total` will have the value `-5`
@@ -133,7 +133,7 @@ const { total } = await myDocumentDao.decr(
133133
// The `number` property to increment
134134
'total',
135135
// The number to decrement by. Defaults to 1.
136-
5,
136+
5
137137
);
138138
```
139139

@@ -147,9 +147,9 @@ const { extra, total } = await myDocumentDao.multiIncr(
147147
accountId: 'def',
148148
},
149149
{
150-
'total': 5,
151-
'extra': -1,
152-
},
150+
total: 5,
151+
extra: -1,
152+
}
153153
);
154154
```
155155

@@ -204,19 +204,19 @@ first open one terminal and start the local DynamoDB docker container by
204204
running:
205205

206206
```
207-
yarn start:containers
207+
npm run start:containers
208208
```
209209

210210
In a second terminal run:
211211

212212
```
213-
yarn test
213+
npm test
214214
```
215215

216216
To stop containers:
217217

218218
```
219-
yarn stop:containers
219+
npm stop:containers
220220
```
221221

222222
## Releasing
@@ -227,7 +227,7 @@ been pushed and merged to the remote repository.
227227
Next, create a new branch and run the following command:
228228

229229
```
230-
yarn version --minor (or --major or --patch)
230+
npm version --minor (or --major or --patch)
231231
```
232232

233233
This will add a commit with an updated `package.json`, and create a new tag

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ services:
1414
volumes:
1515
- ./:/opt/work:delegated
1616
working_dir: /opt/work
17-
command: sh -c "yarn jest --ci"
17+
command: sh -c "npx jest --ci"

0 commit comments

Comments
 (0)