create-nuxt-base 0.3.9 → 0.3.10
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.
- package/CHANGELOG.md +7 -0
- package/nuxt-base-template/nuxt.config.ts +22 -3
- package/nuxt-base-template/package.json +3 -4
- package/nuxt-base-template/pnpm-lock.yaml +703 -52
- package/nuxt-base-template/src/assets/css/tailwind.css +4 -0
- package/package.json +1 -1
- package/nuxt-base-template/postbuild.js +0 -26
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { execSync } from 'child_process';
|
|
2
|
-
import * as path from 'path';
|
|
3
|
-
|
|
4
|
-
const tslibPath = path.resolve('.output', 'server', 'node_modules', 'tslib');
|
|
5
|
-
|
|
6
|
-
async function runPostinstall() {
|
|
7
|
-
const { default: config } = await import('./nuxt.config.ts');
|
|
8
|
-
|
|
9
|
-
if (!config.ssr) {
|
|
10
|
-
console.debug('⚠️ SSR is disabled, skipping postinstall script.');
|
|
11
|
-
process.exit(0);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
try {
|
|
15
|
-
process.chdir(tslibPath);
|
|
16
|
-
const command = 'npm pkg set \'exports[.].import.node\'=\'./tslib.es6.mjs\'';
|
|
17
|
-
execSync(command, { stdio: 'inherit' });
|
|
18
|
-
console.debug('✅ Successfully ran postinstall script');
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.error('❌ Error executing postinstall script:', error);
|
|
21
|
-
process.exit(1);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
runPostinstall();
|