Dany Marques
03/01/2024, 7:16 AM~/Documents/mobi_projects/defant-taskclient-rwc git:[feature/WV-2439-angular-17-migration]
npm i -D @pact-foundation/pact
npm ERR! code 1
npm ERR! path /Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/@pact-foundation/pact-core
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.0.1
npm ERR! gyp info using node@18.18.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.9.6 found at "/Library/Developer/CommandLineTools/usr/bin/python3"
npm ERR! gyp info spawn /Library/Developer/CommandLineTools/usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/@pact-foundation/pact-core/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/danymarques/Library/Caches/node-gyp/18.18.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/danymarques/Library/Caches/node-gyp/18.18.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/danymarques/Library/Caches/node-gyp/18.18.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/@pact-foundation/pact-core',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: binding.gyp not found (cwd: /Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/@pact-foundation/pact-core) while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/node-gyp/lib/configure.js:271:18)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm ERR! gyp ERR! System Darwin 23.2.0
npm ERR! gyp ERR! command "/Users/danymarques/.nvm/versions/node/v18.18.0/bin/node" "/Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/@pact-foundation/pact-core
npm ERR! gyp ERR! node -v v18.18.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: /Users/danymarques/.npm/_logs/2024-02-29T17_44_16_466Z-debug-0.log
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Dany Marques
03/01/2024, 7:33 AMDany Marques
03/01/2024, 7:33 AMDany Marques
03/01/2024, 7:33 AMDany Marques
03/01/2024, 7:33 AMDany Marques
03/01/2024, 7:34 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Dany Marques
03/01/2024, 10:34 AMDany Marques
03/01/2024, 10:36 AMDany Marques
03/01/2024, 10:37 AMDany Marques
03/01/2024, 10:38 AMMatt (pactflow.io / pact-js / pact-go)
From where are the pre-built binaries coming? From a build like in a postinstall script or am I downloading them with npm?they should be in the npm package
Matt (pactflow.io / pact-js / pact-go)
node-gyp
because the prebuilt native extensions are not on the file system. Why aren’t the on the file system, I’m not sure yetMatt (pactflow.io / pact-js / pact-go)
npm i @pact-foundation/pact-core@latest
find ./node_modules/@pact-foundation/pact-core > files.txt
Then attach files.txt hereMatt (pactflow.io / pact-js / pact-go)
find ./node_modules/@pact-foundation/pact-core | grep "\.node"
It should print:
./node_modules/@pact-foundation/pact-core/prebuilds/linux-arm64/node.napi.node
./node_modules/@pact-foundation/pact-core/prebuilds/darwin-x64/node.napi.node
./node_modules/@pact-foundation/pact-core/prebuilds/win32-x64/node.napi.node
./node_modules/@pact-foundation/pact-core/prebuilds/darwin-arm64/node.napi.node
./node_modules/@pact-foundation/pact-core/prebuilds/linux-x64/node.napi.node
Matt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
"install": "echo welcome to Pact-JS - This post install script supresses node-gyp rebuild as it is not required for this package"
Yousaf Nabi (pactflow.io)
Dany Marques
03/01/2024, 2:15 PMDany Marques
03/01/2024, 2:15 PMfind ./node_modules/@pact-foundation/pact-core | grep "\.node"
./node_modules/@pact-foundation/pact-core/prebuilds/linux-arm64/node.napi.node
./node_modules/@pact-foundation/pact-core/prebuilds/darwin-x64/node.napi.node
./node_modules/@pact-foundation/pact-core/prebuilds/win32-x64/node.napi.node
./node_modules/@pact-foundation/pact-core/prebuilds/darwin-arm64/node.napi.node
./node_modules/@pact-foundation/pact-core/prebuilds/linux-x64/node.napi.node
Dany Marques
03/01/2024, 2:17 PMDany Marques
03/01/2024, 2:24 PMDany Marques
03/01/2024, 2:25 PMDany Marques
03/01/2024, 2:25 PMDany Marques
03/01/2024, 2:26 PMDany Marques
03/01/2024, 2:26 PMYousaf Nabi (pactflow.io)
Dany Marques
03/01/2024, 2:48 PMDany Marques
03/01/2024, 2:48 PMYousaf Nabi (pactflow.io)
added 75 packages in 45s
268 packages are looking for funding
run `npm fund` for details
npm verb exit 0
npm info ok
Yousaf Nabi (pactflow.io)
npm http fetch GET 200 <https://nexus.mobicorp.ch:8443/nexus/repository/npm-mobi/@pact-foundation%2fpact> 219ms (cache hit)
which then does the node-gyp
pm info run @pact-foundation/pact-core@14.3.0 install node_modules/@pact-foundation/pact-core node-gyp rebuild
npm info run @pact-foundation/pact-core@14.3.0 install { code: 1, signal: null }
npm verb stack Error: command failed
npm verb stack at ChildProcess.<anonymous> (/Users/danymarques/.nvm/versions/node/v18.18.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
npm verb stack at ChildProcess.emit (node:events:517:28)
npm verb stack at maybeClose (node:internal/child_process:1098:16)
npm verb stack at ChildProcess._handle.onexit (node:internal/child_process:303:5)
npm verb pkgid @pact-foundation/pact-core@14.3.0
npm verb cwd /Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc
npm verb Darwin 23.2.0
npm verb node v18.18.0
npm verb npm v9.8.1
npm ERR! code 1
npm ERR! path /Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/@pact-foundation/pact-core
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli '/Users/danymarques/.nvm/versions/node/v18.18.0/bin/node',
npm ERR! gyp verb cli '/Users/danymarques/Documents/mobi_projects/defant-taskclient-rwc/node_modules/.bin/node-gyp',
npm ERR! gyp verb cli 'rebuild'
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp@10.0.1
can you check the contents of that package? can you view the source in the private reg before pulling it?Dany Marques
03/01/2024, 3:36 PMDany Marques
03/01/2024, 3:37 PMDany Marques
03/01/2024, 3:37 PMDany Marques
03/01/2024, 3:38 PMDany Marques
03/02/2024, 1:33 PMMatt (pactflow.io / pact-js / pact-go)
pact-core
package. Any chance you could download it directly from the registries and upload that package? I’m also wondering if you have any relevant npm config
items that could impact this?Matt (pactflow.io / pact-js / pact-go)
Dany Marques
03/04/2024, 7:04 AMDany Marques
03/04/2024, 7:04 AMDany Marques
03/04/2024, 7:04 AMDany Marques
03/04/2024, 7:05 AMDany Marques
03/04/2024, 7:05 AMMatt (pactflow.io / pact-js / pact-go)
node-gyp-build
package but perhaps it’s elsewhere.Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Dany Marques
03/04/2024, 7:14 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Dany Marques
03/04/2024, 7:22 AMDany Marques
03/04/2024, 7:22 AMMatt (pactflow.io / pact-js / pact-go)
npm info run @pact-foundation/pact-core@14.3.0 install node_modules/@pact-foundation/pact-core node-gyp rebuild
All I can assume is that npm
somehow thinks it needs to be re-built and calls out to its mate node-gyp
. Nowhere in our code do we have an install
or pre/post
script that calls this.Matt (pactflow.io / pact-js / pact-go)
node-gyp
you have on your OS? Maybe that’s the problem (It comes with node()Dany Marques
03/04/2024, 7:38 AMDany Marques
03/04/2024, 7:39 AMDany Marques
03/04/2024, 7:39 AMDany Marques
03/04/2024, 7:43 AM'-Dnode_gyp_dir=/Users/danymarques/Documents/mobi_projects/lcs-cas-rwc/node_modules/node-gyp',
Dany Marques
03/04/2024, 7:43 AMDany Marques
03/04/2024, 7:58 AMDany Marques
03/04/2024, 7:58 AMDany Marques
03/04/2024, 8:06 AMDany Marques
03/04/2024, 8:07 AMsh -c "node-gyp rebuild"
Dany Marques
03/04/2024, 8:07 AMDany Marques
03/04/2024, 8:07 AMDany Marques
03/04/2024, 8:15 AMDany Marques
03/04/2024, 8:16 AMnode-gyp rebuild
and sometimes we don't.Dany Marques
03/04/2024, 8:17 AMDany Marques
03/04/2024, 8:18 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Dany Marques
03/04/2024, 9:18 AMDany Marques
03/04/2024, 9:19 AMMatt (pactflow.io / pact-js / pact-go)
npm i
why that is
2. Once we know the triggers, understand what’s different about your environment that reliably triggers itMatt (pactflow.io / pact-js / pact-go)
@pact-foundation/pact-core
at loglevel silly
?Matt (pactflow.io / pact-js / pact-go)
Now we’ve two choices, either we try to find out why we are not able to rebuild pact with node-gyp, either we try to find out why we sometimes invoke node-gyp rebuildI think this problem is obvious - we don’t distribute
binding.gyp
. @Yousaf Nabi (pactflow.io) might remember why we removed that, probably because we prebuild for most architectures (and maybe it was misfiring the node-gyp process. We could add that back, possibly.
But that would make install slower, even though the prebuilds are there. It’s reliably a problem for your org, so my suspicion is there is something about your setup we can’t understand that’s causing it.
npm config list
and npm config -g list
might be enlighteningMatt (pactflow.io / pact-js / pact-go)
.npmrc
files checked in that might impact this?Matt (pactflow.io / pact-js / pact-go)
--build-from-source
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Now we've two choices, either we try to find out why we are not able to rebuild pact with node-gyp, either we try to find out why we sometimes invoke node-gyp rebuildthe latter is relevant but only to your private reggo it seems. the former is a non starter.
Yousaf Nabi (pactflow.io)
Matt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Dany Marques
03/04/2024, 4:21 PMDany Marques
03/04/2024, 4:21 PMnpm info run @pact-foundation/pact-core@14.3.0 install node_modules/@pact-foundation/pact-core node-gyp rebuild
Dany Marques
03/04/2024, 4:31 PMDany Marques
03/04/2024, 4:32 PMDany Marques
03/04/2024, 4:55 PMnpm i
Dany Marques
03/04/2024, 4:55 PMYousaf Nabi (pactflow.io)
Dany Marques
03/04/2024, 4:57 PMDany Marques
03/04/2024, 4:59 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Dany Marques
03/04/2024, 5:04 PMDany Marques
03/04/2024, 5:04 PMYousaf Nabi (pactflow.io)
Dany Marques
03/04/2024, 5:12 PMDany Marques
03/04/2024, 5:13 PMDany Marques
03/04/2024, 5:13 PMDany Marques
03/04/2024, 5:13 PMYousaf Nabi (pactflow.io)
docker run --rm -it node:20-slim sh -c 'cd /home && npm install @pact-foundation/pact-core'
as does this
docker run --rm -it node:20-slim sh -c 'cd /home && npm install @pact-foundation/pact'
Not sure how we can do more, we don’t know what private registry you are using so we can’t replicate it. We don’t have access to your registryYousaf Nabi (pactflow.io)
--ignore-scripts
or retrieve from the working registry (you said you have two private, one works, one doesn’t)Dany Marques
03/04/2024, 5:15 PMDany Marques
03/04/2024, 5:16 PMDany Marques
03/04/2024, 5:16 PMDany Marques
03/04/2024, 5:22 PMDany Marques
03/04/2024, 5:22 PMDany Marques
03/04/2024, 5:22 PMDany Marques
03/04/2024, 5:25 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Dany Marques
03/04/2024, 5:27 PMDany Marques
03/04/2024, 5:27 PMDany Marques
03/04/2024, 5:29 PMDany Marques
03/04/2024, 5:32 PMMatt (pactflow.io / pact-js / pact-go)
npm config list
and npm config -g list
might be enlightening
Are there any .npmrc
files checked in that might impact this?
e.g. the following flag might be set for that registry
--build-from-source
Other than that, I’m out of ideas myself.Dany Marques
03/05/2024, 5:50 AM~/Documents/mobi_projects/test_pact
npm config list
; "user" config from /Users/danymarques/.npmrc
; strict-ssl = false ; overridden by project
; "project" config from /Users/danymarques/Documents/mobi_projects/test_pact/.npmrc
//our.private.registry:8443/nexus/repository/npm-mobi/:_auth = (protected)
always-auth = true
registry = "<https://our.private.registry:8443/nexus/repository/npm-mobi/>"
strict-ssl = false
; node bin location = /Users/danymarques/.nvm/versions/node/v18.19.1/bin/node
; node version = v18.19.1
; npm local prefix = /Users/danymarques/Documents/mobi_projects/test_pact
; npm version = 10.2.4
; cwd = /Users/danymarques/Documents/mobi_projects/test_pact
; HOME = /Users/danymarques
; Run `npm config ls -l` to show all defaults.
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Dany Marques
03/05/2024, 9:20 AMDany Marques
03/05/2024, 9:22 AMDany Marques
03/05/2024, 9:22 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
I just compared all dependencies versions that are installed when I install pact-core from both registriesBut yeah. I don’t think it’s that that’s the problem. something thinks Pact needs a rebuild, but I’m just not sure what. If only the logs indicated what is the initiator of that. I assume `silly` level logs didn’t reveal anything for you about the initiator?
Dany Marques
03/06/2024, 12:39 PM; begin auth token
//pkgs.dev.azure.com/diemobiliar/RWC/_packaging/npm-main/npm/registry/:email="xxx"
//pkgs.dev.azure.com/diemobiliar/RWC/_packaging/npm-main/npm/registry/:username="xxx"
//pkgs.dev.azure.com/diemobiliar/RWC/_packaging/npm-main/npm/registry/:_password="xxx"
//pkgs.dev.azure.com/diemobiliar/RWC/_packaging/npm-main/npm/:_password="xxx"
//pkgs.dev.azure.com/diemobiliar/RWC/_packaging/npm-main/npm/:username="xxx"
//pkgs.dev.azure.com/diemobiliar/RWC/_packaging/npm-main/npm/:email="xxx"
; end auth token
strict-ssl=false
registry="myregistry"
Dany Marques
03/06/2024, 12:44 PMDany Marques
03/06/2024, 1:20 PMDany Marques
03/06/2024, 1:20 PMDany Marques
03/06/2024, 4:07 PMDany Marques
03/13/2024, 12:32 PMYousaf Nabi (pactflow.io)
Dany Marques
03/13/2024, 3:00 PMDany Marques
03/13/2024, 3:02 PMDany Marques
03/13/2024, 3:02 PMDany Marques
03/13/2024, 3:02 PMDany Marques
03/13/2024, 3:02 PMconst pickManifest = require('npm-pick-manifest')
fetch('<https://registry.npmjs.org/@pact-foundation/pact-core').then(res> => {
return res.json()
}).then(packument => {
return pickManifest(packument, '^14.3.0')
}).then((x) => console.log(x.scripts))// get same manifest as npm would get if you `npm i npm-pick-manifest@^1.0.0`
Dany Marques
03/13/2024, 3:03 PMnpm-pick-manifest
dep), then you'll see that the install script is thereDany Marques
03/13/2024, 3:04 PMDany Marques
03/13/2024, 3:04 PMDany Marques
03/13/2024, 3:05 PMDany Marques
03/13/2024, 3:06 PMDany Marques
03/13/2024, 3:06 PMDany Marques
03/13/2024, 3:07 PMDany Marques
03/13/2024, 3:07 PMDany Marques
03/13/2024, 3:11 PMDany Marques
03/13/2024, 3:11 PMDany Marques
03/13/2024, 3:53 PMDany Marques
03/13/2024, 4:07 PMnpm view @pact-foundation/pact-core@14.3.0 scripts
Dany Marques
03/13/2024, 4:07 PMYousaf Nabi (pactflow.io)
Dany Marques
03/13/2024, 4:25 PMDany Marques
03/13/2024, 4:25 PMDany Marques
03/13/2024, 4:25 PMYousaf Nabi (pactflow.io)
Dany Marques
03/13/2024, 4:26 PMYousaf Nabi (pactflow.io)
Dany Marques
03/13/2024, 4:26 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
npm view @pact-foundation/pact-core@14.3.1 scripts
still reveals install: 'node-gyp rebuild'
think up
{
clean: "rimraf '{src,test,bin,standalone}/**/*.{js,map,d.ts}' 'package.zip' '.tmp' 'tmp'",
lint: 'eslint . --ext .ts --config .eslintrc',
'lint:fix': 'npm run lint -- --fix',
prebuild: 'npm run clean',
'download-libs': 'npm run clean && bash script/download-libs.sh',
'clean-libs': "rimraf standalone/*.{js,map,d.ts} standalone/{windows**,linux**,darwin**} 'ffi'",
build: 'tsc --project tsconfig.build.json',
prerelease: 'npm run snyk-protect',
release: 'commit-and-tag-version',
test: 'cross-env LOG_LEVEL=debug PACT_DO_NOT_TRACK=true mocha "{src,test,bin,standalone}/**/*.spec.ts"',
'snyk-protect': 'snyk-protect',
'format:base': 'prettier --parser typescript',
'format:check': 'npm run format:base -- --list-different "{src,standalone,bin,test}/**/*.{ts,tsx}"',
'format:fix': 'npm run format:base -- --write "{src,standalone,bin,test}/**/*.{ts,tsx}"',
install: 'node-gyp rebuild'
}
Dany Marques
03/13/2024, 6:12 PMYousaf Nabi (pactflow.io)
Dany Marques
03/13/2024, 6:34 PMDany Marques
03/13/2024, 6:34 PMDany Marques
03/13/2024, 6:34 PMDany Marques
03/13/2024, 6:41 PMDany Marques
03/13/2024, 6:41 PMDany Marques
03/13/2024, 6:42 PMYousaf Nabi (pactflow.io)
Dany Marques
03/13/2024, 6:42 PMDany Marques
03/13/2024, 6:42 PMDany Marques
03/13/2024, 6:42 PMDany Marques
03/13/2024, 6:43 PMDany Marques
03/13/2024, 6:43 PMYousaf Nabi (pactflow.io)
"gypfile":true,
flag in https://registry.npmjs.org/@pact-foundation/pact-coreDany Marques
03/13/2024, 6:43 PMDany Marques
03/13/2024, 6:43 PMYousaf Nabi (pactflow.io)
Dany Marques
03/13/2024, 7:09 PMDany Marques
03/13/2024, 7:10 PMYousaf Nabi (pactflow.io)
Dany Marques
03/13/2024, 7:22 PMDany Marques
03/13/2024, 7:22 PMDany Marques
03/13/2024, 7:23 PMDany Marques
03/13/2024, 7:23 PMJames P
03/13/2024, 8:46 PMnpm i
and getting a similar error.
What stands out as a little different for me is the error npm ERR! ModuleNotFoundError: No module named 'distutils'
Matt (pactflow.io / pact-js / pact-go)
I’m working on a first PR on npm that should already fix our issue with the workaround of having an empty install script👏 So I figure that we roughly know the problem now, and we have a few possible ways to fix. It sounds like the
"install": ""
option doesn’t work, but removing binding.gyp
before publishing might be what resolve this?Dany Marques
03/14/2024, 6:24 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
npm
to take a while to release any changes. If we can fix your use case by simply removing the binding.gyp
that should be easy enough for us.Dany Marques
03/14/2024, 6:39 AMMatt (pactflow.io / pact-js / pact-go)
publish.sh
. I think in this block, effectively: https://github.com/pact-foundation/pact-js-core/blob/master/script/ci/lib/publish.sh#L21
@Yousaf Nabi (pactflow.io) refactored the release process a little while back so probably knows better than I, but I can attempt it there. I’ll try it nowMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
npm view @pact-foundation/pact-core@latest scripts
{
clean: "rimraf '{src,test,bin,standalone}/**/*.{js,map,d.ts}' 'package.zip' '.tmp' 'tmp'",
lint: 'eslint . --ext .ts --config .eslintrc',
'lint:fix': 'npm run lint -- --fix',
prebuild: 'npm run clean',
'download-libs': 'npm run clean && bash script/download-libs.sh',
'clean-libs': "rimraf standalone/*.{js,map,d.ts} standalone/{windows**,linux**,darwin**} 'ffi'",
build: 'tsc --project tsconfig.build.json',
prerelease: 'npm run snyk-protect',
release: 'commit-and-tag-version',
test: 'cross-env LOG_LEVEL=debug PACT_DO_NOT_TRACK=true mocha "{src,test,bin,standalone}/**/*.spec.ts"',
'snyk-protect': 'snyk-protect',
'format:base': 'prettier --parser typescript',
'format:check': 'npm run format:base -- --list-different "{src,standalone,bin,test}/**/*.{ts,tsx}"',
'format:fix': 'npm run format:base -- --write "{src,standalone,bin,test}/**/*.{ts,tsx}"',
install: ''
}
Dany Marques
03/14/2024, 8:28 AMDany Marques
03/14/2024, 8:28 AMDany Marques
03/14/2024, 8:28 AMDany Marques
03/14/2024, 8:30 AMDany Marques
03/14/2024, 8:30 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Dany Marques
03/14/2024, 10:28 AM