-
Notifications
You must be signed in to change notification settings - Fork 8
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
7730ba3
commit 59e017d
Showing
9 changed files
with
2,058 additions
and
59 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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
node_modules | ||
index.js | ||
index.d.ts | ||
/lib |
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,11 @@ | ||
.PHONY: build | ||
build: | ||
@rm -rf lib | ||
@env npx babel src --source-root src --out-dir lib --extensions .mjs --out-file-extension .js --ignore "src/**/test.ts" --quiet | ||
@rsync --archive --prune-empty-dirs --exclude 'test.ts' --relative src/./ lib | ||
|
||
publish: build | ||
@npm publish --access public | ||
|
||
publish-next: build | ||
@npm publish --access public --tag next |
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 @@ | ||
module.exports = { | ||
// presets: [["@babel/preset-env", { modules: "commonjs", loose: true }]], | ||
plugins: [ | ||
[ | ||
"@babel/plugin-transform-modules-commonjs", | ||
{ importInterop: "node", loose: true, strict: true }, | ||
], | ||
["babel-plugin-add-import-extension", { extension: "js" }], | ||
], | ||
}; |
Oops, something went wrong.