Skip to content

Commit

Permalink
export awst components as part of puya-ts instead ofa separate intern…
Browse files Browse the repository at this point in the history
…al module
  • Loading branch information
boblat committed Sep 27, 2024
1 parent b721c03 commit c118fc9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion .tstoolkitrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const config: TsToolkitConfig = {
exports: {
'.': 'index.ts',
'./cli': 'cli.ts',
'./internal': 'internal.ts',
},
bin: {
'puya-ts': 'bin/run-cli.ts',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@algorandfoundation/puya-ts",
"version": "1.0.0",
"description": "",
"types": "src/internal.ts",
"types": "src/index.ts",
"scripts": {
"postinstall": "npx patch-package",
"dev:examples": "tsx src/cli.ts build examples --output-awst --output-awst-json",
Expand Down
1 change: 0 additions & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const config: RollupOptions = {
input: {
index: 'src/index.ts',
cli: 'src/cli.ts',
internal: 'src/internal.ts',
'bin/run-cli': 'src/bin/run-cli.ts',
},
output: [
Expand Down
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import { createTsProgram } from './parser'
import { invokePuya } from './puya'
import type { PuyaPassThroughOptions } from './puya/options'

export { SourceLocation } from './awst/source-location'
export { anyPType, ContractClassPType, FunctionPType, PType } from './awst_build/ptypes'
export { registerPTypes } from './awst_build/ptypes/register'
export { typeRegistry } from './awst_build/type-registry'
export { TypeResolver } from './awst_build/type-resolver'

export type CompileResult = {
logs: LogEvent[]
programDirectory: string
Expand Down
5 changes: 0 additions & 5 deletions src/internal.ts

This file was deleted.

0 comments on commit c118fc9

Please sign in to comment.