@allthings/react-intl-extract-messages
Advanced tools
Comparing version 0.1.1 to 0.2.0
14
index.js
@@ -33,2 +33,3 @@ const childProcess = require('child_process') | ||
`--module esnext`, | ||
`--jsx preserve`, | ||
`--sourceMap false`, | ||
@@ -38,7 +39,14 @@ '--declaration false', | ||
// needs a spawned shell, so execFileSync doesn't work here | ||
childProcess.execSync(`${typescriptBinary} ${args}`) | ||
try { | ||
// needs a spawned shell, so execFileSync doesn't work here | ||
childProcess.execSync(`${typescriptBinary} ${args}`) | ||
} catch (e) { | ||
tmpDir.removeCallback() | ||
throw new Error(e.stdout.toString()) | ||
} | ||
const files = glob.sync(path.join(tmpDir.name, '**/*.js')) | ||
const files = glob.sync(path.join(tmpDir.name, '**/*.@(js|jsx)')) | ||
const babelCompileOptions = { | ||
presets: ['@babel/preset-react'], | ||
plugins: [ | ||
@@ -45,0 +53,0 @@ require('@babel/plugin-syntax-dynamic-import'), |
{ | ||
"name": "@allthings/react-intl-extract-messages", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"bin": "cli.js", | ||
@@ -14,2 +14,3 @@ "main": "index.js", | ||
"@babel/plugin-syntax-dynamic-import": "7.0.0", | ||
"@babel/preset-react": "7.0.0", | ||
"babel-plugin-react-intl": "3.0.1", | ||
@@ -23,2 +24,5 @@ "glob": "7.1.3", | ||
}, | ||
"scripts": { | ||
"postversion": "git push origin master --follow-tags && npm publish" | ||
}, | ||
"prettier": { | ||
@@ -25,0 +29,0 @@ "semi": false, |
Sorry, the diff of this file is not supported yet
188014
10
115
7
+ Added@babel/preset-react@7.0.0
+ Added@babel/helper-annotate-as-pure@7.25.9(transitive)
+ Added@babel/helper-module-imports@7.25.9(transitive)
+ Added@babel/plugin-syntax-jsx@7.25.9(transitive)
+ Added@babel/plugin-transform-react-display-name@7.25.9(transitive)
+ Added@babel/plugin-transform-react-jsx@7.25.9(transitive)
+ Added@babel/plugin-transform-react-jsx-self@7.25.9(transitive)
+ Added@babel/plugin-transform-react-jsx-source@7.25.9(transitive)
+ Added@babel/preset-react@7.0.0(transitive)