Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Regenerating service doesn't work (deletes my schema changes) #23

Closed
pkej opened this issue Jul 16, 2018 · 1 comment
Closed

Regenerating service doesn't work (deletes my schema changes) #23

pkej opened this issue Jul 16, 2018 · 1 comment

Comments

@pkej
Copy link

pkej commented Jul 16, 2018

Steps to reproduce

(First please check that this issue is not already solved as described
here
)

  • [ x] Tell us what broke. The more detailed the better.

I'm following the Get Started-tutorial. When updating the users model by updating the users.schema.js file and running feathers-plus generate service "nothing" happens, my changes are removed.

I'm using js and the following options:

  "options": {
    "ver": "1.0.0",
    "inspectConflicts": true,
    "semicolons": true,
    "freeze": [],
    "ts": false
  },
  • [ x] If you can, please create a simple example that reproduces the issue and link to a gist, jsbin, repo, etc.

Exact code as in the Feathers Models adding the Feathers Model.

Expected behavior

The users.schema.js file should keep the schema changes I added when regenerating the service and fill in the other modules. Command used:

feathers-plus generate service

Actual behavior

The users.schema.js file is reset to default empty state, nothing is generated.

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working):

 "dependencies": {
    "@feathersjs/authentication": "^2.1.7",
    "@feathersjs/authentication-jwt": "^2.0.1",
    "@feathersjs/authentication-local": "^1.2.1",
    "@feathersjs/configuration": "^1.0.2",
    "@feathersjs/errors": "^3.3.0",
    "@feathersjs/express": "^1.2.3",
    "@feathersjs/feathers": "^3.1.7",
    "@feathersjs/primus": "^3.2.1",
    "@feathersjs/socketio": "^3.2.2",
    "ajv": "^6.5.2",
    "compression": "^1.7.2",
    "cors": "^2.8.4",
    "feathers-hooks-common": "^4.11.0",
    "feathers-sequelize": "^3.1.2",
    "helmet": "^3.12.1",
    "lodash.merge": "^4.6.1",
    "mysql2": "^1.5.3",
    "sequelize": "^4.38.0",
    "serve-favicon": "^2.5.0",
    "winston": "^3.0.0",
    "ws": "^5.2.2"
  },

feathers-plus v0.4.11
Using generator version 0.2.16

NodeJS version:
node v8.10.0

Operating System:
Windows 10 Enterprise 1709 build 16299.431

@pkej
Copy link
Author

pkej commented Jul 16, 2018

Wrong project, should be in the feathers-plus/cli, I believe. Moved there.

@pkej pkej closed this as completed Jul 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant