Skip to content

Commit

Permalink
Use updated sketchapp-json-plugin (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
coderitual committed Sep 29, 2020
1 parent e37e62a commit ffe2e1f
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 25 deletions.
2 changes: 1 addition & 1 deletion asketch2sketch/asketch2sketch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import UI from 'sketch/ui';
import {SharedStyle} from 'sketch/dom';
import {fromSJSONDictionary} from 'sketchapp-json-plugin';
import {fromSJSONDictionary} from '@brainly/sketchapp-json-plugin';
import {fixTextLayer, fixSharedTextStyle} from './helpers/fixFont';
import fixImageFillsInLayer from './helpers/fixImageFill';
import fixBitmap from './helpers/fixBitmap';
Expand Down
2 changes: 1 addition & 1 deletion asketch2sketch/helpers/fixFont.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// taken from https://github.com/airbnb/react-sketchapp/blob/master/src/jsonUtils/hacksForJSONImpl.js
import {generateID, makeColorFromCSS} from './utils';
import {TextAlignment} from 'sketch-constants';
import {toSJSON} from 'sketchapp-json-plugin';
import {toSJSON} from '@brainly/sketchapp-json-plugin';
import findFont from './findFont';
import getSketchVersion from './getSketchVersion';

Expand Down
2 changes: 1 addition & 1 deletion asketch2sketch/helpers/fixSVG.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {toSJSON} from 'sketchapp-json-plugin';
import {toSJSON} from '@brainly/sketchapp-json-plugin';
import {replaceProperties} from './utils';

function makeNativeSVGLayer(layer) {
Expand Down
59 changes: 39 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
]
},
"dependencies": {
"@brainly/sketchapp-json-plugin": "^0.1.3",
"murmur2js": "^1.0.0",
"normalize-css-color": "^1.0.2",
"sketch-constants": "^1.1.0",
"sketchapp-json-plugin": "^0.1.2"
"sketch-constants": "^1.1.0"
},
"main": "build/html2asketch/index",
"typings": "typings/",
Expand Down

0 comments on commit ffe2e1f

Please sign in to comment.