First attempt at Python port, expand tests.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import fs from 'node:fs/promises'
|
||||
import { useDocument } from '@terrace/core'
|
||||
import { createReadlineReader } from '@terrace/core/readers/node-readline'
|
||||
import { createFileReader } from '@terrace/core/readers/node-readline'
|
||||
|
||||
function useHelpers({ next, level, head, tail }) {
|
||||
|
||||
@@ -18,7 +18,7 @@ function useHelpers({ next, level, head, tail }) {
|
||||
}
|
||||
|
||||
async function buildPackage() {
|
||||
const { next, level, head, tail, match } = useDocument(createReadlineReader('./repo/package.tce'))
|
||||
const { next, level, head, tail, match } = useDocument(createFileReader('./repo/package.tce'))
|
||||
const { kvObject } = useHelpers({ next, level, head, tail })
|
||||
|
||||
const pkg = {}
|
||||
@@ -38,7 +38,7 @@ async function buildPackage() {
|
||||
}
|
||||
|
||||
async function buildTurbo() {
|
||||
const { next, level, head, tail, match } = useDocument(createReadlineReader('./repo/turbo.tce'))
|
||||
const { next, level, head, tail, match } = useDocument(createFileReader('./repo/turbo.tce'))
|
||||
const { kvObject } = useHelpers({ next, level, head, tail })
|
||||
|
||||
const turbo = {}
|
||||
|
||||
@@ -8,7 +8,7 @@ scripts
|
||||
build:repo node ./repo/build.js
|
||||
build turbo run build --cache-dir=.turbo
|
||||
dev turbo run dev --no-cache --force
|
||||
test turbo run test --no-cache --force
|
||||
test turbo run test --filter=@terrace/test --no-cache --force
|
||||
|
||||
devDependencies
|
||||
@terrace/core workspace:*
|
||||
|
||||
Reference in New Issue
Block a user