@directivegames/genesys.sdk 3.3.2 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,11 +27,11 @@ const isInstalledAsDependency = __dirname.includes('node_modules');
|
|
|
27
27
|
if (isInstalledAsDependency) {
|
|
28
28
|
try {
|
|
29
29
|
// Read package.json to get the package name
|
|
30
|
-
const packageJsonPath = path.resolve(__dirname, '
|
|
30
|
+
const packageJsonPath = path.resolve(__dirname, '../package.json');
|
|
31
31
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
32
32
|
const packageName = packageJson.name;
|
|
33
33
|
// Source: assets folder in this package
|
|
34
|
-
const sourceAssetsDir = path.resolve(__dirname, '
|
|
34
|
+
const sourceAssetsDir = path.resolve(__dirname, '../assets');
|
|
35
35
|
// Find the parent project root
|
|
36
36
|
const parentProjectRoot = findProjectRoot();
|
|
37
37
|
if (!parentProjectRoot) {
|
|
@@ -15,7 +15,7 @@ export const packProjectFiles = {
|
|
|
15
15
|
'build': 'tsc',
|
|
16
16
|
'pack': 'pnpm build && pnpm pack',
|
|
17
17
|
'lint': 'eslint . --fix --ext .ts,.tsx',
|
|
18
|
-
'postinstall': 'tsx scripts/
|
|
18
|
+
'postinstall': 'pnpm dlx tsx scripts/post-install.ts'
|
|
19
19
|
},
|
|
20
20
|
keywords: [],
|
|
21
21
|
type: 'module',
|
package/package.json
CHANGED
|
@@ -35,12 +35,12 @@ const isInstalledAsDependency = __dirname.includes('node_modules');
|
|
|
35
35
|
if (isInstalledAsDependency) {
|
|
36
36
|
try {
|
|
37
37
|
// Read package.json to get the package name
|
|
38
|
-
const packageJsonPath = path.resolve(__dirname, '
|
|
38
|
+
const packageJsonPath = path.resolve(__dirname, '../package.json');
|
|
39
39
|
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
40
40
|
const packageName = packageJson.name;
|
|
41
41
|
|
|
42
42
|
// Source: assets folder in this package
|
|
43
|
-
const sourceAssetsDir = path.resolve(__dirname, '
|
|
43
|
+
const sourceAssetsDir = path.resolve(__dirname, '../assets');
|
|
44
44
|
|
|
45
45
|
// Find the parent project root
|
|
46
46
|
const parentProjectRoot = findProjectRoot();
|