diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 023d88e4..3c4d6ef3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,7 @@ jobs: ${{ runner.os }}-node-${{matrix.node-version}}- - run: npm ci - run: npm run bootstrap + - run: npm run build - run: npm test - name: Coveralls GitHub Action uses: coverallsapp/github-action@master diff --git a/documentation/package-lock.json b/documentation/package-lock.json index ef74c828..f5bfe951 100644 --- a/documentation/package-lock.json +++ b/documentation/package-lock.json @@ -2897,6 +2897,15 @@ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz", "integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==" }, + "bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "optional": true, + "requires": { + "file-uri-to-path": "1.0.0" + } + }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -5219,6 +5228,12 @@ "escape-string-regexp": "^1.0.5" } }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "optional": true + }, "filesize": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/filesize/-/filesize-6.0.1.tgz", @@ -7716,6 +7731,12 @@ "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" }, + "nan": { + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz", + "integrity": "sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==", + "optional": true + }, "nanomatch": { "version": "1.2.13", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", @@ -12524,7 +12545,11 @@ "version": "1.2.13", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", - "optional": true + "optional": true, + "requires": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + } }, "glob-parent": { "version": "3.1.0", @@ -13078,7 +13103,11 @@ "version": "1.2.13", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", - "optional": true + "optional": true, + "requires": { + "bindings": "^1.5.0", + "nan": "^2.12.1" + } }, "glob-parent": { "version": "3.1.0", diff --git a/package.json b/package.json index 3908d881..d373cb03 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "lerna run build", "lerna:pub": "lerna publish from-git", "lerna:version": "lerna version", + "release": "npm run build && npm run lerna:version && npm lerna:pub", "test": "npm run lint && npm run jest && npm run examples", "lint": "npm run lint:ts && npm run lint:js", "lint:fix": "npm run lint:ts -- --fix && npm runlint:js -- --fix", diff --git a/packages/fast-csv/package.json b/packages/fast-csv/package.json index 2090d2f8..edd0c312 100644 --- a/packages/fast-csv/package.json +++ b/packages/fast-csv/package.json @@ -5,7 +5,7 @@ "main": "./build/src/index.js", "types": "./build/src/index.d.ts", "scripts": { - "prepare": "npm run build", + "prepublishOnly": "npm run build", "build": "npm run clean && npm run compile", "clean": "rm -rf ./build && rm -rf tsconfig.tsbuildinfo", "compile": "tsc -p tsconfig.build.json" diff --git a/packages/format/package.json b/packages/format/package.json index f48d1cb9..728a7275 100644 --- a/packages/format/package.json +++ b/packages/format/package.json @@ -28,7 +28,7 @@ "directory": "packages/format" }, "scripts": { - "prepare": "npm run build", + "prepublishOnly": "npm run build", "build": "npm run clean && npm run compile", "clean": "rm -rf ./build && rm -rf tsconfig.tsbuildinfo", "compile": "tsc -p tsconfig.build.json" diff --git a/packages/parse/package.json b/packages/parse/package.json index f0964ab2..612eada8 100644 --- a/packages/parse/package.json +++ b/packages/parse/package.json @@ -29,7 +29,7 @@ "directory": "packages/parse" }, "scripts": { - "prepare": "npm run build", + "prepublishOnly": "npm run build", "build": "npm run clean && npm run compile", "clean": "rm -rf ./build && rm -rf tsconfig.tsbuildinfo", "compile": "tsc -p tsconfig.build.json" diff --git a/tsconfig.json b/tsconfig.json index 75258ea5..10720132 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,14 +4,14 @@ "baseUrl": "./packages", "composite": true, "paths": { - "fast-csv": ["fast-csv"], - "@fast-csv/format": ["format"], - "@fast-csv/parse": ["parse"] + "fast-csv": ["fast-csv/src"], + "@fast-csv/format": ["format/src"], + "@fast-csv/parse": ["parse/src"] } }, "references": [ - {"path": "./packages/fast-csv"}, - {"path": "./packages/format"}, - {"path": "./packages/parse"} + {"path": "./packages/fast-csv/tsconfig.build.json"}, + {"path": "./packages/format/tsconfig.build.json"}, + {"path": "./packages/parse/tsconfig.build.json"} ] }