Skip to content

Commit

Permalink
Remove webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Oct 3, 2024
1 parent ce8615a commit 4d7865f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build-and-publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run test build
run: npm run build-debug

- name: Run build
run: npm run build
- name: Run CI
run: npm run ci

- id: current-version
name: Get current version
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
],
"scripts": {
"test": "jest",
"build-debug": "npm run clean && webpack --mode development",
"build": "npm run clean && tsup src/index.ts --format esm --dts",
"build:watch": "npm run clean && tsup src/index.ts --format esm --dts --watch",
"clean": "rimraf dist",
"lint": "prettier --write .",
"build": "tsup",
"build:watch": "tsup --watch",
"check-types": "tsc --noEmit",
"check-format": "prettier --check .",
"format": "prettier --write .",
"ci": "npm run check-types && npm run check-format && npm run build",
"prepare": "husky install"
},
"lint-staged": {
Expand Down Expand Up @@ -45,9 +46,7 @@
"tsup": "^8.0.2",
"typescript": "5.4.5",
"util": "^0.12.4",
"vm-browserify": "^1.1.2",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
"vm-browserify": "^1.1.2"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/request/types/walletMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { MethodParamsAndResult, rpcRequestMessageSchema } from '../../types';
import * as v from 'valibot';
import { walletTypeSchema } from './common';
import { permissions } from '@secretkeylabs/xverse-core';
import { addressSchema } from 'src/addresses';
import { addressSchema } from '../../addresses';

/**
* Permissions with the clientId field omitted and optional actions. Used for
Expand Down
9 changes: 9 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'tsup';

export default defineConfig({
entryPoints: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
outDir: 'dist',
clean: true,
});

0 comments on commit 4d7865f

Please sign in to comment.