Bug#942302: [Pkg-javascript-devel] Bug#942302: Processed: Update node-rollup-pluginutils to 2.6.0 or later

2019-10-14 Thread Pirate Praveen



On Mon, Oct 14, 2019 at 15:27, Pirate Praveen 
 wrote:
Just tried debian/nodejs/extlinks (and --with nodejs) instead of 
patching rollup.config.js, but it fails the same way.


   dh_auto_configure --buildsystem=nodejs
mkdir node_modules
ln -s /usr/share/nodejs/micromatch ./node_modules/
   debian/rules override_dh_auto_build
make[1]: Entering directory 
'/home/pravi/forge/debian/git/js-team/node-rollup-pluginutils'

rollup -c

src/index.ts → dist/pluginutils.cjs.js, dist/pluginutils.es.js...
[!] Error: 'default' is not exported by 
../../../../../../../usr/share/nodejs/micromatch/index.js


src/createFilter.ts (1:7)
1: import mm from 'micromatch';
  ^
2: import { resolve, sep } from 'path';
3: import { CreateFilter } from './pluginutils';
Error: 'default' is not exported by 
../../../../../../../usr/share/nodejs/micromatch/index.js




Create test.mjs and test.ts with the following content,

import mm from 'micromatch';
console.log(mm);

With nodejs from experimental,

node --experimental-modules ./test.mjs
(node:7711) ExperimentalWarning: The ESM module loader is experimental.
[Function: micromatch] {
 match: [Circular],
 matcher: [Function],
 isMatch: [Function],
 any: [Function],
 not: [Function],
 contains: [Function],
 matchKeys: [Function],
 some: [Function],
 every: [Function],
 all: [Function],
 capture: [Function],
 makeRe: [Function],
 scan: [Function],
 parse: [Function],
 braces: [Function],
 braceExpand: [Function]
}

$ tsc test.ts
$ node test.js
undefined

But tsc --esModuleInterop test.ts works as expected.

Even though tsconfig.json has
"esModuleInterop": true

I think rollup-plugin-typescript is not reading it.




Bug#942302: Processed: Update node-rollup-pluginutils to 2.6.0 or later

2019-10-14 Thread Pirate Praveen
Just tried debian/nodejs/extlinks (and --with nodejs) instead of 
patching rollup.config.js, but it fails the same way.


  dh_auto_configure --buildsystem=nodejs
mkdir node_modules
ln -s /usr/share/nodejs/micromatch ./node_modules/
  debian/rules override_dh_auto_build
make[1]: Entering directory 
'/home/pravi/forge/debian/git/js-team/node-rollup-pluginutils'

rollup -c

src/index.ts → dist/pluginutils.cjs.js, dist/pluginutils.es.js...
[!] Error: 'default' is not exported by 
../../../../../../../usr/share/nodejs/micromatch/index.js


src/createFilter.ts (1:7)
1: import mm from 'micromatch';
 ^
2: import { resolve, sep } from 'path';
3: import { CreateFilter } from './pluginutils';
Error: 'default' is not exported by 
../../../../../../../usr/share/nodejs/micromatch/index.js