Skip to content

Commit d7c8cec

Browse files
committed
Update packages and switch to github instead of npm
1 parent c732ddd commit d7c8cec

File tree

7 files changed

+1860
-1631
lines changed

7 files changed

+1860
-1631
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
node-version: '18.x'
3232
cache: 'pnpm'
33-
registry-url: 'https://registry.npmjs.org'
33+
registry-url: 'https://npm.pkg.github.com'
3434
scope: '@loopexchange-labs'
3535

3636
- name: Setup Go environment
@@ -65,4 +65,4 @@ jobs:
6565
- run: pnpm exec nx publish loopring-sdk --ver ${{ github.event.release.tag_name }} --tag latest
6666
if: github.event_name == 'release'
6767
env:
68-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
68+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

nx.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
"codeCoverage": true
2525
}
2626
}
27+
},
28+
"@nx/eslint:lint": {
29+
"inputs": [
30+
"default",
31+
"{workspaceRoot}/.eslintrc.json",
32+
"{workspaceRoot}/.eslintignore"
33+
],
34+
"cache": true
2735
}
2836
},
2937
"namedInputs": {
@@ -42,5 +50,6 @@
4250
"workspaceLayout": {
4351
"appsDir": "packages",
4452
"libsDir": "packages"
45-
}
53+
},
54+
"useInferencePlugins": false
4655
}

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,33 @@
88
"tslib": "^2.6.2"
99
},
1010
"devDependencies": {
11-
"@nx/devkit": "17.1.3",
12-
"@nx/eslint-plugin": "17.1.3",
13-
"@nx/jest": "17.1.3",
14-
"@nx/js": "17.1.3",
15-
"@nx/vite": "17.1.3",
16-
"@nx/workspace": "17.1.3",
17-
"@openapitools/openapi-generator-cli": "^2.7.0",
18-
"@types/jest": "^29.5.7",
19-
"@types/node": "18.14.2",
20-
"@typescript-eslint/eslint-plugin": "6.10.0",
21-
"@typescript-eslint/parser": "6.10.0",
22-
"eslint": "~8.46.0",
11+
"@nx/devkit": "18.1.2",
12+
"@nx/eslint": "18.1.2",
13+
"@nx/eslint-plugin": "18.1.2",
14+
"@nx/jest": "18.1.2",
15+
"@nx/js": "18.1.2",
16+
"@nx/vite": "18.1.2",
17+
"@nx/workspace": "18.1.2",
18+
"@openapitools/openapi-generator-cli": "^2.13.1",
19+
"@types/jest": "^29.5.12",
20+
"@types/node": "18.19.26",
21+
"@typescript-eslint/eslint-plugin": "6.21.0",
22+
"@typescript-eslint/parser": "6.21.0",
23+
"eslint": "8.48.0",
2324
"eslint-config-prettier": "9.0.0",
2425
"jest": "^29.7.0",
2526
"jest-environment-jsdom": "^29.7.0",
2627
"jest-environment-node": "^29.7.0",
27-
"nx": "17.1.3",
28+
"nx": "18.1.2",
2829
"prettier": "^2.8.8",
29-
"ts-jest": "^29.1.1",
30+
"ts-jest": "^29.1.2",
3031
"ts-node": "10.9.1",
31-
"typescript": "5.2.2",
32-
"verdaccio": "^5.27.0",
33-
"vite": "~4.3.9",
32+
"typescript": "5.3.3",
33+
"verdaccio": "^5.29.2",
34+
"vite": "5.2.2",
3435
"vite-plugin-dts": "~2.3.0",
35-
"vite-plugin-static-copy": "^0.17.0",
36-
"whatwg-fetch": "^3.6.19",
37-
"@nx/eslint": "17.1.3"
36+
"vite-plugin-static-copy": "^0.17.1",
37+
"whatwg-fetch": "^3.6.20"
3838
},
3939
"nx": {
4040
"includedScripts": []

packages/loopring-sdk/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@
2424
},
2525
"lint": {
2626
"executor": "@nx/eslint:lint",
27-
"outputs": ["{options.outputFile}"],
28-
"options": {
29-
"lintFilePatterns": [
30-
"packages/loopring-sdk/**/*.ts",
31-
"packages/loopring-sdk/package.json"
32-
]
33-
}
27+
"outputs": ["{options.outputFile}"]
3428
},
3529
"tsc": {
3630
"executor": "nx:run-commands",

packages/loopring-sdk/vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { viteStaticCopy } from 'vite-plugin-static-copy';
77
import * as path from 'path';
88

99
export default defineConfig({
10+
root: __dirname,
1011
cacheDir: '../../node_modules/.vite/loopring-sdk',
1112

1213
plugins: [
@@ -40,6 +41,9 @@ export default defineConfig({
4041
// Configuration for building your library.
4142
// See: https://vitejs.dev/guide/build.html#library-mode
4243
build: {
44+
outDir: '../../dist/packages/loopring-sdk',
45+
reportCompressedSize: true,
46+
commonjsOptions: { transformMixedEsModules: true },
4347
lib: {
4448
// Could also be a dictionary or array of multiple entry points.
4549
entry: 'src/index.ts',

0 commit comments

Comments
 (0)