@citolab/tspci 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citolab/tspci",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "an opiniated typescript ims-pci builder with tao integration",
5
5
  "author": "patrick <patrick.deklein@cito.nl>",
6
6
  "repository": "@citolab/tspci",
@@ -64,5 +64,5 @@
64
64
  "tailwindcss": "^3.2.4"
65
65
  },
66
66
  "scripts": {},
67
- "gitHead": "5aaa78f4b0298157e54f8208fdbf015c3f001e2b"
67
+ "gitHead": "7cdbb1e4a3b177e3d8fc103679ecee6e65fdf79d"
68
68
  }
package/release-notes.md CHANGED
@@ -1,7 +1,15 @@
1
1
 
2
+ # 2.1.3
3
+ - added workaround for bug in new @rollup/plugin-terser
4
+ see https://github.com/rollup/plugins/issues/1366#issuecomment-1345358157
5
+
6
+ # 2.1.2
7
+
8
+ - fixed production build, terser not imported correctly
9
+
2
10
  # 2.1.1
3
11
 
4
- - fixed production build
12
+ - fixed production build, import rollup.config needed extension .js
5
13
 
6
14
  # 2.1.0
7
15
 
@@ -1,6 +1,13 @@
1
- import { terser } from '@rollup/plugin-terser'
1
+ import terser from '@rollup/plugin-terser'
2
2
  import rollupConfig from "./rollup.config.js";
3
3
 
4
+ // PK: WORKADOUND FOR ERROR IN TERSER
5
+ // PK: REMOVE when fixed
6
+ // PK: see https://github.com/rollup/plugins/issues/1366#issuecomment-1345358157
7
+ import { fileURLToPath } from 'url';
8
+ const __filename = fileURLToPath(import.meta.url);
9
+ global['__filename'] = __filename;
10
+
4
11
  const newRollupConfig = {
5
12
  ...rollupConfig,
6
13
  output: rollupConfig.output.map((output) => ({ ...output, sourcemap: false })),