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 '.'\"",