adonis-inertia
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -22,3 +22,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const path_1 = require("path"); | ||
const sinkStatic = __importStar(require("@adonisjs/sink")); | ||
@@ -56,5 +55,4 @@ /** | ||
*/ | ||
async function instructions(projectRoot, sink) { | ||
// ... | ||
const pkg = new sink.files.PackageJsonFile(projectRoot); | ||
async function instructions(sink) { | ||
const pkg = new sink.files.PackageJsonFile('.'); | ||
pkg.install('@inertiajs/inertia'); | ||
@@ -77,5 +75,7 @@ const frontendFramework = await getFrontendFramework(sink); | ||
} | ||
sink.logger.info(`Installing packages: ${pkg.getInstalls().list.join(', ')}`); | ||
await pkg.commitAsync(); | ||
sink.logger.success('Packages installed!'); | ||
} | ||
exports.default = instructions; | ||
instructions(path_1.join(__dirname, 'sample'), sinkStatic).catch(console.log); | ||
instructions(sinkStatic).catch(console.log); |
{ | ||
"name": "adonis-inertia", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"main": "build/providers/InertiaProvider.js", | ||
@@ -5,0 +5,0 @@ "types": "build/adonis-typings/index.d.ts", |
6592