Skip to content

Commit 2ea1c19

Browse files
committed
feat: make year dynamic
1 parent ad3ba1e commit 2ea1c19

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/create-react-native-library/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ async function create(argv: yargs.Arguments<any>) {
557557
`${project.charAt(0).toUpperCase()}${project
558558
.replace(/[^a-z0-9](\w)/g, (_, $1) => $1.toUpperCase())
559559
.slice(1)}`,
560+
year: new Date().getFullYear(),
560561
package: pack,
561562
package_dir: pack.replace(/\./g, '/'),
562563
package_cpp: pack.replace(/\./g, '_'),

packages/create-react-native-library/templates/common/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 <%- author.name -%>
3+
Copyright (c) <%- project.year -%> <%- author.name -%>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)