Skip to content

Commit

Permalink
move build script into each generated thing
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Sep 13, 2024
1 parent 88932d0 commit 3a01c0a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"scripts": {
"test": "standard && brittle test/*.js",
"generate": "node builder/bin.js test/fixtures/build.js test/fixtures/generated --force --test-fixture"
"generate": "node test/fixtures/generate.js"
},
"dependencies": {
"b4a": "^1.6.6",
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/generate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('./generated/1/build.js')
6 changes: 3 additions & 3 deletions test/fixtures/build.js → test/fixtures/generated/1/build.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const HyperDB = require('../../builder')
const HyperDB = require('../../../../builder')
const Hyperschema = require('hyperschema')
const path = require('path')

const SCHEMA_DIR = path.join(__dirname, './generated/1/hyperschema')
const DB_DIR = path.join(__dirname, './generated/1/hyperdb')
const SCHEMA_DIR = path.join(__dirname, 'hyperschema')
const DB_DIR = path.join(__dirname, 'hyperdb')

const schema = Hyperschema.from(SCHEMA_DIR)

Expand Down

0 comments on commit 3a01c0a

Please sign in to comment.