fix(build): modernize project configuration and tighten Node.js typing support

This commit is contained in:
2026-04-30 18:19:27 +00:00
parent ff0bc72408
commit 8ed7413e62
13 changed files with 2224 additions and 2657 deletions
+5 -3
View File
@@ -2,7 +2,8 @@ import { tap, expect } from '@git.zone/tstest/tapbundle';
import * as smartgit from '../ts/index.js';
import * as smartpath from '@push.rocks/smartpath';
import * as path from 'path';
import * as fs from 'node:fs/promises';
import * as path from 'node:path';
let testSmartgitInstance: smartgit.Smartgit;
const packageDir = path.join(smartpath.get.dirnameFromImportMetaUrl(import.meta.url), '../');
@@ -20,8 +21,9 @@ tap.test('should create a new repo at .nogit', async () => {
});
tap.test('should clone a repo', async () => {
await fs.rm(testRepoDirSmartfile, { recursive: true, force: true });
const gitRepo = await testSmartgitInstance.createRepoByClone(
'https://gitlab.com/push.rocks/smartfile.git',
'https://code.foss.global/push.rocks/smartfile.git',
testRepoDirSmartfile
);
});
@@ -48,4 +50,4 @@ tap.test('should print all commit messages', async () => {
console.log(commitMessages);
});
await tap.start();
export default tap.start();