-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c5851a
commit 2dfc53f
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import fs from "fs"; | ||
|
||
const getVersion = function () { | ||
const curentDate = new Date(); | ||
let month = curentDate.getMonth() + 1, | ||
day = curentDate.getDate(); | ||
month = month < 10 ? `0${month}` : month; | ||
day = day < 10 ? `0${day}` : day; | ||
return `${curentDate.getFullYear()}${month}${day}`; | ||
}; | ||
|
||
const version = JSON.parse(fs.readFileSync("package.json")).version; | ||
export default `/*! | ||
* forked from antvis/L7 | ||
* Copyright (c) 2018 AntV team | ||
* Copyright© 2000-2024 SuperMap Software Co. Ltdnpm | ||
* license: MIT | ||
* version: ${getVersion()} | ||
*/`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters