Skip to content

Commit

Permalink
chore: replace npm scripts with pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW committed Apr 25, 2024
1 parent bcf7bbd commit 815b1fe
Show file tree
Hide file tree
Showing 34 changed files with 38 additions and 38 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"build": "lerna run build --scope @refinedev/core",
"build:all": "lerna run build --scope @refinedev/* --scope create-refine-app",
"changeset": "changeset",
"coffee": "npm run nuke && npm i && npm run build:all",
"coffee": "pnpm nuke && pnpm i && pnpm build:all",
"dev": "lerna run dev",
"dev:docs": "concurrently \"cd documentation && npm run dev\" \"npm run dev -- --scope @refinedev/live-previews\" --names docs,live --prefix-colors blue,red",
"dev:docs": "concurrently \"cd documentation && pnpm dev\" \"pnpm dev -- --scope @refinedev/live-previews\" --names docs,live --prefix-colors blue,red",
"lerna": "lerna",
"lint": "biome check .",
"lint:ci": "biome ci .",
"lint:error": "biome check . --diagnostic-level error",
"lint:fix": "biome check . --apply",
"lint:staged": "lint-staged",
"nuke": "echo 'Removing all node_modules, builds and lockfiles'; npm run nuke:nx; npm run nuke:node_modules; npm run nuke:builds; npm run nuke:lockfiles;",
"nuke": "echo 'Removing all node_modules, builds and lockfiles'; pnpm nuke:nx; pnpm nuke:node_modules; pnpm nuke:builds; pnpm nuke:lockfiles;",
"nuke:builds": "lerna exec -- rm -rf dist && lerna exec -- rm -rf .next && lerna exec -- rm -rf build",
"nuke:lockfiles": "lerna exec --ignore @refinedev/codemod -- rm -rf package-lock.json && lerna exec --ignore @refinedev/codemod -- rm -rf yarn.lock && lerna exec --ignore @refinedev/codemod -- rm -rf pnpm-lock.yaml",
"nuke:node_modules": "lerna clean --yes",
Expand All @@ -31,8 +31,8 @@
"publint:all": "lerna run publint --scope @refinedev/*",
"test": "lerna run test --stream",
"test:all": "lerna run test --stream --scope @refinedev/* --scope create-refine-app",
"test:all:coverage": "npm run test:all -- -- --coverage",
"test:coverage": "npm run test -- -- --coverage"
"test:all:coverage": "pnpm test:all -- -- --coverage",
"test:coverage": "pnpm test -- -- --coverage"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
Expand Down
2 changes: 1 addition & 1 deletion packages/ably/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/airtable/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/antd/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ export default defineConfig({
js: '"use client"',
};
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/appwrite/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/chakra-ui/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ export default defineConfig({
js: '"use client"',
};
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/cli/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/core/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export default defineConfig({
js: '"use client"',
};
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/devtools-internal/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/devtools-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"attw": "attw --pack .",
"build": "tsup && node ../shared/generate-declarations.js",
"build:client": "NODE_ENV=production tsc && vite build --config src/client/vite.config.ts",
"dev": "npm run dev:client & tsup --watch",
"dev": "pnpm dev:client & tsup --watch",
"dev:client": "vite build --watch --force --config src/client/vite.config.ts",
"prepare": "nx build --project @refinedev/devtools-server --nxBail --output-style stream",
"publint": "publint --strict=true --level=suggestion",
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools-server/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export default defineConfig((tsupOptions) => ({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
}));
2 changes: 1 addition & 1 deletion packages/devtools-shared/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ export default defineConfig({
js: '"use client"',
};
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/devtools-ui/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/devtools/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/graphql/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/hasura/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export default defineConfig({
outExtension: ({ format }) => ({ js: format === "cjs" ? ".cjs" : ".mjs" }),
platform: "browser",
esbuildPlugins: [lodashReplacePlugin, markAsExternalPlugin],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/inferencer/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export default defineConfig({
js: '"use client"',
};
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/kbar/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ export default defineConfig({
js: '"use client"',
};
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/mantine/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export default defineConfig({
js: '"use client"',
};
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/medusa/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/mui/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export default defineConfig({
js: '"use client"',
};
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/nestjs-query/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export default defineConfig({
outExtension: ({ format }) => ({ js: format === "cjs" ? ".cjs" : ".mjs" }),
platform: "browser",
esbuildPlugins: [markAsExternalPlugin, lodashReplacePlugin],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/nestjsx-crud/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/nextjs-router/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const sharedConfig: Partial<Options> = {
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
};

export default defineConfig([
Expand Down
2 changes: 1 addition & 1 deletion packages/react-hook-form/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export default defineConfig({
js: '"use client"',
};
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/react-router-v6/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/react-table/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ export default defineConfig({
js: '"use client"',
};
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/remix-router/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/simple-rest/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/strapi-v4/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/strapi/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/supabase/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export default defineConfig({
},
}),
],
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/ui-tests/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export default defineConfig({
loader: {
".svg": "dataurl",
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});
2 changes: 1 addition & 1 deletion packages/ui-types/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export default defineConfig({
loader: {
".svg": "dataurl",
},
onSuccess: "npm run types",
onSuccess: "pnpm types",
});

0 comments on commit 815b1fe

Please sign in to comment.