Skip to content

Commit

Permalink
Merge pull request #5 from PiwikPRO/exampleAppFixeAndExtend
Browse files Browse the repository at this point in the history
Change lib engine to Node >= 16
  • Loading branch information
danieltwork authored Dec 6, 2022
2 parents 340c4fa + 4fac0db commit 8319d1d
Show file tree
Hide file tree
Showing 7 changed files with 322 additions and 6,935 deletions.
11 changes: 11 additions & 0 deletions example/lib/posts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import fs from 'fs'
import path from 'path'

const postsDirectory = path.join(process.cwd(), 'pages/examples')

export function getAllPostIds() {
const fileNames = fs.readdirSync(postsDirectory)
return fileNames.map((fileName) => {
return fileName.replace(/\.tsx$/, '')
})
}
550 changes: 302 additions & 248 deletions example/package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
"build": "next build",
"start": "next start"
},
"engines": {
"node": ">=16"
},
"dependencies": {
"@piwikpro/next-piwik-pro": "file:../dist",
"@piwikpro/next-piwik-pro": "^1.0.3",
"config": "^3.3.7",
"date-fns": "^2.11.1",
"dotenv": "^16.0.1",
Expand Down
1,036 changes: 0 additions & 1,036 deletions example/yarn.lock

This file was deleted.

6 changes: 3 additions & 3 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@piwikpro/next-piwik-pro",
"version": "1.0.3",
"version": "1.0.4",
"description": "Piwik PRO tracking library for Next.js",
"license": "MIT",
"main": "index.js",
"source": "src/index.tsx",
"author": "",
"engines": {
"node": ">=10"
"node": ">=16"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
Loading

0 comments on commit 8319d1d

Please sign in to comment.