Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
patinthehat committed Mar 8, 2024
1 parent ec0b6a1 commit 400e96b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/node_modules
/dist
/dist-test*
/dist-temp
/coverage
/build

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"lint:fix": "./node_modules/.bin/eslint --ext ts,js --fix src/",
"lint:staged": "./node_modules/.bin/lint-staged",
"fix": "npm run fmt && npm run lint:fix",
"build:dev": "BUILD_ENV=developmentnode scripts/build.js",
"build:release": "BUILD_ENV=production node scripts/build.js",
"build:dev": "BUILD_ENV=development node ./scripts/build.js",
"build:release": "BUILD_ENV=production node ./scripts/build.js",
"postversion": "npm run build:release",
"version": "auto-changelog -p -o CHANGELOG.md --hide-credit --release-summary --hide-empty-releases --sort-commits date-desc && git add CHANGELOG.md",
"prepare": "is-ci || husky install"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig, build as viteBuild } from 'vite';

const outputDir = process.env.BUILD_ENV !== 'production' ? 'dist-test-2' : 'dist';
const outputDir = process.env.BUILD_ENV !== 'production' ? 'dist-temp' : 'dist';

export const globalConfig = {
libraryName: 'Ray',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// this is replaced with the actual package version by rollup

// @ts-ignore
export const PACKAGE_VERSION = typeof __BUILD_VERSION__ === 'undefined' ? '0.0.0' : __BUILD_VERSION__;
export const PACKAGE_VERSION = __BUILD_VERSION__ || '0.0.0';

Check failure on line 5 in src/lib/version.ts

View workflow job for this annotation

GitHub Actions / tests (18)

tests/Ray.test.ts

ReferenceError: __BUILD_VERSION__ is not defined ❯ src/lib/version.ts:5:32 ❯ src/Ray.ts:48:32

Check failure on line 5 in src/lib/version.ts

View workflow job for this annotation

GitHub Actions / tests (18)

tests/RayNode.test.ts

ReferenceError: __BUILD_VERSION__ is not defined ❯ src/lib/version.ts:5:32 ❯ src/Ray.ts:48:32

Check failure on line 5 in src/lib/version.ts

View workflow job for this annotation

GitHub Actions / tests (18)

tests/Settings.test.ts

ReferenceError: __BUILD_VERSION__ is not defined ❯ src/lib/version.ts:5:32 ❯ src/Ray.ts:48:32

Check failure on line 5 in src/lib/version.ts

View workflow job for this annotation

GitHub Actions / tests (20)

tests/Ray.test.ts

ReferenceError: __BUILD_VERSION__ is not defined ❯ src/lib/version.ts:5:32 ❯ src/Ray.ts:48:32

Check failure on line 5 in src/lib/version.ts

View workflow job for this annotation

GitHub Actions / tests (20)

tests/RayNode.test.ts

ReferenceError: __BUILD_VERSION__ is not defined ❯ src/lib/version.ts:5:32 ❯ src/Ray.ts:48:32

Check failure on line 5 in src/lib/version.ts

View workflow job for this annotation

GitHub Actions / tests (20)

tests/Settings.test.ts

ReferenceError: __BUILD_VERSION__ is not defined ❯ src/lib/version.ts:5:32 ❯ src/Ray.ts:48:32

0 comments on commit 400e96b

Please sign in to comment.