Skip to content

Commit

Permalink
use .ts instead of .js file
Browse files Browse the repository at this point in the history
  • Loading branch information
kochis committed Jun 17, 2023
1 parent 09dacef commit 01da5e7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "radar-sdk-js",
"version": "4.0.0-beta.3",
"version": "4.0.0-beta.4",
"description": "",
"type": "module",
"module": "dist/radar.js",
Expand Down
4 changes: 2 additions & 2 deletions scripts/check-beta-tag.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ if (!tagVersion.includes('-beta')) {
}
tagVersion = tagVersion.slice(1); // remove "v"

const fileVersion = fs.readFileSync('./src/version.js')
const fileVersion = fs.readFileSync('./src/version.ts')
.toString()
.replace('export default', '')
.replaceAll('\'', '')
.replace(';', '')
.trim();

if (tagVersion !== fileVersion) {
console.error('VERSION MISMATCH - version does not match ./src/version.js');
console.error('VERSION MISMATCH - version does not match ./src/version.ts');
process.exit(1);
}
if (tagVersion !== packageJSON.version) {
Expand Down
4 changes: 2 additions & 2 deletions scripts/check-latest-tag.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ if (tagVersion.includes('-')) {
}
tagVersion = tagVersion.slice(1); // remove "v"

const fileVersion = fs.readFileSync('./src/version.js')
const fileVersion = fs.readFileSync('./src/version.ts')
.toString()
.replace('export default', '')
.replaceAll('\'', '')
.replace(';', '')
.trim();

if (tagVersion !== fileVersion) {
console.error('VERSION MISMATCH - version does not match ./src/version.js');
console.error('VERSION MISMATCH - version does not match ./src/version.ts');
process.exit(1);
}
if (tagVersion !== packageJSON.version) {
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default '4.0.0-beta.3';
export default '4.0.0-beta.4';
2 changes: 1 addition & 1 deletion test/version.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('VERSION', () => {
}
});

it('should match version in ./src/version.js', () => {
it('should match version in ./src/version.ts', () => {
if (RELEASE_TAG) {
expect(RELEASE_TAG.slice(1)).to.eq(VERSION);
}
Expand Down

0 comments on commit 01da5e7

Please sign in to comment.