diff --git a/exportJsonLines.js b/exportJsonLines.js index f13e6a4..908e851 100644 --- a/exportJsonLines.js +++ b/exportJsonLines.js @@ -24,7 +24,7 @@ const useHandle = (obj, handle) => { const exportJsonLines = (xlsxFilePath, sheetName) => { 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]) // console.log(table.Sheets[sheetName]["!merges"]) const dataLines = dataJson diff --git a/package.json b/package.json index 091893a..db16199 100644 --- a/package.json +++ b/package.json @@ -5,14 +5,14 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "gl:carList": "node .\\exportJsonLines.js .\\国际服小助手.xlsx 数据卡片", - "gl:versionNote": "node .\\exportJsonLines.js .\\国际服小助手.xlsx versionNoteGL", - "gl:careerSeason": "node .\\exportJsonLines.js .\\生涯地图.xlsx careerSeasonGL", - "al:carList": "node .\\exportJsonLines.js .\\国服小助手.xlsx 数据卡片", - "al:versionNote": "node .\\exportJsonLines.js .\\国服小助手.xlsx versionNoteAL", - "al:careerSeason": "node .\\exportJsonLines.js .\\生涯地图.xlsx careerSeasonAL", - "tracks": "node .\\exportJsonLines.js .\\生涯地图.xlsx track", - "mapTheme": "node .\\exportJsonLines.js .\\生涯地图.xlsx mapTheme" + "gl:carList": "node exportJsonLines.js 国际服小助手.xlsx 数据卡片", + "gl:versionNote": "node exportJsonLines.js 国际服小助手.xlsx versionNoteGL", + "gl:careerSeason": "node exportJsonLines.js 生涯地图.xlsx careerSeasonGL", + "al:carList": "node exportJsonLines.js 国服小助手.xlsx 数据卡片", + "al:versionNote": "node exportJsonLines.js 国服小助手.xlsx versionNoteAL", + "al:careerSeason": "node exportJsonLines.js 生涯地图.xlsx careerSeasonAL", + "tracks": "node exportJsonLines.js 生涯地图.xlsx track", + "mapTheme": "node exportJsonLines.js 生涯地图.xlsx mapTheme" }, "author": "", "license": "ISC", diff --git a/国际服小助手.xlsx b/国际服小助手.xlsx index 3238747..2e7ded5 100644 Binary files a/国际服小助手.xlsx and b/国际服小助手.xlsx differ