Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
179e3d04
Unverified
Commit
179e3d04
authored
Mar 06, 2023
by
Will Cory
Committed by
GitHub
Mar 06, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5045 from ethereum-optimism/willc/atst-seperate-react
feat(atst): Seperate react into a different build target
parents
33e3fcdd
ca9ae003
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
5 deletions
+22
-5
metal-feet-give.md
.changeset/metal-feet-give.md
+5
-0
package.json
packages/atst/package.json
+14
-0
index.ts
packages/atst/src/index.ts
+0
-2
getEvents.ts
packages/atst/src/lib/getEvents.ts
+1
-1
ParseBytesReturn.ts
packages/atst/src/types/ParseBytesReturn.ts
+1
-1
tsup.config.ts
packages/atst/tsup.config.ts
+1
-1
No files found.
.changeset/metal-feet-give.md
0 → 100644
View file @
179e3d04
---
'
@eth-optimism/atst'
:
minor
---
Move react api to @eth-optimism/atst/react so react isn't required to run the core sdk
packages/atst/package.json
View file @
179e3d04
...
...
@@ -6,6 +6,20 @@
"types"
:
"src/index.ts"
,
"module"
:
"dist/index.cjs"
,
"license"
:
"MIT"
,
"exports"
:
{
"."
:
{
"types"
:
"./src/index.ts"
,
"default"
:
"./dist/index.js"
,
"import"
:
"./dist/index.js"
,
"require"
:
"./dist/index.cjs"
},
"./react"
:
{
"types"
:
"./src/react.ts"
,
"default"
:
"./dist/react.js"
,
"import"
:
"./dist/react.js"
,
"require"
:
"./dist/react.cjs"
}
},
"bin"
:
{
"atst"
:
"./dist/cli.js"
},
...
...
packages/atst/src/index.ts
View file @
179e3d04
...
...
@@ -28,5 +28,3 @@ export type { AttestationCreatedEvent } from './types/AttestationCreatedEvent'
export
type
{
AttestationReadParams
}
from
'
./types/AttestationReadParams
'
export
type
{
DataTypeOption
}
from
'
./types/DataTypeOption
'
export
type
{
WagmiBytes
}
from
'
./types/WagmiBytes
'
// react
export
*
from
'
./react
'
packages/atst/src/lib/getEvents.ts
View file @
179e3d04
import
{
ethers
}
from
'
ethers
'
import
{
Address
}
from
'
wagmi
'
import
type
{
Address
}
from
'
@wagmi/core
'
import
{
ATTESTATION_STATION_ADDRESS
}
from
'
../constants/attestationStationAddress
'
import
{
abi
}
from
'
../lib/abi
'
...
...
packages/atst/src/types/ParseBytesReturn.ts
View file @
179e3d04
import
{
BigNumber
}
from
'
ethers
'
import
{
Address
}
from
'
wagmi
'
import
type
{
Address
}
from
'
@wagmi/core
'
import
{
DataTypeOption
}
from
'
./DataTypeOption
'
import
{
WagmiBytes
}
from
'
./WagmiBytes
'
...
...
packages/atst/tsup.config.ts
View file @
179e3d04
...
...
@@ -10,7 +10,7 @@ export default defineConfig({
*
* @see https://tsup.egoist.dev/#building-cli-app
*/
entry
:
[
'
src/index.ts
'
,
'
src/cli.ts
'
],
entry
:
[
'
src/index.ts
'
,
'
src/cli.ts
'
,
'
src/react.ts
'
],
outDir
:
'
dist
'
,
target
:
'
es2021
'
,
// will create a .js file for commonjs and a .cjs file for esm
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment