[Pkg-javascript-commits] [Git][js-team/node-rimraf][master] Fix json patch

Bastien Roucariès (@rouca) gitlab at salsa.debian.org
Sat Dec 13 20:04:01 GMT 2025



Bastien Roucariès pushed to branch master at Debian JavaScript Maintainers / node-rimraf


Commits:
533310ee by Bastien Roucariès at 2025-12-13T21:03:42+01:00
Fix json patch

- - - - -


1 changed file:

- debian/patches/export-package.json.patch


Changes:

=====================================
debian/patches/export-package.json.patch
=====================================
@@ -4,8 +4,9 @@ Subject: Export package.json
 
 forwarded: not-needed
 ---
- package.json | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
+ package.json  |  3 ++-
+ test/index.js | 17 -----------------
+ 2 files changed, 2 insertions(+), 18 deletions(-)
 
 diff --git a/package.json b/package.json
 index 573563e..02bde68 100644
@@ -21,3 +22,31 @@ index 573563e..02bde68 100644
    },
    "files": [
      "dist"
+diff --git a/test/index.js b/test/index.js
+index ee379bf..3c6c960 100644
+--- a/test/index.js
++++ b/test/index.js
+@@ -1,23 +1,6 @@
+ const { statSync } = require('fs')
+ const t = require('tap')
+ 
+-t.same(
+-  require('../package.json').exports,
+-  {
+-    '.': {
+-      import: {
+-        default: './dist/mjs/index.js',
+-        types: './dist/mjs/index.d.ts',
+-      },
+-      require: {
+-        default: './dist/cjs/src/index-cjs.js',
+-        types: './dist/cjs/src/index.d.ts',
+-      },
+-    },
+-  },
+-  'nothing else exported except main'
+-)
+-
+ t.test('mocky unit tests to select the correct function', t => {
+   // don't mock rimrafManual, so we can test the platform switch
+   const CALLS = []



View it on GitLab: https://salsa.debian.org/js-team/node-rimraf/-/commit/533310ee7963d1599e1226f43884295bed6dfbd2

-- 
View it on GitLab: https://salsa.debian.org/js-team/node-rimraf/-/commit/533310ee7963d1599e1226f43884295bed6dfbd2
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-commits/attachments/20251213/fed0becd/attachment-0001.htm>


More information about the Pkg-javascript-commits mailing list