Selecting between Dev and Prod build.
Reusek opened this issue · comments
Albert Klinkovský commented
If you try to change NODE_ENV variable to development then its still using production build. Idk...
package.json
{
"name": "fluxus_test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"fluxus": "^0.0.6",
"ts-node": "^10.9.1"
}
}
import {parse, number_type, object, string_type} from "fluxus";
const userData = {
name: "John",
age: ""
};
const user = object({
name: string_type,
age: number_type
});
const parsed = parse(user, userData);
console.log(parsed);
Yamiteru commented
Not relevant