Ensure all commands are always run in lint-and-format
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 8 Feb 2021 16:19:15 +0000 (17:19 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 8 Feb 2021 16:19:15 +0000 (17:19 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
examples/typescript/pool.ts
package.json

index 96b861c44bf2127f1d9d55c521cfb4e244590dc7..50dcc7b779d7118b27f42c56136fca509d58a7f6 100644 (file)
@@ -1,7 +1,8 @@
-import { join } from 'path'
 import { DynamicThreadPool, FixedThreadPool } from 'poolifier'
 import { MyData, MyResponse } from './worker'
 
+import { join } from 'path'
+
 export const fixedPool = new FixedThreadPool<MyData, Promise<MyResponse>>(
   8,
   join(__dirname, 'worker.js'),
index 0c1dd8cebe22e6a18656b2c252439d0130e93686..20fd562ab05ed5223605a218a189bc2fe33ad2dd 100644 (file)
@@ -14,7 +14,7 @@
     "lint:standard": "prettier-standard --format | standard --fix",
     "ts-standard:verbose": "npx ts-standard --verbose",
     "lint:ts-standard": "ts-standard --fix",
-    "lint-and-format": "npm run lint:standard && npm run lint:ts-standard && npm run import-sort"
+    "lint-and-format": "npm run lint:standard; npm run lint:ts-standard; npm run import-sort"
   },
   "repository": {
     "type": "git",