Skip to content

Commit

Permalink
fix: update generate-op-ptypes script instead of directly editing op-…
Browse files Browse the repository at this point in the history
…ptypes
  • Loading branch information
boblat committed Nov 6, 2024
1 parent 49908d0 commit 8d69152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/generate-op-ptypes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { camelCase, pascalCase } from 'change-case'
import * as fs from 'fs'
import { camelCase } from 'change-case'
import type { EnumDef, OpModule } from './build-op-module'
import { buildOpModule, ENUMS_TO_EXPOSE } from './build-op-module'

Expand All @@ -16,7 +16,7 @@ function* emitHeader() {
function* emitTypes(module: OpModule) {
function* emitEnumPType(enumDef: EnumDef) {
yield `export const ${camelCase(enumDef.tsName)}PType = new IntrinsicEnumType({
name: '${enumDef.name}',
name: '${pascalCase(enumDef.name)}',
module: \`\${Constants.algoTsPackage}/op-types.d.ts\`,
members: [`
for (const member of enumDef.members) {
Expand Down
2 changes: 1 addition & 1 deletion src/awst_build/ptypes/op-ptypes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* THIS FILE IS GENERATED BY ~/scripts/generate-op-ptypes.ts - DO NOT MODIFY DIRECTLY */
import { Constants } from '../../constants'
import { IntrinsicEnumType } from './intrinsic-enum-type'
import { Constants } from '../../constants'

export const base64PType = new IntrinsicEnumType({
name: 'Base64',
Expand Down

0 comments on commit 8d69152

Please sign in to comment.