Skip to content

Commit

Permalink
update npmignores (#476)
Browse files Browse the repository at this point in the history
### Description

A lot of our packages had extra files published. not terrible but not
clean either

#### Other changes

n/a

### Tested

trust me bro

### Related issues




<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the `.npmignore` files across various
packages in the SDK to include new configuration files for ESLint,
TypeScript, and documentation, as well as ensuring that `.d.ts` files
are properly included.

### Detailed summary
- Added `.eslintrc.js`, `eslint.tsconfig.json`, `typedoc.json`, and
`jestSetup.ts` to several packages.
- Maintained inclusion of `.d.ts` files in `.npmignore`.
- Updated `.npmignore` in `packages/viem-account-ledger` to include
`eslint.tsconfig.json`, `typedoc.json`, `.eslintrc.cjs`, and
`vitest.config.ts`.
- Ensured consistent structure across multiple package directories.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
aaronmgdr authored Dec 5, 2024
1 parent f37349e commit 059141e
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/base/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
*.ts

# include the .d.ts files
!lib/**/*.d.ts
!lib/**/*.d.ts
4 changes: 4 additions & 0 deletions packages/sdk/connect/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
/lib/**/*.test.*
/lib/test-utils

.eslintrc.js
eslint.tsconfig.json
typedoc.json

# exclude ts files and sourcemaps
*.map
*.ts
Expand Down
5 changes: 4 additions & 1 deletion packages/sdk/contractkit/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
/lib/**/*.test.*
/lib/test-utils

eslint.tsconfig.json
typedoc.json
.eslintrc.js
# exclude ts files and sourcemaps
*.map
*.ts

# include the .d.ts files
!lib/**/*.d.ts
!lib/**/*.d.ts
5 changes: 5 additions & 0 deletions packages/sdk/explorer/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@

/src

.eslintrc.js
eslint.tsconfig.json
typedoc.json
jestSetup.ts

/lib/**/*.test.*
/lib/test-utils
4 changes: 4 additions & 0 deletions packages/sdk/governance/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
/jest.config.*
*.tgz

.eslintrc.js
eslint.tsconfig.json
typedoc.json

/src

/lib/**/*.test.*
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/keystores/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
*.ts

# include the .d.ts files
!lib/**/*.d.ts
!lib/**/*.d.ts
8 changes: 7 additions & 1 deletion packages/sdk/metadata-claims/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@
/test
/src

tsconfig.tsbuildinfo
eslint.tsconfig.json
jest.config.js
.eslintrc.js
typedoc.json

# exclude ts files and sourcemaps
*.map
*.ts

# include the .d.ts files
!lib/**/*.d.ts
!lib/**/*.d.ts
5 changes: 5 additions & 0 deletions packages/sdk/network-utils/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@

/src

.eslintrc.js
eslint.tsconfig.json
typedoc.json
jestSetup.ts

/lib/**/*.test.*
/lib/test-utils
5 changes: 5 additions & 0 deletions packages/sdk/transactions-uri/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@

/src

.eslintrc.js
eslint.tsconfig.json
typedoc.json
jestSetup.ts

/lib/**/*.test.*
/lib/test-utils
4 changes: 4 additions & 0 deletions packages/sdk/wallets/wallet-base/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
/jest.config.*
*.tgz

.eslintrc.js
eslint.tsconfig.json
typedoc.json

/src

/lib/**/*.test.*
Expand Down
4 changes: 4 additions & 0 deletions packages/sdk/wallets/wallet-ledger/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
/jest.config.*
*.tgz

.eslintrc.js
eslint.tsconfig.json
typedoc.json

/src

/lib/**/*.test.*
Expand Down
7 changes: 6 additions & 1 deletion packages/viem-account-ledger/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@
/src

/lib/**/*.test.*
/lib/test-utils
/lib/test-utils

eslint.tsconfig.json
typedoc.json
.eslintrc.cjs
vitest.config.ts

0 comments on commit 059141e

Please sign in to comment.