odoro 0.3.3 → 0.3.4
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/dist/{chunk-Q35CGY2Z.js → chunk-DL3NPC4H.js} +12 -1
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{package-KXIZ5RXR.js → package-Q2FV4K3H.js} +1 -1
- package/package.json +1 -1
- package/templates/react-ts/tsconfig.json +1 -2
- package/templates/react-ts-server/tsconfig.json +0 -1
|
@@ -24,7 +24,18 @@ async function importConfigFile(file, root) {
|
|
|
24
24
|
write: false,
|
|
25
25
|
// Seul le code du projet est inline ; ses dependances restent externes,
|
|
26
26
|
// sans quoi il faudrait resoudre tout node_modules pour lire trois lignes.
|
|
27
|
-
packages: "external"
|
|
27
|
+
packages: "external",
|
|
28
|
+
// `packages: 'external'` ne suffit pas : un `baseUrl` dans le
|
|
29
|
+
// `tsconfig.json` fait chercher les imports nus depuis la racine du
|
|
30
|
+
// projet, ou `odoro.json` — le fichier du registre — est trouve avant le
|
|
31
|
+
// paquet. L'import cesse alors d'etre un import de paquet, la regle
|
|
32
|
+
// ci-dessus ne s'applique plus, et la compilation echoue sur un
|
|
33
|
+
// `defineConfig` introuvable dans un fichier de configuration.
|
|
34
|
+
//
|
|
35
|
+
// Le nommer explicitement le met hors d'atteinte de cette resolution. La
|
|
36
|
+
// liste vaut pour les projets deja crees : eux portent encore un
|
|
37
|
+
// `baseUrl`, et on ne peut pas reecrire leur tsconfig.
|
|
38
|
+
external: ["odoro"]
|
|
28
39
|
});
|
|
29
40
|
const code = result.outputFiles[0]?.text;
|
|
30
41
|
if (code === void 0) {
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { loadConfig } from './chunk-
|
|
2
|
+
import { loadConfig } from './chunk-DL3NPC4H.js';
|
|
3
3
|
import './chunk-T6RLHSCW.js';
|
|
4
4
|
import { error } from './chunk-JMEHF3KN.js';
|
|
5
5
|
import { realpathSync } from 'fs';
|
|
@@ -131,7 +131,7 @@ function rootFrom(flags, positional) {
|
|
|
131
131
|
async function run(argv) {
|
|
132
132
|
const { command, positional, flags } = parseArgs(argv);
|
|
133
133
|
if (flags["version"] === true) {
|
|
134
|
-
const manifest = await import('./package-
|
|
134
|
+
const manifest = await import('./package-Q2FV4K3H.js');
|
|
135
135
|
console.log(manifest.default.version);
|
|
136
136
|
return 0;
|
|
137
137
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
export { startPreviewServer } from './chunk-34ES2ICQ.js';
|
|
3
|
-
export { defineConfig, loadConfig } from './chunk-
|
|
3
|
+
export { defineConfig, loadConfig } from './chunk-DL3NPC4H.js';
|
|
4
4
|
import './chunk-T6RLHSCW.js';
|
|
5
5
|
export { buildProject, reportBuild } from './chunk-CJIUP7A3.js';
|
|
6
6
|
export { ModuleGraph, depFileName, detectSelfAccepting, optimizeDeps, scanDependencies, startDevServer } from './chunk-R6PMAMXA.js';
|
package/package.json
CHANGED