Skip to content

Commit

Permalink
Emit declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit committed Jul 5, 2024
1 parent 460b91c commit ede387e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 71 deletions.
46 changes: 2 additions & 44 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ web_modules/
# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

Expand All @@ -79,46 +73,10 @@ web_modules/
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

Expand All @@ -130,5 +88,5 @@ dist
.pnp.*


*.js
!index.js
/*.js
/*.d.ts
21 changes: 0 additions & 21 deletions index.js

This file was deleted.

1 change: 0 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export * from './importRewardsDistributors';
export * from './importSpotMarketProxy';
export * from './importSynthTokens';
export * from './importSystemToken';
export * from './index';
export * from './parseError';
export * from './useErrorParser';
export * from './useImports';
Expand Down
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "index.js",
"types": "index.ts",
"main": "./index.js",
"types": "./index.d.ts",
"exports": {
".": {
"module": "./index.js",
"types": "./index.d.ts"
}
},
"repository": "synthetixio/react-sdk",
"files": [
"*.js",
"*.ts"
"./*.ts",
"./*.js"
],
"scripts": {
"start": "tsc --watch",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"declaration": true,
"module": "ESNext",
"skipLibCheck": true,
"moduleResolution": "Bundler",
Expand Down

0 comments on commit ede387e

Please sign in to comment.