Skip to content

Commit

Permalink
chore: using adonisjs block to define instructions and removing instr…
Browse files Browse the repository at this point in the history
…uctions file

The newer API allows defining templates, types and env within the package file
vs creating instructions.ts file
  • Loading branch information
thetutlage committed Jan 12, 2020
1 parent d330c8d commit 3fb5229
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 44 deletions.
39 changes: 0 additions & 39 deletions instructions.ts

This file was deleted.

19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
"name": "@adonisjs/lucid",
"version": "7.0.1-0",
"description": "SQL ORM built on top of Active Record pattern",
"main": "build/index.js",
"main": "build/providers/DatabaseProvider.js",
"files": [
"build/src",
"build/adonis-typings",
"build/providers",
"build/config",
"build/instructions.js"
"build/templates"
],
"scripts": {
"mrm": "mrm --preset=@adonisjs/mrm-preset",
Expand All @@ -21,7 +20,7 @@
"lint": "tslint --project tsconfig.json",
"clean": "del build",
"compile": "npm run lint && npm run clean && tsc && npm run copy:files",
"copy:files": "copyfiles \"config/**/*.txt\" build",
"copy:files": "copyfiles \"templates/**/*.txt\" build",
"build": "npm run compile",
"commit": "git-cz",
"release": "np",
Expand Down Expand Up @@ -109,7 +108,17 @@
},
"keywords": [],
"adonisjs": {
"instructions": "./build/instructions.js"
"templates": {
"config": ["database.txt"]
},
"env": {
"DB_CONNECTION": "sqlite",
"DB_HOST": "127.0.0.1",
"DB_USER": "lucid",
"DB_PASSWORD": "lucid",
"DB_NAME": "lucid"
},
"types": "@adonisjs/lucid"
},
"np": {
"contents": ".",
Expand Down
File renamed without changes.

0 comments on commit 3fb5229

Please sign in to comment.