images2atlas 1.0.2 → 1.0.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import path from 'path';
2
- import templater from 'spritesheet-templates';
3
2
  import Spritesmith from 'spritesmith';
3
+ import templater from './spritesheet-templates';
4
4
  /**
5
5
  * Options for Images2atlas
6
6
  *
package/dist/index.js CHANGED
@@ -8,9 +8,9 @@ const chokidar_1 = require("chokidar");
8
8
  const debounce_1 = __importDefault(require("debounce"));
9
9
  const fs_extra_1 = __importDefault(require("fs-extra"));
10
10
  const path_1 = __importDefault(require("path"));
11
- const spritesheet_templates_1 = __importDefault(require("spritesheet-templates"));
12
11
  const spritesmith_1 = __importDefault(require("spritesmith"));
13
12
  const web_build_utils_1 = require("web-build-utils");
13
+ const spritesheet_templates_1 = __importDefault(require("./spritesheet-templates"));
14
14
  // Supported output template formats for spritesheet-templates.
15
15
  const formatTypes = ['css', 'json', 'less', 'sass', 'scss', 'styl'];
16
16
  /**
@@ -0,0 +1,6 @@
1
+ interface Options {
2
+ format?: string;
3
+ formatOpts?: Record<string, any>;
4
+ }
5
+ declare const templater: (data: any, options: Options) => string;
6
+ export = templater;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const templater = require('spritesheet-templates');
3
+ module.exports = templater;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "images2atlas",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Plugin that converts set of images into a spritesheet by its directory and SASS/LESS/Stylus mixins",
5
5
  "author": "Porky Ke",
6
6
  "homepage": "https://github.com/porky-prince/web-build-tools/packages/images2atlas#readme",
@@ -9,8 +9,7 @@
9
9
  "main": "dist/index.js",
10
10
  "types": "dist/index.d.ts",
11
11
  "files": [
12
- "dist",
13
- "spritesheet-templates.d.ts"
12
+ "dist"
14
13
  ],
15
14
  "publishConfig": {
16
15
  "access": "public"
@@ -1,10 +0,0 @@
1
- declare module 'spritesheet-templates' {
2
- interface Options {
3
- // spritesheetName?: string;
4
- format?: string;
5
- formatOpts?: Record<string, any>;
6
- }
7
-
8
- function templater(data: any, options: Options): string;
9
- export = templater;
10
- }