summaryrefslogtreecommitdiff
path: root/tests/registry/npm/@denotest/lifecycle-scripts-cjs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/registry/npm/@denotest/lifecycle-scripts-cjs')
-rw-r--r--tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/package.json11
-rw-r--r--tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js5
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/package.json b/tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/package.json
new file mode 100644
index 000000000..1924ddef8
--- /dev/null
+++ b/tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/package.json
@@ -0,0 +1,11 @@
+{
+ "name": "@denotest/lifecycle-scripts-cjs",
+ "version": "1.0.0",
+ "scripts": {
+ "preinstall": "echo preinstall && node preinstall.js",
+ "install": "echo install && cli-cjs 'hello from install script'"
+ },
+ "dependencies": {
+ "@denotest/bin": "1.0.0"
+ }
+} \ No newline at end of file
diff --git a/tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js b/tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js
new file mode 100644
index 000000000..b5511f990
--- /dev/null
+++ b/tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js
@@ -0,0 +1,5 @@
+const inspect = require('util').inspect;
+
+inspect({
+ "preinstall": "script"
+}); \ No newline at end of file