mirror of
https://github.com/svg/svgo.git
synced 2025-04-19 10:22:15 +03:00
chore: export default and named packages (#2022)
This commit is contained in:
parent
1e23f66e76
commit
35d3fb6ee8
4
lib/svgo-node.d.ts
vendored
4
lib/svgo-node.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
import { Config, optimize } from './svgo';
|
||||
import { VERSION, Config, optimize } from './svgo';
|
||||
|
||||
export { optimize };
|
||||
export { VERSION, optimize };
|
||||
|
||||
/**
|
||||
* If you write a tool on top of svgo you might need a way to load svgo config.
|
||||
|
@ -74,3 +74,9 @@ export const optimize = (input, config) => {
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export default {
|
||||
VERSION,
|
||||
loadConfig,
|
||||
optimize,
|
||||
};
|
||||
|
@ -100,3 +100,8 @@ export const optimize = (input, config) => {
|
||||
data: output,
|
||||
};
|
||||
};
|
||||
|
||||
export default {
|
||||
VERSION,
|
||||
optimize,
|
||||
};
|
||||
|
@ -1,2 +1,2 @@
|
||||
/** Version of SVGO. */
|
||||
export const VERSION = '4.0.0';
|
||||
export const VERSION = '4.0.0-rc.0';
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"packageManager": "yarn@3.8.2",
|
||||
"name": "svgo",
|
||||
"version": "4.0.0",
|
||||
"version": "4.0.0-rc.0",
|
||||
"description": "SVGO is a Node.js library and command-line application for optimizing vector images.",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
@ -39,6 +39,7 @@ export default [
|
||||
output: {
|
||||
file: './dist/svgo-node.cjs',
|
||||
format: 'cjs',
|
||||
exports: 'named',
|
||||
},
|
||||
external: ['os', 'fs', 'url', 'path', ...Object.keys(PKG.dependencies)],
|
||||
onwarn(warning) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user