Skip to content

Commit

Permalink
Revert move to /lib rather than /lib/src
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Nov 26, 2024
1 parent 066bdde commit cc0bb99
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playground/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { useActiveFeatureFlags, usePostHog } from 'posthog-js/react'
import { useEffect, useState } from 'react'
import { cookieConsentGiven, PERSON_PROCESSING_MODE } from '@/src/posthog'
import { setAllPersonProfilePropertiesAsPersonPropertiesForFlags } from 'posthog-js/lib/customizations'
import { setAllPersonProfilePropertiesAsPersonPropertiesForFlags } from 'posthog-js/lib/src/customizations'
import { STORED_PERSON_PROPERTIES_KEY } from '../../../src/constants'

export default function Home() {
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const entrypointTargets = entrypoints.map((file) => {
const typeTargets = entrypoints
.filter((file) => file.endsWith('.es.ts'))
.map((file) => {
const source = `./lib/entrypoints/${file.replace('.ts', '.d.ts')}`
const source = `./lib/src/entrypoints/${file.replace('.ts', '.d.ts')}`
/** @type {import('rollup').RollupOptions} */
return {
input: source,
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"target": "ES5",
"lib": ["dom", "dom.iterable", "esnext"],
Expand Down

0 comments on commit cc0bb99

Please sign in to comment.