yamiteru / fluxus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selecting between Dev and Prod build.

Reusek opened this issue · comments

If you try to change NODE_ENV variable to development then its still using production build. Idk...

image

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);

Not relevant