Skip to content

Commit

Permalink
Fixed #1 (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
JorrinKievit committed Apr 22, 2023
1 parent ad7609f commit 67239ae
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 23 deletions.
7 changes: 7 additions & 0 deletions apps/node-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# node-demo

## 1.0.2

### Patch Changes

- Updated dependencies
- [email protected]

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/node-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-demo",
"version": "1.0.1",
"version": "1.0.2",
"description": "",
"private": true,
"main": "dist/index.js",
Expand Down
4 changes: 3 additions & 1 deletion apps/node-demo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ import { TMDBNodeApi } from "tmdb-js-node";

const tmdbApi = new TMDBNodeApi("YOUR_API_KEY");

tmdbApi.v4.list.getList();
tmdbApi.v3.trending.getTrending("movie", "day").then((response) => {
console.log("GREAT SUCCESS", response.results.length);
});
7 changes: 7 additions & 0 deletions apps/web-demo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# web-demo

## 0.0.3

### Patch Changes

- Updated dependencies
- [email protected]

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/web-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web-demo",
"private": true,
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
13 changes: 3 additions & 10 deletions apps/web-demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,9 @@ function App() {

useEffect(() => {
const tmdbApi = new TMDBWebAPI("YOUR_API_KEY");
tmdbApi.v3.search
.searchMulti({
query: "star wars",
})
.then((data) => {
setData(data);
})
.catch((err) => {
console.log(err.message);
});
tmdbApi.v3.trending.getTrending("all", "day").then((res) => {
console.log(res)
});
}, []);

return (
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"dev": "turbo run dev --parallel",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"publish-packages": "turbo run build && changeset version && changeset publish"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "tsup";

export default defineConfig({
entry: ["./src/index.ts"],
format: ["esm","cjs","iife"],
format: ["esm","cjs"],
dts: true,
clean: true,
sourcemap: true,
Expand Down
6 changes: 6 additions & 0 deletions packages/node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# tmdb-js-node

## 1.0.3

### Patch Changes

- Fixed #1 V2

## 1.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tmdb-js-node",
"version": "1.0.2",
"version": "1.0.3",
"description": "tmdb-js-node is a fully-typed TypeScript wrapper for the TMDB API. It is designed for use in Node.js applications and supports both v3 and v4 of the TMDB API",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/node/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "tsup";

export default defineConfig({
entry: ["./src/index.ts"],
format: ["esm","cjs","iife"],
format: ["esm","cjs"],
dts: true,
clean: true,
sourcemap: true,
Expand Down
6 changes: 6 additions & 0 deletions packages/web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# tmdb-js-web

## 1.0.3

### Patch Changes

- Fixed #1 V2

## 1.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tmdb-js-web",
"version": "1.0.2",
"version": "1.0.3",
"description": "tmdb-js-web is a fully-typed TypeScript wrapper for the TMDB API. It is designed for use in browser-based JavaScript applications and supports both v3 and v4 of the TMDB API.",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import TMDBAPI, { Http, ITMDBAPI, TMDBApiError } from "../../core";
import TMDBAPI, { Http, TMDBApiError, ITMDBAPI } from "../../core";

export * from "../../core";

Expand Down
2 changes: 1 addition & 1 deletion packages/web/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "tsup";

export default defineConfig({
entry: ["./src/index.ts"],
format: ["esm","cjs","iife"],
format: ["esm","cjs"],
dts: true,
clean: true,
sourcemap: true,
Expand Down
10 changes: 7 additions & 3 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"build": {
"dependsOn": ["^build"],
"tmdb-js-core#build": {},
"tmdb-js-web#build": {
"dependsOn": ["tmdb-js-core#build"],
"outputs": ["dist/**"]
},
"tmdb-js-node#build": {
"dependsOn": ["tmdb-js-core#build"],
"outputs": ["dist/**"]
},
"lint": {
"outputs": []
},
"dev": {
"dependsOn": ["^build"],
"cache": false,
"persistent": true,
"outputs": ["dist/**"]
Expand Down

0 comments on commit 67239ae

Please sign in to comment.