Skip to content

Commit

Permalink
Merge pull request #2240 from evidence-dev/hotfix/sdk-scripts
Browse files Browse the repository at this point in the history
Update SDK package scripts
  • Loading branch information
zachstence authored Jul 19, 2024
2 parents 17b8f08 + ef3dd43 commit 0200449
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-doors-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/sdk': patch
---

Update scripts, fix build
5 changes: 2 additions & 3 deletions packages/lib/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@
}
},
"scripts": {
"prepack": "npm run check && npm run build",
"test": "vitest",
"check:types": "tsc -p tsconfig.json --noEmit",
"check": "tsc -p tsconfig.json --noEmit && eslint src",
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
"build": "tsc -p tsconfig.json --emitDeclarationOnly",
"build:types": "npm run check && tsc -p tsconfig.json --emitDeclarationOnly",
"build": "npm run check && tsc -p tsconfig.json --emitDeclarationOnly",
"format": "prettier src -w",
"lint": "eslint src --fix",
"cli": "node ./src/cli.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/sdk/src/build-dev/vite/virtuals-dynamic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getEvidenceConfig } from '../../configuration/getEvidenceConfig.js';
import { nanoid } from 'nanoid';
import { getEvidenceConfig } from '../../index.js';

export const build = () => `
export const BUILD_ID = import.meta.env.MODE === "development" ? "DEV" : "${nanoid(8)}";
Expand Down

0 comments on commit 0200449

Please sign in to comment.