Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stabel version #73

Merged
merged 3 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

#### [1.0.0](https://github.com/DIY0R/file-graph/compare/0.12.1...1.0.0)

- refactor: use absolute path [`efc7a18`](https://github.com/DIY0R/file-graph/commit/efc7a18438b48215c1cebab6a1c38a4bc5a643b1)

#### [0.12.1](https://github.com/DIY0R/file-graph/compare/0.12.0...0.12.1)

> 22 September 2024

- doc: improved documentation text and examples [`d234ab9`](https://github.com/DIY0R/file-graph/commit/d234ab9e1069af8b2bf4f26f5f97f1e894f52868)
- refactor: esModuleInterop true [`b0174d1`](https://github.com/DIY0R/file-graph/commit/b0174d1558eb52019d3dea98ef2743fc3cacb902)

Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
Expand Down
14 changes: 7 additions & 7 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import pluginJs from '@eslint/js';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import prettierPlugin from 'eslint-plugin-prettier';
import eslintConfigPrettier from 'eslint-config-prettier';
const pluginJs = require('@eslint/js');
const globals = require('globals');
const tseslint = require('typescript-eslint');
const prettierPlugin = require('eslint-plugin-prettier');
const eslintConfigPrettier = require('eslint-config-prettier');

/** @type {import('eslint').Linter.FlatConfig[]} */
export default tseslint.config(
module.exports = tseslint.config(
{
plugins: {
'@typescript-eslint': tseslint.plugin,
Expand All @@ -31,7 +31,7 @@ export default tseslint.config(
...globals.es2020,
},
parserOptions: {
project: ['tsconfig.json', 'tsconfig.build.json'],
project: 'tsconfig.json',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion lib/graph/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { asyncTaskQueue } from 'lib/utils';
import { asyncTaskQueue } from '../utils';
import FileGraphIml from './file.graph';
import StorageFile from './storage.file';

Expand Down
2 changes: 1 addition & 1 deletion lib/utils/merge-vertex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IVertex } from 'lib/interfaces';
import { IVertex } from '../interfaces';

export const mergeVertices = <T extends object>(
vertex: IVertex<T>,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"name": "file-graph",
"version": "0.12.1",
"version": "1.0.0",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"./dist"
],
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.build.json",
"build": "tsc -p tsconfig.cjs.json",
"prettier": "prettier 'lib/**/**.{js,ts}' 'test/**/**.{js,ts}' --check --ignore-unknown",
"prettier:fix": "prettier lib/**/**.{js,ts}' 'test/**/**.{js,ts}' -w",
"lint": "eslint",
Expand Down Expand Up @@ -59,6 +54,9 @@
"data-structure",
"network-analysis"
],
"files": [
"dist"
],
"npm": {
"publish": true
},
Expand Down
4 changes: 2 additions & 2 deletions test/graph.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import assert from 'node:assert';
import { before, describe, test } from 'node:test';
import { FileGraph, IUuidArray, uuidType } from 'lib';
import { FileGraph, IUuidArray, uuidType } from '../lib';
import { writeFileSync } from 'node:fs';
import { createError } from 'lib/utils';
import { createError } from '../lib/utils';

const pathGraph = 'data.txt';
const graph = FileGraph(pathGraph);
Expand Down
12 changes: 0 additions & 12 deletions tsconfig.build.json

This file was deleted.

11 changes: 11 additions & 0 deletions tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "./dist",
"target": "ES2015"
},
"exclude": [
"test/**/*"
]
}
11 changes: 4 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"compilerOptions": {
"module": "ESNext",
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"target": "ES2021",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"moduleResolution": "Node",
"baseUrl": ".",
"moduleResolution": "node",
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
Expand All @@ -20,13 +17,13 @@
},
"include": [
"lib/**/*",
"test/**/*",
"test/**/*"
],
"ignorePatterns": [
"commitlint.config.js"
],
"exclude": [
"node_modules",
"dist",
"dist"
]
}
Loading