Skip to content

Commit 4a50a34

Browse files
committed
refactor(grabber): move grabber sources into src directory
1 parent 70cc3d2 commit 4a50a34

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
"name": "nyaa-stats",
33
"version": "2.1.0",
44
"description": "Web Stats for NyaaCat",
5-
"main": "index.ts",
5+
"main": "src/index.ts",
66
"engines": {
77
"node": ">=12.18.0"
88
},
99
"directories": {
1010
"test": "test"
1111
},
1212
"scripts": {
13-
"start": "ts-node index",
14-
"lint": "eslint --fix *.js *.ts",
13+
"start": "ts-node .",
14+
"lint": "eslint --fix src/**/*.ts tests/**/*.js *.js",
1515
"test": "jest"
1616
},
1717
"repository": {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

utils.ts renamed to src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/// <reference types="./types/minecraft" />
2-
/// <reference types="./types/nyaa-stats" />
1+
/// <reference types="../types/minecraft" />
2+
/// <reference types="../types/nyaa-stats" />
33

44
import fs from 'fs-extra'
55
import path from 'path'

tests/config.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path'
22

3-
import {loadConfig} from '../utils'
3+
import {loadConfig} from '../src/utils'
44

55
describe('config', () => {
66
const configPath = path.resolve(__dirname, './mocks/config.yml')

0 commit comments

Comments
 (0)