Skip to content

Commit 8b53bfa

Browse files
committed
Fix path to exportArtboard.sh script
1 parent a11d551 commit 8b53bfa

4 files changed

Lines changed: 16 additions & 15 deletions

File tree

.babelrc

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
2-
presets: [[
3-
"es2015",
4-
{
5-
modules: false
6-
}
7-
], "react"],
8-
plugins: [
2+
"presets": ["es2015", "react"],
3+
"plugins": [
94
["transform-react-jsx", { "pragma":"h" }]
105
]
116
}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [0.10.1] - 2017-04-18
2+
3+
* Use webpack to compile everything instead of rollup. Should bring more stability.
4+
* Fix path to `exportArtboard.sh` script
5+
6+
17
## [0.10.0] - 2017-04-11
28

39
* move export config to `.gitsketchrc` so that everybody working

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@
4040
"eslint-plugin-node": "4.2.2",
4141
"eslint-plugin-promise": "^3.5.0",
4242
"eslint-plugin-standard": "^3.0.1",
43-
"skpm": "^0.7.4"
43+
"skpm": "^0.8.0"
4444
},
4545
"dependencies": {
46-
"eslint-config-sketch": "0.2.2",
47-
"eslint-config-standard-preact": "1.0.1",
48-
"eslint-plugin-react": "6.10.3",
46+
"eslint-config-sketch": "^0.2.2",
47+
"eslint-config-standard-preact": "^1.0.1",
48+
"eslint-plugin-react": "^6.10.3",
4949
"preact": "^7.1.0",
50-
"sketch-module-fs": "0.1.2",
50+
"sketch-module-fs": "^0.1.2",
5151
"sketch-module-google-analytics": "^0.1.3",
5252
"sketch-module-update": "^0.1.2",
53-
"sketch-module-user-preferences": "1.0.1",
54-
"sketch-module-web-view": "0.1.4"
53+
"sketch-module-user-preferences": "^1.0.1",
54+
"sketch-module-web-view": "^0.1.4"
5555
}
5656
}

src/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export function exportArtboards (context, prefs) {
179179
const path = getCurrentDirectory(context)
180180
const currentFileNameWithoutExtension = currentFileName.replace(/\.sketch$/, '')
181181
const {exportFolder, exportFormat, exportScale, includeOverviewFile} = prefs
182-
const pluginPath = context.scriptPath.replace(/Contents\/Sketch\/(\w*)\.cocoascript$/, '').replace(/ /g, '\\ ')
182+
const pluginPath = context.scriptPath.replace(/Contents\/Sketch\/(\w*)\.js$/, '').replace(/ /g, '\\ ')
183183
const bundlePath = NSBundle.mainBundle().bundlePath()
184184
const fileFolder = exportFolder + '/' + currentFileNameWithoutExtension
185185
const command = `${pluginPath}/exportArtboard.sh "${path}" "${exportFolder}" "${fileFolder}" "${bundlePath}" "${currentFileName}" "${exportFormat || 'png'}" "${exportScale}" "${includeOverviewFile}"`

0 commit comments

Comments
 (0)