From dc1da309274823c15ad8ade0545678f8a9b8e54d Mon Sep 17 00:00:00 2001 From: await-ovo <13152410380@163.com> Date: Tue, 19 Sep 2023 04:02:58 +0800 Subject: fix(cli): for main-module that exists in package.json, use the version defined in package.json directly (#20328) --- cli/tests/testdata/npm/run_existing_npm_package/main.out | 3 +++ cli/tests/testdata/npm/run_existing_npm_package/package.json | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 cli/tests/testdata/npm/run_existing_npm_package/main.out create mode 100644 cli/tests/testdata/npm/run_existing_npm_package/package.json (limited to 'cli/tests/testdata/npm/run_existing_npm_package') diff --git a/cli/tests/testdata/npm/run_existing_npm_package/main.out b/cli/tests/testdata/npm/run_existing_npm_package/main.out new file mode 100644 index 000000000..baf7b7afd --- /dev/null +++ b/cli/tests/testdata/npm/run_existing_npm_package/main.out @@ -0,0 +1,3 @@ +Download http://localhost:4545/npm/registry/@denotest/bin +Download http://localhost:4545/npm/registry/@denotest/bin/0.5.0.tgz +Initialize @denotest/bin@0.5.0 diff --git a/cli/tests/testdata/npm/run_existing_npm_package/package.json b/cli/tests/testdata/npm/run_existing_npm_package/package.json new file mode 100644 index 000000000..1cd6d749d --- /dev/null +++ b/cli/tests/testdata/npm/run_existing_npm_package/package.json @@ -0,0 +1,6 @@ +{ + "name": "run-existing-npm-package", + "dependencies": { + "@denotest/bin": "0.5.0" + } +} -- cgit v1.2.3