mirror of
https://github.com/logos-storage/codex-factory.git
synced 2026-05-24 01:39:26 +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:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
# Bee Factory
|
# Bee Factory
|
||||||
|
|
||||||
[](https://github.com/ethersphere/bee-factory/actions/workflows/tests.yaml)
|
[](https://github.com/ethersphere/bee-factory/actions/workflows/test.yaml)
|
||||||
[](https://david-dm.org/ethersphere/bee-factory)
|
|
||||||
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fethersphere%2Fbee-factory?ref=badge_shield)
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fethersphere%2Fbee-factory?ref=badge_shield)
|
||||||
[](https://swarm.ethereum.org/)
|
[](https://swarm.ethereum.org/)
|
||||||
[](https://github.com/RichardLitt/standard-readme)
|
[](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 * as path from 'path'
|
||||||
|
import { promisify } from 'util'
|
||||||
|
|
||||||
|
const readFile = promisify(readFileCb)
|
||||||
const VERSION_REGEX = /^\d\.\d\.\d(-\w+)*$/
|
const VERSION_REGEX = /^\d\.\d\.\d(-\w+)*$/
|
||||||
|
|
||||||
export function stripCommit(version: string): string {
|
export function stripCommit(version: string): string {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user