Skip to content

Commit 083a94f

Browse files
committed
remove preinstall scripts and fix build
1 parent 48a1dcd commit 083a94f

File tree

5 files changed

+146
-12
lines changed

5 files changed

+146
-12
lines changed

bolt-connection/package-lock.json

Lines changed: 140 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bolt-connection/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"devDependencies": {
3131
"@types/jest": "^26.0.20",
3232
"jest": "^26.6.3",
33+
"ts-jest": "^26.5.4",
3334
"typescript": "^4.1.3"
3435
},
3536
"dependencies": {

neo4j-driver-lite/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"test": "jest",
1111
"test:watch": "jest --watch",
1212
"test:it": "jest -c jest.integration.config.ts",
13-
"test:it:browser": "jest -c jest.browser.config.ts",
14-
"preinstall": "cd ../core && npm ci && npm run build && cd ../bolt-connection && npm ci && npm run build || true"
13+
"test:it:browser": "jest -c jest.browser.config.ts"
1514
},
1615
"unpkg": "lib/browser/neo4j-lite-web.js",
1716
"jsdelivr": "lib/browser/neo4j-lite-web.js",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"url": "git://github.com/neo4j/neo4j-javascript-driver.git"
1010
},
1111
"scripts": {
12-
"preinstall": "cd core && npm ci && npm run build && cd ../bolt-connection && npm ci && npm run build || true",
1312
"lint": "eslint --fix --ext .js ./",
1413
"format": "prettier-eslint '**/*.js' '**/*.json' '**/*.md' '**/*.ts' '**/*.html' --write",
1514
"test": "gulp test",

testkit/build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ def run(args, env=None):
1313

1414

1515
def build_core():
16-
npm = ["npm", "--prefix", "core"]
16+
npm = ["npm", "--prefix", "./core/"]
1717
run(['rm', '-fr', 'core/node_modules', 'core/lib', 'core/types'])
1818
run([*npm, 'ci'])
1919
run([*npm, 'run', 'build'])
2020

2121

2222
def build_bolt_connection():
23-
npm = ['npm', '--prefix', 'bolt-connection']
23+
npm = ['npm', '--prefix', './bolt-connection/']
2424
run(['rm', '-fr', 'bolt-connection/node_modules', 'bolt-connection/lib'])
2525
run([*npm, 'ci'])
2626
run([*npm, 'run', 'build'])
@@ -33,14 +33,14 @@ def build_driver():
3333

3434

3535
def build_driver_lite():
36-
npm = ['npm', '--prefix', 'neo4j-driver-lite']
36+
npm = ['npm', '--prefix', './neo4j-driver-lite/']
3737
run(['rm', '-fr', 'neo4j-driver-lite/node_modules', 'neo4j-driver-lite/lib'])
3838
run([*npm, "ci"])
3939
run([*npm, "run", "build"])
4040

4141

4242
def build_testkit_backend(isLite):
43-
npm = ["npm", "--prefix", "testkit-backend"]
43+
npm = ["npm", "--prefix", "./testkit-backend/"]
4444
run(['rm', '-fr', 'testkit-backend/node_modules'])
4545
run([*npm, "install"])
4646
neo4jdriverPath = "neo4j@./"

0 commit comments

Comments
 (0)