Skip to content

Commit

Permalink
feat: update package for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrpo committed Feb 28, 2024
1 parent 5544e2d commit 5221b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"bin": "./src/cli/index.js",
"scripts": {
"dev": "TS_NODE_FILES=true NODE_ENV=development ts-node ./src/cli",
"prod": "TS_NODE_FILES=true NODE_ENV=production ts-node ./src/cli prod",
"build": "rm -rf dist && tsc && copyfiles --up 1 \"src/**/*.hbs\" dist/src/ && copyfiles \"README.*\" dist/ && copyfiles \"CHANGELOG.*\" dist/",
"test": "jest --testPathIgnorePatterns 'tests/e2e/.*' 'example' --coverage",
"e2e": "make e2e",
Expand Down
2 changes: 1 addition & 1 deletion src/generators/javascript/templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export type ViolationHandler = (
violations: {{#if isDevelopment}}ErrorObject{{else}}any{{/if}}[]
) => void

{{#if isDevelopment}}
/**
* The default handler that is fired if none is supplied with setRudderTyperOptions.
{{#if isBrowser}}
Expand All @@ -58,7 +59,6 @@ export type ViolationHandler = (
* a warning message to the console.
{{/if}}
*/
{{#if isDevelopment}}
export const defaultValidationErrorHandler: ViolationHandler = (message, violations) => {
const msg = JSON.stringify({
type: 'RudderTyper JSON Schema Validation Error',
Expand Down

0 comments on commit 5221b7e

Please sign in to comment.