Skip to content

Commit

Permalink
chore: republish packages
Browse files Browse the repository at this point in the history
  • Loading branch information
wre232114 committed Mar 19, 2023
1 parent 2916ead commit 72efbb8
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 19 deletions.
2 changes: 1 addition & 1 deletion examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"devDependencies": {
"@farmfe/cli": "workspace:*",
"@farmfe/core": "workspace:*",
"@farmfe/plugin-react": "workspace:^0.1.0",
"@farmfe/plugin-react": "workspace:^0.1.1",
"@types/react": "18",
"@types/react-dom": "18",
"react-refresh": "^0.14.0"
Expand Down
7 changes: 7 additions & 0 deletions examples/script-entry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @farmfe-examples/script-entry

## 0.0.2

### Patch Changes

- Updated dependencies
- @farmfe/cli@0.4.1

## 0.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/script-entry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@farmfe-examples/script-entry",
"version": "0.0.1",
"version": "0.0.2",
"private": true,
"type": "module",
"dependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @farmfe/cli

## 0.4.1

### Patch Changes

- Add farm plugin prepublish command

## 0.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@farmfe/cli",
"version": "0.4.0",
"version": "0.4.1",
"description": "CLI of Farm",
"type": "module",
"author": {
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

// import { build } from './build.js';
import { create } from './create.js';
// import { prepublish } from './prepublish.js';
import { prepublish } from './prepublish.js';

export const COMMANDS = {
// build,
create,
// prepublish,
prepublish,
};
6 changes: 6 additions & 0 deletions rust-plugins/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @farmfe/plugin-react

## 0.1.1

### Patch Changes

- Add farm plugin prepublish command

## 0.1.0

### Minor Changes
Expand Down
8 changes: 4 additions & 4 deletions rust-plugins/react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ switch (platform) {
binPath = join(currentDir, './npm/win32-x64-msvc/index.farm');
} else {
binPath = require.resolve(
'farmfe_plugin_react-win32-x64-msvc'
'@farmfe/plugin-react-win32-x64-msvc'
);
}

Expand All @@ -33,14 +33,14 @@ switch (platform) {
if (existsSync(join(currentDir, './npm/darwin-x64/index.farm'))) {
binPath = join(currentDir, './npm/darwin-x64/index.farm');
} else {
binPath = require.resolve('farmfe_plugin_react-darwin-x64');
binPath = require.resolve('@farmfe/plugin-react-darwin-x64');
}
break;
case 'arm64':
if (existsSync(join(currentDir, './npm/darwin-arm64/index.farm'))) {
binPath = join(currentDir, './npm/darwin-arm64/index.farm');
} else {
binPath = require.resolve('farmfe_plugin_react-darwin-arm64');
binPath = require.resolve('@farmfe/plugin-react-darwin-arm64');
}
break;
default:
Expand All @@ -54,7 +54,7 @@ switch (platform) {
binPath = join(currentDir, './npm/linux-x64-gnu/index.farm');
} else {
binPath = require.resolve(
'farmfe_plugin_react-linux-x64-gnu'
'@farmfe/plugin-react-linux-x64-gnu'
);
}
break;
Expand Down
4 changes: 2 additions & 2 deletions rust-plugins/react/npm/darwin-arm64/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `farmfe_plugin_react-darwin-arm64`
# `@farmfe/plugin-react-darwin-arm64`

This is the **aarch64-apple-darwin** binary for `farmfe_plugin_react`
This is the **aarch64-apple-darwin** binary for `@farmfe/plugin-react`
4 changes: 2 additions & 2 deletions rust-plugins/react/npm/darwin-x64/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `farmfe_plugin_react-darwin-x64`
# `@farmfe/plugin-react-darwin-x64`

This is the **x86_64-apple-darwin** binary for `farmfe_plugin_react`
This is the **x86_64-apple-darwin** binary for `@farmfe/plugin-react`
4 changes: 2 additions & 2 deletions rust-plugins/react/npm/linux-x64-gnu/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `farmfe_plugin_react-linux-x64-gnu`
# `@farmfe/plugin-react-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `farmfe_plugin_react`
This is the **x86_64-unknown-linux-gnu** binary for `@farmfe/plugin-react`
4 changes: 2 additions & 2 deletions rust-plugins/react/npm/win32-x64-msvc/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `farmfe_plugin_react-win32-x64-msvc`
# `@farmfe/plugin-react-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `farmfe_plugin_react`
This is the **x86_64-pc-windows-msvc** binary for `@farmfe/plugin-react`
4 changes: 2 additions & 2 deletions rust-plugins/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@farmfe/plugin-react",
"version": "0.1.0",
"version": "0.1.1",
"main": "index.js",
"types": "index.d.ts",
"type": "module",
Expand Down Expand Up @@ -29,7 +29,7 @@
"build": "napi build --platform --cargo-name farmfe_plugin_react -p farmfe_plugin_react --release",
"copy-artifacts": "node scripts/copy-artifacts.mjs",
"type-check": "echo \"No type-checking configured.\"",
"prepublishOnly": "napi prepublish -t npm"
"prepublishOnly": "farm plugin prepublish"
},
"files": [
"index.js",
Expand Down

0 comments on commit 72efbb8

Please sign in to comment.