@svgedit/svgcanvas 7.2.1 → 7.2.2

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": "@svgedit/svgcanvas",
3
- "version": "7.2.1",
3
+ "version": "7.2.2",
4
4
  "description": "SVG Canvas",
5
5
  "main": "dist/svgcanvas.js",
6
6
  "author": "Narendra Sisodiya",
package/publish.md ADDED
@@ -0,0 +1,6 @@
1
+ ## To publish this package
2
+ 1. update the version number in package.json
3
+ 2. run 'npm install' to update the corresponding package-lock.json
4
+ 3. update the CHANGES.md
5
+ 4. run 'npm publish' (that will automate the build)
6
+ 5. create a commit with above changes called 'release x.y.z'
package/rollup.config.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  // This rollup script is run by the command:
3
3
  // 'npm run build'
4
4
 
5
- import rimraf from 'rimraf'
5
+ import { rimraf } from 'rimraf'
6
6
  import babel from '@rollup/plugin-babel'
7
7
  import { nodeResolve } from '@rollup/plugin-node-resolve'
8
8
  import commonjs from '@rollup/plugin-commonjs'
@@ -10,23 +10,18 @@ import commonjs from '@rollup/plugin-commonjs'
10
10
  import filesize from 'rollup-plugin-filesize'
11
11
 
12
12
  // remove existing distribution
13
- rimraf('./dist', () => console.info('recreating dist'))
13
+ await rimraf('./dist')
14
+ console.info('recreating dist')
14
15
 
15
16
  // config for svgedit core module
16
17
  const config = [{
17
18
  input: ['./svgcanvas.js'],
18
19
  output: [
19
20
  {
21
+ format: 'es',
20
22
  inlineDynamicImports: true,
21
23
  sourcemap: true,
22
- format: 'cjs',
23
24
  file: 'dist/svgcanvas.js'
24
- },
25
- {
26
- inlineDynamicImports: true,
27
- sourcemap: true,
28
- file: 'dist/svgcanvas.esm.js',
29
- format: 'esm'
30
25
  }
31
26
  ],
32
27
  plugins: [