-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
925abf4
commit a58e5b1
Showing
12 changed files
with
85 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
import type { TsToolkitConfig } from "@makerx/ts-toolkit"; | ||
import type { TsToolkitConfig } from '@makerx/ts-toolkit' | ||
|
||
const config: TsToolkitConfig = { | ||
packageConfig: { | ||
srcDir: 'src', | ||
exportTypes: 'module', | ||
outDir: 'dist', | ||
moduleType: 'module', | ||
exports: { | ||
'.': 'index.ts', | ||
'./cli': 'cli.ts', | ||
'./internal': 'internal.ts' | ||
} | ||
} | ||
'./internal': 'internal.ts', | ||
}, | ||
bin: { | ||
'puya-ts': 'bin/run-cli.ts', | ||
puyats: 'bin/run-cli.ts', | ||
}, | ||
}, | ||
} | ||
export default config |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* eslint-disable no-console */ | ||
import fs from 'fs' | ||
|
||
const AlgoTsPackageName = '@algorandfoundation/algo-ts' | ||
const newVersion = process.argv[2] | ||
|
||
const SemVersionReg = /^\d+\.\d+\.\d+(-((beta)|(alpha))(\.\d+)?)?$/ | ||
|
||
if (!SemVersionReg.test(newVersion)) { | ||
console.error(`Arg 2 of '${newVersion}' should be an npm compatible semantic version number`) | ||
process.exit(1) | ||
} | ||
|
||
if (!fs.existsSync('package.json')) { | ||
console.error('No package.json file could be found in the current working directory') | ||
process.exit(2) | ||
} | ||
|
||
console.info('Loading package.json file') | ||
const pkgJsonText = fs.readFileSync('package.json', 'utf-8') | ||
const pkgJsonObj = JSON.parse(pkgJsonText) | ||
|
||
if (!pkgJsonObj['peerDependencies']) { | ||
pkgJsonObj['peerDependencies'] = {} | ||
} | ||
console.info(`Setting peer dependency on ${AlgoTsPackageName} to ${newVersion}`) | ||
pkgJsonObj['peerDependencies'][AlgoTsPackageName] = newVersion | ||
|
||
fs.writeFileSync('package.json', JSON.stringify(pkgJsonObj, undefined, 2)) | ||
console.info('Writing updated package.json') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env node | ||
|
||
import '../cli' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters