Skip to content

Commit

Permalink
update packge to the FuturePortal repository
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-nu committed Oct 3, 2022
1 parent e322996 commit 0a17ceb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: rick-nu
github: [rick-nu, FuturePortal]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ project. `PACKAGE_VERSION` will be replaced with the version in your `package.js

## Setup

In your `.pracelrc`, add the `@cimonitor/parcel-transformer-package-version` transformer for the files you want use the
In your `.pracelrc`, add the `@futureportal/parcel-transformer-package-version` transformer for the files you want use the
package version in. In the example below we would like to use the package version in a `.tsx` file:

```pracelrc
{
"extends": "@parcel/config-default",
"transformers": {
"*.{ts,tsx}": ["@cimonitor/parcel-transformer-package-version", "@parcel/transformer-typescript-tsc"],
"*.{ts,tsx}": ["@futureportal/parcel-transformer-package-version", "@parcel/transformer-typescript-tsc"],
}
}
```

Add the `@cimonitor/parcel-transformer-package-version` package to your package.json with either yarn or npm.
Add the `@futureportal/parcel-transformer-package-version` package to your package.json with either yarn or npm.

Now, `PACKAGE_VERSION` will be replaced in the compiled code for the given file transformers.

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@cimonitor/parcel-transformer-package-version",
"version": "0.1.0",
"name": "@futureportal/parcel-transformer-package-version",
"version": "1.0.0",
"description": "A transformer plugin for Parcel that replaces PACKAGE_VERSION with version from your package.json",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/CIMonitor/parcel-transformer-package-version.git"
"url": "git+https://github.com/FuturePortal/parcel-transformer-package-version.git"
},
"dependencies": {
"@parcel/plugin": "^2.3.2"
Expand All @@ -28,7 +28,7 @@
},
"license": "MIT",
"bugs": {
"url": "https://github.com/CIMonitor/parcel-transformer-package-version/issues"
"url": "https://github.com/FuturePortal/parcel-transformer-package-version/issues"
},
"homepage": "https://github.com/CIMonitor/parcel-transformer-package-version"
"homepage": "https://github.com/FuturePortal/parcel-transformer-package-version"
}

0 comments on commit 0a17ceb

Please sign in to comment.