Skip to content

Commit

Permalink
feat: support deno
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed May 29, 2020
1 parent ddf3a79 commit 9a38de3
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .versionrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type import('standard-version').Options */
module.exports = {
bumpFiles: [
{
filename: 'mod.ts',
updater: '.versionrc.mod-updater.js',
},
],
}
14 changes: 14 additions & 0 deletions .versionrc.mod-updater.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* @param {String} content
*/
module.exports.readVersion = content => {
return content.match(/vtils@([^']+)'/)[1]
}

/**
* @param {String} content
* @param {String} version
*/
module.exports.writeVersion = (content, version) => {
return content.replace(/(?<=vtils@)[^']+(?=')/g, version)
}
1 change: 1 addition & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'https://cdn.pika.dev/[email protected]'
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"@rollup/plugin-node-resolve": "^8.0.0",
"@types/fs-extra": "^9.0.1",
"@types/prompts": "^2.0.8",
"@types/standard-version": "^7.0.0",
"codecov": "^3.7.0",
"cross-env": "^7.0.2",
"eslint": "^6.8.0",
Expand Down
23 changes: 23 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a38de3

Please sign in to comment.