mirror of
https://github.com/logos-storage/codex-factory.git
synced 2026-01-02 13:03:07 +00:00
fix: dont use promise fs namespace for node12 support (#97)
This commit is contained in:
parent
08e6da2259
commit
bef03cabc8
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@ -1,4 +1,4 @@
|
||||
name: Node.js tests
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
# Bee Factory
|
||||
|
||||
[](https://github.com/ethersphere/bee-factory/actions/workflows/tests.yaml)
|
||||
[](https://david-dm.org/ethersphere/bee-factory)
|
||||
[](https://github.com/ethersphere/bee-factory/actions/workflows/test.yaml)
|
||||
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fethersphere%2Fbee-factory?ref=badge_shield)
|
||||
[](https://swarm.ethereum.org/)
|
||||
[](https://github.com/RichardLitt/standard-readme)
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
import { readFile } from 'fs/promises'
|
||||
import { readFile as readFileCb } from 'fs'
|
||||
import * as path from 'path'
|
||||
import { promisify } from 'util'
|
||||
|
||||
const readFile = promisify(readFileCb)
|
||||
const VERSION_REGEX = /^\d\.\d\.\d(-\w+)*$/
|
||||
|
||||
export function stripCommit(version: string): string {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user