From cf2d53dcad4a7316ff585adae7d14c0933a22bd9 Mon Sep 17 00:00:00 2001 From: sinkaroid Date: Sun, 11 Dec 2022 00:44:17 +0700 Subject: [PATCH] beefing with postinstall though --- .github/workflows/3hentai.yml | 2 ++ .github/workflows/asmhentai.yml | 2 ++ .github/workflows/hentai2read.yml | 2 ++ .github/workflows/hentaifox.yml | 2 ++ .github/workflows/nhentai.yml | 2 ++ .github/workflows/pururin.yml | 2 ++ .github/workflows/simply-hentai.yml | 2 ++ package.json | 3 +-- 8 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/3hentai.yml b/.github/workflows/3hentai.yml index 1807f5a..78955a7 100644 --- a/.github/workflows/3hentai.yml +++ b/.github/workflows/3hentai.yml @@ -23,6 +23,8 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install + - name: Build + run: npm run build - name: 3hentai test run: npm run test:3hentai \ No newline at end of file diff --git a/.github/workflows/asmhentai.yml b/.github/workflows/asmhentai.yml index 15332cb..58b9aaf 100644 --- a/.github/workflows/asmhentai.yml +++ b/.github/workflows/asmhentai.yml @@ -23,6 +23,8 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install + - name: Build + run: npm run build - name: Asmhentai test run: npm run test:asmhentai \ No newline at end of file diff --git a/.github/workflows/hentai2read.yml b/.github/workflows/hentai2read.yml index 62c0d87..080f77f 100644 --- a/.github/workflows/hentai2read.yml +++ b/.github/workflows/hentai2read.yml @@ -23,6 +23,8 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install + - name: Build + run: npm run build - name: Hentai2read test run: npm run test:hentai2read \ No newline at end of file diff --git a/.github/workflows/hentaifox.yml b/.github/workflows/hentaifox.yml index b6652c9..15cd308 100644 --- a/.github/workflows/hentaifox.yml +++ b/.github/workflows/hentaifox.yml @@ -23,6 +23,8 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install + - name: Build + run: npm run build - name: Hentaifox test run: npm run test:hentaifox \ No newline at end of file diff --git a/.github/workflows/nhentai.yml b/.github/workflows/nhentai.yml index 0f5c769..70d4c5d 100644 --- a/.github/workflows/nhentai.yml +++ b/.github/workflows/nhentai.yml @@ -23,6 +23,8 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install + - name: Build + run: npm run build - name: Nhentai test run: npm run test:nhentai \ No newline at end of file diff --git a/.github/workflows/pururin.yml b/.github/workflows/pururin.yml index 5c53276..bcf3cfe 100644 --- a/.github/workflows/pururin.yml +++ b/.github/workflows/pururin.yml @@ -23,6 +23,8 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install + - name: Build + run: npm run build - name: Pururin test run: npm run test:pururin \ No newline at end of file diff --git a/.github/workflows/simply-hentai.yml b/.github/workflows/simply-hentai.yml index f4483e6..3635a6b 100644 --- a/.github/workflows/simply-hentai.yml +++ b/.github/workflows/simply-hentai.yml @@ -23,6 +23,8 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install + - name: Build + run: npm run build - name: Simply-hentai test run: npm run test:simply-hentai \ No newline at end of file diff --git a/package.json b/package.json index 86e1b86..f37277b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Experimental doujin API with gather in mind", "main": "build/src/index.js", "scripts": { - "build": "tsc", + "build": "rm -rf build && tsc", "start": "node build/src/index.js", "test": "ts-node test/test.ts", "test:cf": "ts-node test/nhentaiCookietest.ts", @@ -12,7 +12,6 @@ "start:dev": "ts-node-dev src/index.ts", "lint": "npx eslint . --ext .ts", "lint:fix": "npx eslint . --fix", - "postinstall": "npm run build", "test:nhentai": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/nhentai/get?book=177013 | jq '.'\"", "test:pururin": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/pururin/get?book=47226 | jq '.'\"", "test:hentaifox": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/hentaifox/get?book=59026 | jq '.'\"",