summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/registry/@denotest
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-11-15 13:58:04 +0100
committerGitHub <noreply@github.com>2022-11-15 13:58:04 +0100
commitf2bf40d157879cf05a9334d9a4676562bdf1b1c1 (patch)
tree7e260ec57b8e98dba04f4876317a2d7e5f6e92d0 /cli/tests/testdata/npm/registry/@denotest
parentd6fd171394ad47691d4f73e847056980245afebe (diff)
fix(npm): probing for files that have a file stem (#16641)
Diffstat (limited to 'cli/tests/testdata/npm/registry/@denotest')
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/index.js5
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/other.service.js4
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/package.json4
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/tslib.js3
4 files changed, 16 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/index.js b/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/index.js
new file mode 100644
index 000000000..f7164182a
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/index.js
@@ -0,0 +1,5 @@
+"use strict";
+console.log("hello");
+Object.defineProperty(exports, "__esModule", { value: true });
+const tslib_1 = require("./tslib.js");
+tslib_1.__exportStar(require("./other.service"), exports);
diff --git a/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/other.service.js b/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/other.service.js
new file mode 100644
index 000000000..ba702a9af
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/other.service.js
@@ -0,0 +1,4 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.foo = void 0;
+console.log("world"); \ No newline at end of file
diff --git a/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/package.json
new file mode 100644
index 000000000..c72a8ae5a
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/package.json
@@ -0,0 +1,4 @@
+{
+ "name": "@denotest/cjs-with-file-stem",
+ "version": "1.0.0"
+}
diff --git a/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/tslib.js b/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/tslib.js
new file mode 100644
index 000000000..e5c2d6bc0
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/cjs-with-file-stem/1.0.0/tslib.js
@@ -0,0 +1,3 @@
+module.exports = {
+ __exportStar: function(mod) {}
+}; \ No newline at end of file