- Introduced a new optional field `registeredOn` to the asset input schema. - Updated asset values and persistence layers to handle the new field. - Enhanced tests to validate the behavior of the `registeredOn` field, including various date formats and null values. - Modified UI components to display the registration date in asset details and forms. - Added localization support for the new field in English and Spanish. - Implemented helper functions for formatting the registration date. - Created integration tests for reading and writing assets with the new field in the database.
33 lines
1.1 KiB
JSON
33 lines
1.1 KiB
JSON
{
|
|
"name": "@metis/server",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "node --env-file=../../.env --import tsx --watch src/index.ts",
|
|
"typecheck": "tsc -p tsconfig.json",
|
|
"test": "node --import tsx --test src/app.test.ts src/config/env-schema.test.ts src/infrastructure/http/http-error-diagnostic.test.ts && DB_NAME=metis_desk_test NODE_ENV=test node --env-file=../../.env --import tsx --test src/asset-inventory.integration.test.ts src/identity.test.ts",
|
|
"build": "tsup --config tsup.config.ts",
|
|
"start": "node --env-file=../../.env dist/index.js"
|
|
},
|
|
"dependencies": {
|
|
"@metis/assets": "workspace:*",
|
|
"@metis/companies": "workspace:*",
|
|
"@metis/core": "workspace:*",
|
|
"@metis/identity": "workspace:*",
|
|
"@metis/resources": "workspace:*",
|
|
"express": "4.22.1",
|
|
"express-session": "1.19.0",
|
|
"helmet": "8.1.0",
|
|
"mariadb": "3.5.4",
|
|
"sequelize": "6.37.8",
|
|
"zod": "4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@repo/typescript-config": "workspace:*",
|
|
"@types/express": "4.17.21",
|
|
"@types/express-session": "^1.18.2",
|
|
"tsup": "8.5.1"
|
|
}
|
|
}
|