@tsmodule/tsmodule 40.0.4 → 40.0.5
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/README.md +10 -14
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/convert/index.d.ts +7 -0
- package/dist/commands/convert/index.js +51 -0
- package/dist/commands/create/index.js +45 -12
- package/dist/commands/create/lib/templates.d.ts +32 -0
- package/dist/commands/create/lib/templates.js +51 -0
- package/dist/commands/dev/index.js +8 -8
- package/dist/commands/execute/index.js +4 -4
- package/dist/commands/index.js +17 -17
- package/dist/constants.d.ts +0 -8
- package/dist/constants.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +32 -32
- package/dist/specification/index.d.ts +6 -0
- package/dist/specification/index.js +4 -0
- package/dist/specification/types.d.ts +11 -0
- package/dist/{commands/create/lib/rewritePkgJson.js → specification/types.js} +0 -1
- package/dist/types/index.js +17 -17
- package/dist/utils/packageJson.d.ts +24 -0
- package/dist/utils/packageJson.js +4 -0
- package/package.json +2 -2
- package/templates/default/package.json +1 -33
- package/templates/react/package.json +1 -39
- package/dist/commands/create/lib/copyTemplate.d.ts +0 -1
- package/dist/commands/create/lib/copyTemplate.js +0 -10
- package/dist/commands/create/lib/rewritePkgJson.d.ts +0 -1
- package/dist/utils/pkgJson.d.ts +0 -2
- package/dist/utils/pkgJson.js +0 -4
package/dist/constants.d.ts
CHANGED
@@ -1,10 +1,2 @@
|
|
1
|
-
export declare const dependencies: {
|
2
|
-
default: never[];
|
3
|
-
react: string[];
|
4
|
-
};
|
5
|
-
export declare const devDependencies: {
|
6
|
-
default: string[];
|
7
|
-
react: string[];
|
8
|
-
};
|
9
1
|
export declare const PACKAGE_ROOT: string;
|
10
2
|
export declare const localPackageJson: () => Promise<any>;
|
package/dist/constants.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
|
2
2
|
typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
|
3
3
|
|
4
|
-
import{
|
4
|
+
import{dirname as t,resolve as o}from"path";import{fileURLToPath as a}from"url";import{readFile as e}from"fs/promises";var m=o(t(a(import.meta.url)),".."),i=async()=>{let r=await e(o(m,"package.json"),"utf-8");return JSON.parse(r)};export{m as PACKAGE_ROOT,i as localPackageJson};
|
package/dist/index.d.ts
CHANGED