-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ESM wip * clean * 0.43.1 * wip * 0.43.2 * fix unit tetsts & esm * 0.43.3 * fix ESM modules * 0.43.4
- Loading branch information
Showing
25 changed files
with
269 additions
and
204 deletions.
There are no files selected for viewing
File renamed without changes.
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
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 |
---|---|---|
|
@@ -59,9 +59,9 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
/dist/ | ||
dist/ | ||
package-lock.json | ||
.DS_Store | ||
t.* | ||
|
||
t/ | ||
.idea |
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
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
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,20 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
SRC_PACKAGE_JSON_TS_FILE='src/package-json.ts' | ||
|
||
[ -f ${SRC_PACKAGE_JSON_TS_FILE} ] || { | ||
echo ${SRC_PACKAGE_JSON_TS_FILE}" not found" | ||
exit 1 | ||
} | ||
|
||
VERSION=$(npx pkg-jq -r .version) | ||
|
||
cat <<_SRC_ > ${SRC_PACKAGE_JSON_TS_FILE} | ||
/** | ||
* This file was auto generated from scripts/generate-version.sh | ||
*/ | ||
import { PackageJson } from 'type-fest' | ||
export const packageJson: PackageJson = $(cat package.json) | ||
_SRC_ |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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,10 @@ | ||
#!/usr/bin/env node --no-warnings --loader ts-node/esm | ||
|
||
import { test } from 'tstest' | ||
|
||
import { packageJson } from './package-json.js' | ||
|
||
test('Make sure the packageJson is fresh in source code', async t => { | ||
const keyNum = Object.keys(packageJson).length | ||
t.equal(keyNum, 0, 'packageJson should be empty in source code, only updated before publish to NPM') | ||
}) |
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
Oops, something went wrong.