fix for mac

master
walter 3 years ago
parent a4628c73b7
commit e5e73f121a
  1. 2
      exportJsonLines.js
  2. 16
      package.json
  3. BIN
      国际服小助手.xlsx

@ -24,7 +24,7 @@ const useHandle = (obj, handle) => {
const exportJsonLines = (xlsxFilePath, sheetName) => { const exportJsonLines = (xlsxFilePath, sheetName) => {
const table = xlsx.readFile(xlsxFilePath) const table = xlsx.readFile(xlsxFilePath)
const dataPath = `dist\\${xlsxFilePath}.${sheetName}.line.json` const dataPath = `dist/${xlsxFilePath}.${sheetName}.line.json`
const dataJson = xlsx.utils.sheet_to_json(table.Sheets[sheetName]) const dataJson = xlsx.utils.sheet_to_json(table.Sheets[sheetName])
// console.log(table.Sheets[sheetName]["!merges"]) // console.log(table.Sheets[sheetName]["!merges"])
const dataLines = dataJson const dataLines = dataJson

@ -5,14 +5,14 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"gl:carList": "node .\\exportJsonLines.js .\\国际服小助手.xlsx 数据卡片", "gl:carList": "node exportJsonLines.js 国际服小助手.xlsx 数据卡片",
"gl:versionNote": "node .\\exportJsonLines.js .\\国际服小助手.xlsx versionNoteGL", "gl:versionNote": "node exportJsonLines.js 国际服小助手.xlsx versionNoteGL",
"gl:careerSeason": "node .\\exportJsonLines.js .\\生涯地图.xlsx careerSeasonGL", "gl:careerSeason": "node exportJsonLines.js 生涯地图.xlsx careerSeasonGL",
"al:carList": "node .\\exportJsonLines.js .\\国服小助手.xlsx 数据卡片", "al:carList": "node exportJsonLines.js 国服小助手.xlsx 数据卡片",
"al:versionNote": "node .\\exportJsonLines.js .\\国服小助手.xlsx versionNoteAL", "al:versionNote": "node exportJsonLines.js 国服小助手.xlsx versionNoteAL",
"al:careerSeason": "node .\\exportJsonLines.js .\\生涯地图.xlsx careerSeasonAL", "al:careerSeason": "node exportJsonLines.js 生涯地图.xlsx careerSeasonAL",
"tracks": "node .\\exportJsonLines.js .\\生涯地图.xlsx track", "tracks": "node exportJsonLines.js 生涯地图.xlsx track",
"mapTheme": "node .\\exportJsonLines.js .\\生涯地图.xlsx mapTheme" "mapTheme": "node exportJsonLines.js 生涯地图.xlsx mapTheme"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",

Binary file not shown.
Loading…
Cancel
Save