Skip to content

Commit

Permalink
new version file script (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
RLesser authored Aug 5, 2024
1 parent b55eff3 commit 5c0d7ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"build-types": "openapi-typescript https://api-atlas.nomic.ai/v1/api-reference/openapi.json -o ./src/type-gen/openapi.d.ts",
"build": "tsc",
"build:watch": "tsc -w",
"prepublish": "npm run build",
"insert-version": "node -e \"const fs = require('fs'); const pkg = require('./package.json'); fs.writeFileSync('./src/version.ts', 'export const version = \\'' + pkg.version + '\\';');\"",
"prepublishOnly": "npm run insert-version && npm run build",
"precommit": "pretty-quick --staged",
"prepare": "husky install .husky"
},
Expand Down
1 change: 1 addition & 0 deletions src/version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const version = '0.10.1';
2 changes: 1 addition & 1 deletion src/viewer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Table, tableFromIPC } from 'apache-arrow';
import { version } from '../package.json';
import { version } from './version';

export class AtlasViewer {
/*
Expand Down

0 comments on commit 5c0d7ac

Please sign in to comment.