extension-create 2.0.0-rc.2 → 2.0.0-rc.25
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/lib/messages.d.ts +31 -0
- package/dist/lib/types.d.ts +26 -0
- package/dist/lib/utils.d.ts +8 -0
- package/dist/module.d.ts +2 -1
- package/dist/module.js +10 -10
- package/dist/rslib.config.d.ts +2 -0
- package/dist/steps/create-directory.d.ts +1 -0
- package/dist/steps/generate-extension-types.d.ts +1 -0
- package/dist/steps/import-external-template.d.ts +1 -0
- package/dist/steps/import-local-template.d.ts +1 -0
- package/dist/steps/initialize-git-repository.d.ts +1 -0
- package/dist/steps/install-dependencies.d.ts +1 -0
- package/dist/steps/setup-built-in-tests.d.ts +1 -0
- package/dist/steps/write-gitignore.d.ts +1 -0
- package/dist/steps/write-manifest-json.d.ts +1 -0
- package/dist/steps/write-package-json.d.ts +6 -0
- package/dist/steps/write-readme-file.d.ts +1 -0
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare function destinationNotWriteable(workingDir: string): string;
|
|
2
|
+
export declare function directoryHasConflicts(projectPath: string, conflictingFiles: string[]): Promise<string>;
|
|
3
|
+
export declare function noProjectName(): string;
|
|
4
|
+
export declare function noUrlAllowed(): string;
|
|
5
|
+
export declare function successfullInstall(projectPath: string, projectName: string): Promise<string>;
|
|
6
|
+
export declare function startingNewExtension(projectName: string): string;
|
|
7
|
+
export declare function checkingIfPathIsWriteable(): string;
|
|
8
|
+
export declare function scanningPossiblyConflictingFiles(): string;
|
|
9
|
+
export declare function createDirectoryError(projectName: string, error: any): string;
|
|
10
|
+
export declare function writingTypeDefinitions(projectName: string): string;
|
|
11
|
+
export declare function writingTypeDefinitionsError(error: any): string;
|
|
12
|
+
export declare function installingFromTemplate(projectName: string, templateName: string): string;
|
|
13
|
+
export declare function installingFromTemplateError(projectName: string, template: string, error: any): string;
|
|
14
|
+
export declare function initializingGitForRepository(projectName: string): string;
|
|
15
|
+
export declare function initializingGitForRepositoryFailed(gitCommand: string, gitArgs: string[], code: number | null): string;
|
|
16
|
+
export declare function initializingGitForRepositoryProcessError(projectName: string, error: any): string;
|
|
17
|
+
export declare function initializingGitForRepositoryError(projectName: string, error: any): string;
|
|
18
|
+
export declare function installingDependencies(): string;
|
|
19
|
+
export declare function installingDependenciesFailed(gitCommand: string, gitArgs: string[], code: number | null): string;
|
|
20
|
+
export declare function installingDependenciesProcessError(projectName: string, error: any): string;
|
|
21
|
+
export declare function cantInstallDependencies(projectName: string, error: any): string;
|
|
22
|
+
export declare function writingPackageJsonMetadata(): string;
|
|
23
|
+
export declare function writingPackageJsonMetadataError(projectName: string, error: any): string;
|
|
24
|
+
export declare function writingManifestJsonMetadata(): string;
|
|
25
|
+
export declare function writingManifestJsonMetadataError(projectName: string, error: any): string;
|
|
26
|
+
export declare function writingReadmeMetaData(): string;
|
|
27
|
+
export declare function writingGitIgnore(): string;
|
|
28
|
+
export declare function writingReadmeMetaDataEError(projectName: string, error: any): string;
|
|
29
|
+
export declare function folderExists(projectName: string): string;
|
|
30
|
+
export declare function writingDirectoryError(error: any): string;
|
|
31
|
+
export declare function cantSetupBuiltInTests(projectName: string, error: any): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare namespace NodeJS {
|
|
2
|
+
interface ProcessEnv {
|
|
3
|
+
EXTENSION_BROWSER: 'chrome' | 'edge' | 'firefox' | 'chromium-based' | 'gecko-based';
|
|
4
|
+
EXTENSION_MODE: 'development' | 'production';
|
|
5
|
+
EXTENSION_PUBLIC_BROWSER: 'chrome' | 'edge' | 'firefox' | 'chromium-based' | 'gecko-based';
|
|
6
|
+
EXTENSION_PUBLIC_MODE: 'development' | 'production';
|
|
7
|
+
EXTENSION_PUBLIC_DESCRIPTION_TEXT: string;
|
|
8
|
+
EXTENSION_PUBLIC_OPENAI_API_KEY: string;
|
|
9
|
+
EXTENSION_ENV: 'development' | 'production';
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
interface ImportMetaEnv {
|
|
13
|
+
EXTENSION_BROWSER: NodeJS.ProcessEnv['EXTENSION_BROWSER'];
|
|
14
|
+
EXTENSION_MODE: NodeJS.ProcessEnv['EXTENSION_MODE'];
|
|
15
|
+
EXTENSION_PUBLIC_BROWSER: NodeJS.ProcessEnv['EXTENSION_BROWSER'];
|
|
16
|
+
EXTENSION_PUBLIC_MODE: NodeJS.ProcessEnv['EXTENSION_MODE'];
|
|
17
|
+
[key: string]: string | undefined;
|
|
18
|
+
}
|
|
19
|
+
interface ImportMeta {
|
|
20
|
+
readonly env: ImportMetaEnv;
|
|
21
|
+
readonly webpackHot?: {
|
|
22
|
+
accept: (module?: string | string[], callback?: () => void) => void;
|
|
23
|
+
dispose: (callback: () => void) => void;
|
|
24
|
+
};
|
|
25
|
+
url: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function copyDirectory(source: string, destination: string): Promise<void[]>;
|
|
2
|
+
export declare function copyDirectoryWithSymlinks(source: string, destination: string): Promise<void>;
|
|
3
|
+
export declare function moveDirectoryContents(source: string, destination: string): Promise<void>;
|
|
4
|
+
export declare function getInstallCommand(): Promise<string>;
|
|
5
|
+
export declare function getTemplatePath(workingDir: string): string;
|
|
6
|
+
export declare function isDirectoryWriteable(directory: string, projectName: string): Promise<boolean>;
|
|
7
|
+
export declare function isExternalTemplate(templateName: string): boolean;
|
|
8
|
+
export declare function isTypeScriptTemplate(templateName: string): boolean;
|
package/dist/module.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
interface CreateOptions {
|
|
2
2
|
template: string;
|
|
3
3
|
install?: boolean;
|
|
4
|
+
cliVersion?: string;
|
|
4
5
|
}
|
|
5
|
-
declare function extensionCreate(projectNameInput: string | undefined, { template, install }: CreateOptions): Promise<void>;
|
|
6
|
+
declare function extensionCreate(projectNameInput: string | undefined, { cliVersion, template, install }: CreateOptions): Promise<void>;
|
|
6
7
|
|
|
7
8
|
export { type CreateOptions, extensionCreate };
|
package/dist/module.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";var ze=Object.create;var b=Object.defineProperty;var Ve=Object.getOwnPropertyDescriptor;var Xe=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Ye=(e,t)=>{for(var r in t)b(e,r,{get:t[r],enumerable:!0})},
|
|
1
|
+
"use strict";var ze=Object.create;var b=Object.defineProperty;var Ve=Object.getOwnPropertyDescriptor;var Xe=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Ye=(e,t)=>{for(var r in t)b(e,r,{get:t[r],enumerable:!0})},O=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Xe(t))!Ue.call(e,i)&&i!==r&&b(e,i,{get:()=>t[i],enumerable:!(o=Ve(t,i))||o.enumerable});return e};var c=(e,t,r)=>(r=e!=null?ze(Le(e)):{},O(t||!e||!e.__esModule?b(r,"default",{value:e,enumerable:!0}):r,e)),Be=e=>O(b({},"__esModule",{value:!0}),e);var at={};Ye(at,{extensionCreate:()=>ot});module.exports=Be(at);var C=c(require("path"));var y=c(require("path")),n=require("@colors/colors/safe"),j=c(require("fs/promises")),A=require("package-manager-detector");function G(e){let t=y.default.basename(e);return`${(0,n.red)("\u2716\uFE0E\u2716\uFE0E\u2716\uFE0E")} Failed to write in the destination directory
|
|
2
2
|
|
|
3
3
|
Path is not writable. Ensure you have write permissions for this folder.
|
|
4
|
-
${(0,n.red)("NOT WRITEABLE")}: ${(0,n.underline)(t)}`}async function
|
|
4
|
+
${(0,n.red)("NOT WRITEABLE")}: ${(0,n.underline)(t)}`}async function W(e,t){let r=y.default.basename(e),o=`
|
|
5
5
|
Conflict! Path to ${(0,n.cyan)(r)} includes conflicting files:
|
|
6
6
|
|
|
7
|
-
`;for(let i of t){let
|
|
7
|
+
`;for(let i of t){let s=await j.default.lstat(y.default.join(e,i));o+=s.isDirectory()?`${(0,n.gray)("-")} ${(0,n.brightYellow)(i)}
|
|
8
8
|
`:`${(0,n.gray)("-")} ${(0,n.brightYellow)(i)}
|
|
9
|
-
`}return
|
|
9
|
+
`}return o+=`
|
|
10
10
|
You need to either rename/remove the files listed above, or choose a new directory name for your extension.
|
|
11
11
|
|
|
12
|
-
Path to conflicting directory: ${(0,n.underline)(e)}`,
|
|
12
|
+
Path to conflicting directory: ${(0,n.underline)(e)}`,o}function z(){return`${(0,n.red)("\u2716\uFE0E\u2716\uFE0E\u2716\uFE0E")} You need to provide an extension name to create one. See ${(0,n.brightYellow)("--help")} for command info.`}function V(){return`${(0,n.red)("\u2716\uFE0E\u2716\uFE0E\u2716\uFE0E")} URLs are not allowed as a project path. Either write a name or a path to a local folder.`}async function X(e,t){let r=y.default.relative(process.cwd(),e),o=await(0,A.detect)(),i="npm run";switch(o?.name){case"yarn":i="yarn dev";break;case"pnpm":i="pnpm dev";break;default:i="npm run dev"}return process.env.npm_config_user_agent&&process.env.npm_config_user_agent.includes("pnpm")&&(i="pnpm dev"),`\u{1F9E9} - ${(0,n.brightGreen)("Success!")} Extension ${(0,n.cyan)(t)} created.
|
|
13
13
|
|
|
14
14
|
Now ${(0,n.magenta)(`cd ${(0,n.underline)(r)}`)} and ${(0,n.magenta)(`${i}`)} to open a new browser instance
|
|
15
15
|
with your extension installed, loaded, and enabled for development.
|
|
@@ -26,14 +26,14 @@ ${(0,n.red)(t)}`}function ae(){return`\u{1F4DC} - Writing ${(0,n.brightYellow)("
|
|
|
26
26
|
${(0,n.red)(t)}`}function le(){return`\u{1F4C4} - Writing ${(0,n.brightYellow)("README.md")} metadata...`}function me(){return`\u{1F648} - Writing ${(0,n.brightYellow)(".gitignore")} lines...`}function pe(e,t){return`${(0,n.red)("\u2716\uFE0E\u2716\uFE0E\u2716\uFE0E")} Can't write the ${(0,n.brightYellow)("README.md")} file for ${(0,n.cyan)(e)}:
|
|
27
27
|
${(0,n.red)(t)}`}function ge(e){return`\u{1F91D} - Ensuring ${(0,n.cyan)(e)} folder exists...`}function fe(e){return`${(0,n.red)("\u2716\uFE0E\u2716\uFE0E\u2716\uFE0E")} Error while checking directory writability:
|
|
28
28
|
`+(0,n.red)(e)}function de(e,t){return`${(0,n.red)("\u2716\uFE0E\u2716\uFE0E\u2716\uFE0E")} Can't setup built-in tests for ${(0,n.cyan)(e)}:
|
|
29
|
-
${(0,n.red)(t)}`}var h=
|
|
29
|
+
${(0,n.red)(t)}`}var h=c(require("fs/promises")),$=c(require("path")),ue=require("package-manager-detector");async function E(e,t){let r=await h.default.readdir(e,{withFileTypes:!0});return await h.default.mkdir(t,{recursive:!0}),await Promise.all(r.map(async o=>{let i=$.default.join(e,o.name),s=$.default.join(t,o.name);o.isDirectory()?await E(i,s):await h.default.copyFile(i,s)}))}async function T(){let e=await(0,ue.detect)(),t="npm";if(process.env.npm_config_user_agent&&process.env.npm_config_user_agent.includes("pnpm"))return"pnpm";switch(e?.name){case"yarn":t="yarn";break;case"pnpm":t="pnpm";break;default:t="npm"}return t}function we(e){let t=$.default.resolve(__dirname,"template");return $.default.resolve(e,t)}async function ye(e,t){try{return console.log(ge(t)),await h.default.mkdir(e,{recursive:!0}),!0}catch(r){return console.log(fe(r)),!1}}function xe(e){return e!=="init"}function he(e){return e.includes("typescript")||e.includes("react")||e.includes("preact")||e.includes("svelte")||e.includes("solid")}var $e=c(require("path")),P=c(require("fs/promises"));var qe=["LICENSE","node_modules"];async function Ee(e,t){console.log(L(t));try{let r=await ye(e,t);console.log(U()),r||(console.error(G(e)),process.exit(1));let o=await P.default.readdir(e);console.log(Y());let i=await Promise.all(o.filter(s=>!s.startsWith(".")).filter(s=>!s.endsWith(".log")).filter(s=>!qe.includes(s)).map(async s=>(await P.default.lstat($e.default.join(e,s))).isDirectory()?`${s}/`:`${s}`));if(i.length>0){let s=await W(e,i);throw new Error(s)}}catch(r){console.error(B(t,r)),process.exit(1)}}var ve=c(require("path"));async function be(e,t,r){let o=ve.default.resolve(__dirname,"template");try{console.log(x(t,r)),await E(o,e)}catch(i){console.error(D(t,r,i)),process.exit(1)}}var g=c(require("path")),u=c(require("fs/promises")),De=c(require("go-git-it"));async function Te(e,t,r){let o=g.default.dirname(e),i=g.default.basename(r),l=`https://github.com/extension-js/extension.js/tree/main/examples/${r}`;try{await u.default.mkdir(e,{recursive:!0});let a="";if(process.env.EXTENSION_ENV==="development"){console.log(x(t,r)),a=g.default.join(e,i);let m=g.default.join(__dirname,"..","..","..","examples",i);await E(m,a)}else await(0,De.default)(l,o,x(t,i)),a=g.default.join(o,i);if(t!==i){let m=g.default.join(o,t);await u.default.mkdir(m,{recursive:!0});let p=await u.default.readdir(a);for(let d of p)await u.default.rename(g.default.join(a,d),g.default.join(m,d));await u.default.rm(a,{recursive:!0,force:!0})}else{let m=g.default.join(o,t+"-temp");await u.default.rename(a,m);let p=g.default.join(m,i),d=g.default.join(o,t);await u.default.mkdir(d,{recursive:!0});let We=await u.default.readdir(p);for(let N of We)await u.default.rename(g.default.join(p,N),g.default.join(d,N));await u.default.rm(m,{recursive:!0,force:!0})}}catch(a){console.error(D(t,i,a)),process.exit(1)}}var v=c(require("path")),_=c(require("fs/promises"));var He={dev:process.env.EXTENSION_ENV==="development"?"node node_modules/extension dev":"extension dev",start:process.env.EXTENSION_ENV==="development"?"node node_modules/extension start":"extension start",build:process.env.EXTENSION_ENV==="development"?"node node_modules/extension build":"extension build"};async function Fe(e,t,{template:r,cliVersion:o}){let i=we(process.cwd()),s=xe(r)?v.default.join(e,"package.json"):v.default.join(i,"package.json"),l=await _.default.readFile(s),a=JSON.parse(l.toString());a.scripts=a.scripts||{},a.dependencies=a.dependencies||{},a.devDependencies={...a.devDependencies||{},extension:process.env.EXTENSION_ENV==="development"?"*":`^${o}`};let m={...a,name:v.default.basename(e),private:!0,scripts:{...a.scripts,...He},dependencies:a.dependencies,devDependencies:a.devDependencies,author:{name:"Your Name",email:"your@email.com",url:"https://yourwebsite.com"}};try{console.log(se()),await _.default.writeFile(v.default.join(e,"package.json"),JSON.stringify(m,null,2))}catch(p){console.error(oe(t,p)),process.exit(1)}}var ke=c(require("path")),Se=require("cross-spawn"),Ce=c(require("fs"));function Ke(){return["install","--silent"]}async function Pe(e,t){let r=ke.default.join(e,"node_modules"),o=await T(),i=Ke();console.log(te());try{let s=process.cwd();process.chdir(e),await Ce.default.promises.mkdir(r,{recursive:!0});let l=process.env.EXTENSION_ENV==="development"?"inherit":"ignore",a=(0,Se.spawn)(o,i,{stdio:l});await new Promise((m,p)=>{a.on("close",d=>{process.chdir(s),d!==0?p(new Error(ne(o,i,d))):m()}),a.on("error",d=>{process.chdir(s),console.error(ie(t,d)),p(d)})})}catch(s){console.error(re(t,s)),process.exit(1)}}var F=c(require("path")),k=c(require("fs/promises"));async function _e(e,t){let r=await k.default.readFile(F.default.join(__dirname,"template","README.md"),"utf-8"),o=await T(),i=require(F.default.join(e,"manifest.json")),s=r.replaceAll("[projectName]",t).replaceAll("[templateDescription]",i.description).replaceAll("[runCommand]",o);try{console.log(le()),await k.default.mkdir(e,{recursive:!0}),await k.default.writeFile(F.default.join(e,"README.md"),s)}catch(l){console.error(pe(t,l)),process.exit(1)}}var S=c(require("path")),I=c(require("fs/promises"));async function Ie(e,t){let r=S.default.join(e,"manifest.json"),o=await I.default.readFile(r),s={...JSON.parse(o.toString()),name:S.default.basename(e),author:"Your Name"};try{console.log(ae()),await I.default.writeFile(S.default.join(e,"manifest.json"),JSON.stringify(s,null,2))}catch(l){console.error(ce(t,l)),process.exit(1)}}var J=c(require("path")),M=c(require("fs/promises"));async function Je(e,t){let r=J.default.join(e,"extension-env.d.ts"),o=process.env.EXTENSION_ENV==="development"?J.default.resolve(process.cwd(),"programs/cli/types"):"extension/dist/types",i=`// Required Extension.js types for TypeScript projects.
|
|
30
30
|
// This file is auto-generated and should not be excluded.
|
|
31
31
|
// If you need additional types, consider creating a new *.d.ts file and
|
|
32
32
|
// referencing it in the "include" array of your tsconfig.json file.
|
|
33
33
|
// See https://www.typescriptlang.org/tsconfig#include for more information.
|
|
34
|
-
/// <reference types="${
|
|
34
|
+
/// <reference types="${o}/index.d.ts" />
|
|
35
35
|
|
|
36
36
|
// Polyfill types for browser.* APIs.
|
|
37
|
-
/// <reference types="${
|
|
38
|
-
`;try{await M.default.mkdir(e,{recursive:!0}),console.log(q(t)),await M.default.writeFile(r,i)}catch(
|
|
39
|
-
`),{flush:!0}).catch(
|
|
37
|
+
/// <reference types="${o}/polyfill.d.ts" />
|
|
38
|
+
`;try{await M.default.mkdir(e,{recursive:!0}),console.log(q(t)),await M.default.writeFile(r,i)}catch(s){console.error(H(s)),process.exit(1)}}var Me=c(require("fs/promises")),Re=c(require("path"));var Qe=["","# dependencies","node_modules"],Ze=["","# testing","coverage"],et=["","# production","dist"],tt=["","# misc",".DS_Store"],nt=["","# local env files",".env.local",".env.development.local",".env.test.local",".env.production.local"],it=["","# debug files","npm-debug.log*","yarn-debug.log*","yarn-error.log*"],rt=["","# extension.js","extension-env.d.ts"],st=["# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.",...Qe,...Ze,...et,...tt,...nt,...it,...rt];async function Ne(e){let t=Re.default.join(e,".gitignore"),r=await Me.default.open(t,"a+").catch(s=>{console.error(s),process.exit(1)}),o=new Set;for await(let s of r.readLines({autoClose:!1}))s=s.trim(),s.length!==0&&o.add(s);let i=st.filter(s=>!o.has(s));for(;i[i.length-1]==="";)i.pop();console.log(me()),await r.appendFile(i.join(`
|
|
39
|
+
`),{flush:!0}).catch(s=>{console.error(s),process.exit(1)})}var Oe=require("cross-spawn");async function je(e,t){let r="git",o=["init","--quiet"];console.log(K(t));try{let i=process.cwd();process.chdir(e);let s=process.env.EXTENSION_ENV==="development"?"inherit":"ignore",l=(0,Oe.spawn)(r,o,{stdio:s});await new Promise((a,m)=>{l.on("close",p=>{process.chdir(i),p!==0?m(new Error(Q(r,o,p))):a()}),l.on("error",p=>{process.chdir(i),console.error(Z(t,p)),m(p)})})}catch(i){console.error(ee(t,i)),process.exit(1)}}var Ae=c(require("path")),R=c(require("fs"));async function Ge(e,t){try{let r=Ae.default.join(e,"tests","templates.spec.ts");R.default.existsSync(r)&&R.default.unlinkSync(r)}catch(r){console.error(de(t,r)),process.exit(1)}}async function ot(e,{cliVersion:t,template:r="init",install:o=!0}){if(!e)throw new Error(z());if(e.startsWith("http"))throw new Error(V());let i=C.default.isAbsolute(e)?e:C.default.join(process.cwd(),e),s=C.default.basename(i);try{await Ee(i,s),r==="init"?await be(i,s,r):await Te(i,s,r),await Fe(i,s,{template:r,cliVersion:t}),o&&await Pe(i,s),await _e(i,s),await Ie(i,s),await je(i,s),await Ne(i),await Ge(i,s),he(r)&&await Je(i,s);let l=await X(i,s);console.log(l)}catch(l){throw console.error(l),l}}0&&(module.exports={extensionCreate});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createDirectory(projectPath: string, projectName: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function generateExtensionTypes(projectPath: string, projectName: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function importExternalTemplate(projectPath: string, projectName: string, template: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function importLocalTemplate(projectPath: string, projectName: string, template: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function initializeGitRepository(projectPath: string, projectName: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function installDependencies(projectPath: string, projectName: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setupBuiltInTests(projectPath: string, projectName: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function writeGitignore(projectPath: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function writeManifestJson(projectPath: string, projectName: string): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function writeReadmeFile(projectPath: string, projectName: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"node": ">=18"
|
|
10
10
|
},
|
|
11
11
|
"name": "extension-create",
|
|
12
|
-
"version": "2.0.0-rc.
|
|
12
|
+
"version": "2.0.0-rc.25",
|
|
13
13
|
"description": "The Extension.js create step",
|
|
14
14
|
"main": "./dist/module.js",
|
|
15
15
|
"types": "./dist/module.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@types/react-dom": "^19.0.1",
|
|
35
35
|
"globals": "^15.13.0",
|
|
36
36
|
"jest": "^29.7.0",
|
|
37
|
-
"ts-jest": "^29.
|
|
37
|
+
"ts-jest": "^29.3.1",
|
|
38
38
|
"tsconfig": "*",
|
|
39
39
|
"tsup": "^8.3.5",
|
|
40
40
|
"typescript": "5.7.2"
|