diff --git a/packages/sitecore-jss-angular-schematics/.nycrc b/packages/sitecore-jss-angular-schematics/.nycrc index 87f982f0bf..84d8246c50 100644 --- a/packages/sitecore-jss-angular-schematics/.nycrc +++ b/packages/sitecore-jss-angular-schematics/.nycrc @@ -5,7 +5,7 @@ "exclude": [ "**/*.d.ts", "**/*.test.ts", - "src/testData", + "src/test-data", "dist", "src/test.ts" ], diff --git a/packages/sitecore-jss-angular/.npmignore b/packages/sitecore-jss-angular/.npmignore deleted file mode 100644 index 2dc1bc5393..0000000000 --- a/packages/sitecore-jss-angular/.npmignore +++ /dev/null @@ -1,18 +0,0 @@ -src -testData -coverage -sitecore -index.test.js -.eslintrc -.vscode -.npmignore -.gitignore -jsconfig.json -tsconfig.json -ng-package.json -karma.conf.js -npm-debug* -/dist/package.json -/dist/README.md -*.tgz -.nycrc diff --git a/packages/sitecore-jss-angular/package.json b/packages/sitecore-jss-angular/package.json index 50edf4c664..890a28a367 100644 --- a/packages/sitecore-jss-angular/package.json +++ b/packages/sitecore-jss-angular/package.json @@ -71,5 +71,9 @@ "es2015_ivy_ngcc": "dist/__ivy_ngcc__/fesm2015/sitecore-jss-sitecore-jss-angular.js", "fesm2015_ivy_ngcc": "dist/__ivy_ngcc__/fesm2015/sitecore-jss-sitecore-jss-angular.js", "sideEffects": false, - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "typings" + ] } diff --git a/packages/sitecore-jss-angular/src/components/date.directive.spec.ts b/packages/sitecore-jss-angular/src/components/date.directive.spec.ts index f6b14a872e..3cbbf41d1b 100644 --- a/packages/sitecore-jss-angular/src/components/date.directive.spec.ts +++ b/packages/sitecore-jss-angular/src/components/date.directive.spec.ts @@ -2,7 +2,7 @@ import { DatePipe, formatDate } from '@angular/common'; import { Component, DebugElement, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; -import { textField as eeTextData } from '../testData/ee-data'; +import { textField as eeTextData } from '../test-data/ee-data'; import { DateDirective } from './date.directive'; import { TextField } from './rendering-field'; diff --git a/packages/sitecore-jss-angular/src/components/generic-link.directive.spec.ts b/packages/sitecore-jss-angular/src/components/generic-link.directive.spec.ts index 16bd65c7fd..6293f77ae6 100644 --- a/packages/sitecore-jss-angular/src/components/generic-link.directive.spec.ts +++ b/packages/sitecore-jss-angular/src/components/generic-link.directive.spec.ts @@ -2,7 +2,7 @@ import { Component, DebugElement, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; -import { generalLinkField as eeLinkData } from '../testData/ee-data'; +import { generalLinkField as eeLinkData } from '../test-data/ee-data'; import { GenericLinkDirective } from './generic-link.directive'; import { RouterTestingModule } from '@angular/router/testing'; import { Router } from '@angular/router'; diff --git a/packages/sitecore-jss-angular/src/components/image.directive.spec.ts b/packages/sitecore-jss-angular/src/components/image.directive.spec.ts index e0c288dba5..b0f0e58aef 100644 --- a/packages/sitecore-jss-angular/src/components/image.directive.spec.ts +++ b/packages/sitecore-jss-angular/src/components/image.directive.spec.ts @@ -2,7 +2,7 @@ import { Component, DebugElement, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; -import { imageField as eeImageData } from '../testData/ee-data'; +import { imageField as eeImageData } from '../test-data/ee-data'; import { ImageDirective } from './image.directive'; import { ImageField } from './rendering-field'; diff --git a/packages/sitecore-jss-angular/src/components/link.directive.spec.ts b/packages/sitecore-jss-angular/src/components/link.directive.spec.ts index 3b0244305a..d166c64a7b 100644 --- a/packages/sitecore-jss-angular/src/components/link.directive.spec.ts +++ b/packages/sitecore-jss-angular/src/components/link.directive.spec.ts @@ -2,7 +2,7 @@ import { Component, DebugElement, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; -import { generalLinkField as eeLinkData } from '../testData/ee-data'; +import { generalLinkField as eeLinkData } from '../test-data/ee-data'; import { LinkDirective } from './link.directive'; import { LinkField } from './rendering-field'; diff --git a/packages/sitecore-jss-angular/src/components/placeholder.component.spec.ts b/packages/sitecore-jss-angular/src/components/placeholder.component.spec.ts index 32df7b25e5..be023b4688 100644 --- a/packages/sitecore-jss-angular/src/components/placeholder.component.spec.ts +++ b/packages/sitecore-jss-angular/src/components/placeholder.component.spec.ts @@ -13,11 +13,11 @@ import { SpyNgModuleFactoryLoader } from '@angular/router/testing'; import { JssModule } from '../lib.module'; -import { convertedData as eeData } from '../testData/ee-data'; +import { convertedData as eeData } from '../test-data/ee-data'; import { convertedDevData as nonEeDevData, convertedLayoutServiceData as nonEeLsData, -} from '../testData/non-ee-data'; +} from '../test-data/non-ee-data'; @Component({ selector: 'test-placeholder', diff --git a/packages/sitecore-jss-angular/src/components/rich-text.directive.spec.ts b/packages/sitecore-jss-angular/src/components/rich-text.directive.spec.ts index 019c90dbe3..05aa2d6bcf 100644 --- a/packages/sitecore-jss-angular/src/components/rich-text.directive.spec.ts +++ b/packages/sitecore-jss-angular/src/components/rich-text.directive.spec.ts @@ -2,7 +2,7 @@ import { Component, DebugElement, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; -import { richTextField as eeRichTextData } from '../testData/ee-data'; +import { richTextField as eeRichTextData } from '../test-data/ee-data'; import { RichTextField } from './rendering-field'; import { RichTextDirective } from './rich-text.directive'; diff --git a/packages/sitecore-jss-angular/src/components/router-link.directive.spec.ts b/packages/sitecore-jss-angular/src/components/router-link.directive.spec.ts index 0124c9f0ba..f7948ae6a9 100644 --- a/packages/sitecore-jss-angular/src/components/router-link.directive.spec.ts +++ b/packages/sitecore-jss-angular/src/components/router-link.directive.spec.ts @@ -2,7 +2,7 @@ import { Component, DebugElement, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; -import { generalLinkField as eeLinkData } from '../testData/ee-data'; +import { generalLinkField as eeLinkData } from '../test-data/ee-data'; import { RouterLinkDirective } from './router-link.directive'; import { RouterTestingModule } from '@angular/router/testing'; import { LinkField } from './rendering-field'; diff --git a/packages/sitecore-jss-angular/src/components/text.directive.spec.ts b/packages/sitecore-jss-angular/src/components/text.directive.spec.ts index 028e3354ae..fbe32d28f8 100644 --- a/packages/sitecore-jss-angular/src/components/text.directive.spec.ts +++ b/packages/sitecore-jss-angular/src/components/text.directive.spec.ts @@ -2,7 +2,7 @@ import { Component, DebugElement, Input } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; -import { textField as eeTextData } from '../testData/ee-data'; +import { textField as eeTextData } from '../test-data/ee-data'; import { TextField } from './rendering-field'; import { TextDirective } from './text.directive'; diff --git a/packages/sitecore-jss-angular/src/testData/ee-data.ts b/packages/sitecore-jss-angular/src/test-data/ee-data.ts similarity index 100% rename from packages/sitecore-jss-angular/src/testData/ee-data.ts rename to packages/sitecore-jss-angular/src/test-data/ee-data.ts diff --git a/packages/sitecore-jss-angular/src/testData/non-ee-data.ts b/packages/sitecore-jss-angular/src/test-data/non-ee-data.ts similarity index 100% rename from packages/sitecore-jss-angular/src/testData/non-ee-data.ts rename to packages/sitecore-jss-angular/src/test-data/non-ee-data.ts diff --git a/packages/sitecore-jss-cli/.npmignore b/packages/sitecore-jss-cli/.npmignore deleted file mode 100644 index 2277964bfa..0000000000 --- a/packages/sitecore-jss-cli/.npmignore +++ /dev/null @@ -1,15 +0,0 @@ -src -testData -sitecore -index.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -npm-debug* -!/types -.nycrc -*.tgz diff --git a/packages/sitecore-jss-cli/.nycrc b/packages/sitecore-jss-cli/.nycrc index 5639aa4cb0..8759a60cc8 100644 --- a/packages/sitecore-jss-cli/.nycrc +++ b/packages/sitecore-jss-cli/.nycrc @@ -5,7 +5,7 @@ "exclude": [ "**/*.d.ts", "**/*.test.ts", - "src/testData", + "src/test-data", "dist", "src/test.ts" ], diff --git a/packages/sitecore-jss-cli/package.json b/packages/sitecore-jss-cli/package.json index 4919bc0135..63fb22456c 100644 --- a/packages/sitecore-jss-cli/package.json +++ b/packages/sitecore-jss-cli/package.json @@ -63,5 +63,9 @@ "ts-node": "^8.4.1", "typescript": "~4.3.5" }, - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "types" + ] } diff --git a/packages/sitecore-jss-dev-tools/.npmignore b/packages/sitecore-jss-dev-tools/.npmignore deleted file mode 100644 index 56a24e1aa2..0000000000 --- a/packages/sitecore-jss-dev-tools/.npmignore +++ /dev/null @@ -1,16 +0,0 @@ -src -testData -sitecore -index.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -npm-debug* -*.log -!/types -.nycrc -*.tgz diff --git a/packages/sitecore-jss-dev-tools/.nycrc b/packages/sitecore-jss-dev-tools/.nycrc index 02830e0393..50f38c32b7 100644 --- a/packages/sitecore-jss-dev-tools/.nycrc +++ b/packages/sitecore-jss-dev-tools/.nycrc @@ -5,7 +5,7 @@ "exclude": [ "**/*.d.ts", "**/*.test.ts", - "src/**/testData", + "src/**/test-data", "src/pipelines/test", "dist", "types" diff --git a/packages/sitecore-jss-dev-tools/package.json b/packages/sitecore-jss-dev-tools/package.json index 1ad7df4d25..66fab183e9 100644 --- a/packages/sitecore-jss-dev-tools/package.json +++ b/packages/sitecore-jss-dev-tools/package.json @@ -87,5 +87,9 @@ "typescript": "~4.3.5" }, "types": "types/index.d.ts", - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "types" + ] } diff --git a/packages/sitecore-jss-dev-tools/src/digest.test.ts b/packages/sitecore-jss-dev-tools/src/digest.test.ts index 391fe0d489..12dfd01b18 100644 --- a/packages/sitecore-jss-dev-tools/src/digest.test.ts +++ b/packages/sitecore-jss-dev-tools/src/digest.test.ts @@ -4,7 +4,7 @@ import { digest, hmac } from './digest'; describe('digest', () => { describe('digest', () => { it('should generate expected file hash', () => { - const inputPath = './src/testData/digest/hello.txt'; + const inputPath = './src/test-data/digest/hello.txt'; return digest(inputPath).then((result) => expect(result).to.equal('uU0nuZNNPgilLlLX2n2r+sSE7+N6U4DukIj3rOLvzek=') ); diff --git a/packages/sitecore-jss-dev-tools/src/mergeFs.test.ts b/packages/sitecore-jss-dev-tools/src/mergeFs.test.ts index 38f3ee8f5e..f06b78f068 100644 --- a/packages/sitecore-jss-dev-tools/src/mergeFs.test.ts +++ b/packages/sitecore-jss-dev-tools/src/mergeFs.test.ts @@ -7,14 +7,14 @@ describe('merge files', () => { describe('merge route data', () => { it('should generate data without error', () => { - const inputPath = './src/testData/mergeFs/routes'; + const inputPath = './src/test-data/mergeFs/routes'; return mergeFs(inputPath).then((result) => expect(result).to.not.be.undefined); }); }); describe('merge non-route data', () => { it('should generate data without error', () => { - const inputPath = './src/testData/mergeFs/non-routes'; + const inputPath = './src/test-data/mergeFs/non-routes'; return mergeFs(inputPath).then((result) => expect(result).to.not.be.undefined); }); }); diff --git a/packages/sitecore-jss-dev-tools/src/testData/digest/hello.txt b/packages/sitecore-jss-dev-tools/src/test-data/digest/hello.txt similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/digest/hello.txt rename to packages/sitecore-jss-dev-tools/src/test-data/digest/hello.txt diff --git a/packages/sitecore-jss-dev-tools/src/testData/mergeFs/non-routes/Forms/Download.json b/packages/sitecore-jss-dev-tools/src/test-data/mergeFs/non-routes/Forms/Download.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/mergeFs/non-routes/Forms/Download.json rename to packages/sitecore-jss-dev-tools/src/test-data/mergeFs/non-routes/Forms/Download.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/mergeFs/non-routes/MoarContent/DynamicContent0.json b/packages/sitecore-jss-dev-tools/src/test-data/mergeFs/non-routes/MoarContent/DynamicContent0.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/mergeFs/non-routes/MoarContent/DynamicContent0.json rename to packages/sitecore-jss-dev-tools/src/test-data/mergeFs/non-routes/MoarContent/DynamicContent0.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/mergeFs/non-routes/MoarContent/test/Test.json b/packages/sitecore-jss-dev-tools/src/test-data/mergeFs/non-routes/MoarContent/test/Test.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/mergeFs/non-routes/MoarContent/test/Test.json rename to packages/sitecore-jss-dev-tools/src/test-data/mergeFs/non-routes/MoarContent/test/Test.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/mergeFs/non-routes/MoarContent2/DynamicContent1.json b/packages/sitecore-jss-dev-tools/src/test-data/mergeFs/non-routes/MoarContent2/DynamicContent1.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/mergeFs/non-routes/MoarContent2/DynamicContent1.json rename to packages/sitecore-jss-dev-tools/src/test-data/mergeFs/non-routes/MoarContent2/DynamicContent1.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/about/index.json b/packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/about/index.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/about/index.json rename to packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/about/index.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/about/sub-about/index.json b/packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/about/sub-about/index.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/about/sub-about/index.json rename to packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/about/sub-about/index.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/empty/empty.json b/packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/empty/empty.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/empty/empty.json rename to packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/empty/empty.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/index.json b/packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/index.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/index.json rename to packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/index.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/portfolio/index.json b/packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/portfolio/index.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/portfolio/index.json rename to packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/portfolio/index.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/services/index.json b/packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/services/index.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/mergeFs/routes/services/index.json rename to packages/sitecore-jss-dev-tools/src/test-data/mergeFs/routes/services/index.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/pull/routeData/en.json b/packages/sitecore-jss-dev-tools/src/test-data/pull/routeData/en.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/pull/routeData/en.json rename to packages/sitecore-jss-dev-tools/src/test-data/pull/routeData/en.json diff --git a/packages/sitecore-jss-dev-tools/src/testData/pull/routeData/services/en.json b/packages/sitecore-jss-dev-tools/src/test-data/pull/routeData/services/en.json similarity index 100% rename from packages/sitecore-jss-dev-tools/src/testData/pull/routeData/services/en.json rename to packages/sitecore-jss-dev-tools/src/test-data/pull/routeData/services/en.json diff --git a/packages/sitecore-jss-forms/.npmignore b/packages/sitecore-jss-forms/.npmignore deleted file mode 100644 index af4363fcb3..0000000000 --- a/packages/sitecore-jss-forms/.npmignore +++ /dev/null @@ -1,16 +0,0 @@ -src -testData -sitecore -index.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -npm-debug* -*.log -!/types -.nycrc -*.tgz \ No newline at end of file diff --git a/packages/sitecore-jss-forms/.nycrc b/packages/sitecore-jss-forms/.nycrc index 8f5760006c..afad1c8ecf 100644 --- a/packages/sitecore-jss-forms/.nycrc +++ b/packages/sitecore-jss-forms/.nycrc @@ -5,7 +5,7 @@ "exclude": [ "**/*.d.ts", "**/*.test.ts", - "src/testData", + "src/test-data", "dist", "src/test.ts", "src/index.ts", diff --git a/packages/sitecore-jss-forms/package.json b/packages/sitecore-jss-forms/package.json index 2ebdc377f4..d8370ceff9 100644 --- a/packages/sitecore-jss-forms/package.json +++ b/packages/sitecore-jss-forms/package.json @@ -48,5 +48,9 @@ }, "description": "", "types": "types/index.d.ts", - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "types" + ] } diff --git a/packages/sitecore-jss-forms/tsconfig.json b/packages/sitecore-jss-forms/tsconfig.json index 132db1c773..a12b2c8ed2 100644 --- a/packages/sitecore-jss-forms/tsconfig.json +++ b/packages/sitecore-jss-forms/tsconfig.json @@ -13,6 +13,6 @@ "dist", "src/customTypes", "src/**/*.test.ts", - "src/testData/*.ts" + "src/test-data/*.ts" ] } diff --git a/packages/sitecore-jss-nextjs/.npmignore b/packages/sitecore-jss-nextjs/.npmignore deleted file mode 100644 index 413b0fa53e..0000000000 --- a/packages/sitecore-jss-nextjs/.npmignore +++ /dev/null @@ -1,19 +0,0 @@ -src -testData -sitecore -index.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -tsconfig-esm.json -npm-debug* -*.log -!/types -.nycrc -.nyc_output -coverage -*.tgz diff --git a/packages/sitecore-jss-nextjs/.nycrc b/packages/sitecore-jss-nextjs/.nycrc index 9e460ccffa..433a686f8e 100644 --- a/packages/sitecore-jss-nextjs/.nycrc +++ b/packages/sitecore-jss-nextjs/.nycrc @@ -8,7 +8,7 @@ "**/*.test.tsx", "**/*.test.ts", "src/tests", - "src/testData", + "src/test-data", "dist", "**/sharedTypes.ts" ], diff --git a/packages/sitecore-jss-nextjs/package.json b/packages/sitecore-jss-nextjs/package.json index 3094c6a2fd..99a6b55e82 100644 --- a/packages/sitecore-jss-nextjs/package.json +++ b/packages/sitecore-jss-nextjs/package.json @@ -78,5 +78,11 @@ }, "description": "", "types": "types/index.d.ts", - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "types", + "./*.js", + "./*.d.ts" + ] } diff --git a/packages/sitecore-jss-nextjs/src/middleware/editing-data-cache.test.ts b/packages/sitecore-jss-nextjs/src/middleware/editing-data-cache.test.ts index cc311d7ad3..dce2457c35 100644 --- a/packages/sitecore-jss-nextjs/src/middleware/editing-data-cache.test.ts +++ b/packages/sitecore-jss-nextjs/src/middleware/editing-data-cache.test.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { EditingData } from '../sharedTypes/editing-data'; import { EditingDataDiskCache } from './editing-data-cache'; -import { data } from '../testData/editing-data'; +import { data } from '../test-data/editing-data'; describe('EditingDataDiskCache', () => { it('should write/read editing data', () => { diff --git a/packages/sitecore-jss-nextjs/src/middleware/editing-render-middleware.test.ts b/packages/sitecore-jss-nextjs/src/middleware/editing-render-middleware.test.ts index 483795b86e..16c87ef5b7 100644 --- a/packages/sitecore-jss-nextjs/src/middleware/editing-render-middleware.test.ts +++ b/packages/sitecore-jss-nextjs/src/middleware/editing-render-middleware.test.ts @@ -6,7 +6,7 @@ import { AxiosDataFetcher } from '@sitecore-jss/sitecore-jss'; import { EditingDataService } from '../services/editing-data-service'; import { QUERY_PARAM_EDITING_SECRET } from '../services/editing-data-service'; import { EditingPreviewData } from '../sharedTypes/editing-data'; -import { EE_PATH, EE_LANGUAGE, EE_LAYOUT, EE_DICTIONARY, EE_BODY } from '../testData/ee-data'; +import { EE_PATH, EE_LANGUAGE, EE_LAYOUT, EE_DICTIONARY, EE_BODY } from '../test-data/ee-data'; import { EditingRenderMiddleware, extractEditingData } from './editing-render-middleware'; import { spy, match } from 'sinon'; import sinonChai from 'sinon-chai'; diff --git a/packages/sitecore-jss-nextjs/src/services/graphql-sitemap-service.test.ts b/packages/sitecore-jss-nextjs/src/services/graphql-sitemap-service.test.ts index a3478829ca..2237398b86 100644 --- a/packages/sitecore-jss-nextjs/src/services/graphql-sitemap-service.test.ts +++ b/packages/sitecore-jss-nextjs/src/services/graphql-sitemap-service.test.ts @@ -5,9 +5,9 @@ import { GraphQLSitemapServiceConfig, languageError, } from './graphql-sitemap-service'; -import sitemapDefaultQueryResult from '../testData/sitemapDefaultQueryResult.json'; -import sitemapPersonalizeQueryResult from '../testData/sitemapPersonalizeQueryResult.json'; -import sitemapServiceResult from '../testData/sitemapServiceResult'; +import sitemapDefaultQueryResult from '../test-data/sitemapDefaultQueryResult.json'; +import sitemapPersonalizeQueryResult from '../test-data/sitemapPersonalizeQueryResult.json'; +import sitemapServiceResult from '../test-data/sitemapServiceResult'; import { GraphQLClient, GraphQLRequestClient } from '@sitecore-jss/sitecore-jss/graphql'; class TestService extends GraphQLSitemapService { diff --git a/packages/sitecore-jss-nextjs/src/testData/editing-data.ts b/packages/sitecore-jss-nextjs/src/test-data/editing-data.ts similarity index 100% rename from packages/sitecore-jss-nextjs/src/testData/editing-data.ts rename to packages/sitecore-jss-nextjs/src/test-data/editing-data.ts diff --git a/packages/sitecore-jss-nextjs/src/testData/ee-data.ts b/packages/sitecore-jss-nextjs/src/test-data/ee-data.ts similarity index 100% rename from packages/sitecore-jss-nextjs/src/testData/ee-data.ts rename to packages/sitecore-jss-nextjs/src/test-data/ee-data.ts diff --git a/packages/sitecore-jss-nextjs/src/testData/mockAppRootQueryResponse.json b/packages/sitecore-jss-nextjs/src/test-data/mockAppRootQueryResponse.json similarity index 100% rename from packages/sitecore-jss-nextjs/src/testData/mockAppRootQueryResponse.json rename to packages/sitecore-jss-nextjs/src/test-data/mockAppRootQueryResponse.json diff --git a/packages/sitecore-jss-nextjs/src/testData/sitemapDefaultQueryResult.json b/packages/sitecore-jss-nextjs/src/test-data/sitemapDefaultQueryResult.json similarity index 100% rename from packages/sitecore-jss-nextjs/src/testData/sitemapDefaultQueryResult.json rename to packages/sitecore-jss-nextjs/src/test-data/sitemapDefaultQueryResult.json diff --git a/packages/sitecore-jss-nextjs/src/testData/sitemapPersonalizeQueryResult.json b/packages/sitecore-jss-nextjs/src/test-data/sitemapPersonalizeQueryResult.json similarity index 100% rename from packages/sitecore-jss-nextjs/src/testData/sitemapPersonalizeQueryResult.json rename to packages/sitecore-jss-nextjs/src/test-data/sitemapPersonalizeQueryResult.json diff --git a/packages/sitecore-jss-nextjs/src/testData/sitemapServiceResult.ts b/packages/sitecore-jss-nextjs/src/test-data/sitemapServiceResult.ts similarity index 100% rename from packages/sitecore-jss-nextjs/src/testData/sitemapServiceResult.ts rename to packages/sitecore-jss-nextjs/src/test-data/sitemapServiceResult.ts diff --git a/packages/sitecore-jss-nextjs/tsconfig.json b/packages/sitecore-jss-nextjs/tsconfig.json index bc9ebeb721..fd84953705 100644 --- a/packages/sitecore-jss-nextjs/tsconfig.json +++ b/packages/sitecore-jss-nextjs/tsconfig.json @@ -17,7 +17,7 @@ "middleware.d.ts", "edge.d.ts", "src/tests/*", - "src/testData/*", + "src/test-data/*", "**/*.test.ts", "**/*.test.tsx" ] diff --git a/packages/sitecore-jss-proxy/.npmignore b/packages/sitecore-jss-proxy/.npmignore deleted file mode 100644 index 56a24e1aa2..0000000000 --- a/packages/sitecore-jss-proxy/.npmignore +++ /dev/null @@ -1,16 +0,0 @@ -src -testData -sitecore -index.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -npm-debug* -*.log -!/types -.nycrc -*.tgz diff --git a/packages/sitecore-jss-proxy/package.json b/packages/sitecore-jss-proxy/package.json index 983f903e59..40f5718a12 100644 --- a/packages/sitecore-jss-proxy/package.json +++ b/packages/sitecore-jss-proxy/package.json @@ -47,5 +47,9 @@ "typescript": "~4.3.5" }, "types": "types/index.d.ts", - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "types" + ] } diff --git a/packages/sitecore-jss-proxy/tsconfig.json b/packages/sitecore-jss-proxy/tsconfig.json index be011edb1d..afdc9e20de 100644 --- a/packages/sitecore-jss-proxy/tsconfig.json +++ b/packages/sitecore-jss-proxy/tsconfig.json @@ -8,5 +8,5 @@ "typeRoots": ["node_modules/@types"], "declarationDir": "./types" }, - "exclude": ["node_modules", "types", "dist", "src/**/*.test.ts", "src/testData/*.ts"] + "exclude": ["node_modules", "types", "dist", "src/**/*.test.ts", "src/test-data/*.ts"] } diff --git a/packages/sitecore-jss-react-forms/.npmignore b/packages/sitecore-jss-react-forms/.npmignore deleted file mode 100644 index 56a24e1aa2..0000000000 --- a/packages/sitecore-jss-react-forms/.npmignore +++ /dev/null @@ -1,16 +0,0 @@ -src -testData -sitecore -index.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -npm-debug* -*.log -!/types -.nycrc -*.tgz diff --git a/packages/sitecore-jss-react-forms/.nycrc b/packages/sitecore-jss-react-forms/.nycrc index 9e460ccffa..433a686f8e 100644 --- a/packages/sitecore-jss-react-forms/.nycrc +++ b/packages/sitecore-jss-react-forms/.nycrc @@ -8,7 +8,7 @@ "**/*.test.tsx", "**/*.test.ts", "src/tests", - "src/testData", + "src/test-data", "dist", "**/sharedTypes.ts" ], diff --git a/packages/sitecore-jss-react-forms/package.json b/packages/sitecore-jss-react-forms/package.json index a3d84dc854..995cd6ab4c 100644 --- a/packages/sitecore-jss-react-forms/package.json +++ b/packages/sitecore-jss-react-forms/package.json @@ -60,5 +60,9 @@ }, "description": "", "types": "types/index.d.ts", - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "types" + ] } diff --git a/packages/sitecore-jss-react-forms/tsconfig.json b/packages/sitecore-jss-react-forms/tsconfig.json index 49c995e96c..9d4264d0fc 100644 --- a/packages/sitecore-jss-react-forms/tsconfig.json +++ b/packages/sitecore-jss-react-forms/tsconfig.json @@ -14,7 +14,7 @@ "typings", "dist", "src/tests/*", - "src/testData/*", + "src/test-data/*", "**/*.test.ts", "**/*.test.tsx" ] diff --git a/packages/sitecore-jss-react-native/.eslintrc b/packages/sitecore-jss-react-native/.eslintrc index 2bc1e623a4..5392497eb9 100644 --- a/packages/sitecore-jss-react-native/.eslintrc +++ b/packages/sitecore-jss-react-native/.eslintrc @@ -1,17 +1,8 @@ { - "extends": [ - "../../.eslintrc", - "../../eslint-configs/typescript" - ], - "plugins": [ - "react-native" - ], + "extends": ["../../.eslintrc", "../../eslint-configs/typescript"], + "plugins": ["react-native"], "env": { "jest": true }, - "ignorePatterns": [ - "src/**/*.test.*", - "src/tests/*", - "src/testData/*" - ] + "ignorePatterns": ["src/**/*.test.*", "src/tests/*", "src/test-data/*"] } diff --git a/packages/sitecore-jss-react-native/.npmignore b/packages/sitecore-jss-react-native/.npmignore deleted file mode 100644 index 56a24e1aa2..0000000000 --- a/packages/sitecore-jss-react-native/.npmignore +++ /dev/null @@ -1,16 +0,0 @@ -src -testData -sitecore -index.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -npm-debug* -*.log -!/types -.nycrc -*.tgz diff --git a/packages/sitecore-jss-react-native/jest.config.coverage.js b/packages/sitecore-jss-react-native/jest.config.coverage.js index 7bb7f04b23..139ae1940f 100644 --- a/packages/sitecore-jss-react-native/jest.config.coverage.js +++ b/packages/sitecore-jss-react-native/jest.config.coverage.js @@ -7,7 +7,7 @@ const coverageConfig = { coveragePathIgnorePatterns: [ '/node_modules/', '/dist/', - '/testData/', + '/test-data/', '/types/', '.snap', '.test.js', diff --git a/packages/sitecore-jss-react-native/package.json b/packages/sitecore-jss-react-native/package.json index bd559b7806..0a9e310c43 100644 --- a/packages/sitecore-jss-react-native/package.json +++ b/packages/sitecore-jss-react-native/package.json @@ -4,7 +4,7 @@ "description": "", "main": "dist/index.js", "scripts": { - "build": "npm run clean && npm run typecheck && babel src --out-dir dist --extensions \".ts,.tsx\" --ignore \"*.test.ts,*.test.js,testData,tests,__snapshots__\"", + "build": "npm run clean && npm run typecheck && babel src --out-dir dist --extensions \".ts,.tsx\" --ignore \"*.test.ts,*.test.js,test-data,tests,__snapshots__\"", "clean": "del-cli dist types", "typecheck": "tsc", "fixcrlf": "eslint --rule 'linebreak-style: [\"error\", \"unix\"]' --ext .ts --no-eslintrc --fix ./dist", @@ -69,5 +69,8 @@ "babel-core": "6.26.3" }, "types": "./types/index.d.ts", - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist" + ] } diff --git a/packages/sitecore-jss-react-native/src/components/Placeholder.test.tsx b/packages/sitecore-jss-react-native/src/components/Placeholder.test.tsx index 64b9b34fa1..f74f38ac94 100644 --- a/packages/sitecore-jss-react-native/src/components/Placeholder.test.tsx +++ b/packages/sitecore-jss-react-native/src/components/Placeholder.test.tsx @@ -5,9 +5,9 @@ import renderer from 'react-test-renderer'; import { ComponentRendering, RouteData } from '@sitecore-jss/sitecore-jss/layout'; import { Placeholder, PlaceholderComponentProps } from './Placeholder'; import { SitecoreContext } from './SitecoreContext'; -import { devData } from '../../testData/dev-data'; -import { lsDataEeOff } from '../../testData/LS-data-EE-off'; -import {ComponentFactory} from './sharedTypes'; +import { devData } from '../../test-data/dev-data'; +import { lsDataEeOff } from '../../test-data/LS-data-EE-off'; +import { ComponentFactory } from './sharedTypes'; const componentFactory = (componentName: string) => { const components = new Map(); @@ -30,9 +30,9 @@ const componentFactory = (componentName: string) => { fields: { message?: { value: string; - } - } - } + }; + }; + }; const DownloadCallout: React.SFC = (props) => ( @@ -40,7 +40,7 @@ const componentFactory = (componentName: string) => { ); DownloadCallout.propTypes = { - fields: PropTypes.any + fields: PropTypes.any, }; components.set('DownloadCallout', DownloadCallout); @@ -58,7 +58,8 @@ describe('', () => { testData.forEach((dataSet) => { describe(`with ${dataSet.label}`, () => { test('should render a placeholder with given key', () => { - const phData = dataSet.data.sitecore.route.placeholders.main as unknown as ComponentRendering[]; + const phData = (dataSet.data.sitecore.route.placeholders + .main as unknown) as ComponentRendering[]; const component = phData.find((c: ComponentRendering) => c.componentName); const phKey = 'page-content'; @@ -66,7 +67,11 @@ describe('', () => { // you'll need to visually inspect the snapshot to ensure expected rendering. const renderedComponent = renderer .create( - + ) .toJSON(); @@ -75,7 +80,7 @@ describe('', () => { }); test('should render nested placeholders and props correctly', () => { - const component = dataSet.data.sitecore.route as unknown as RouteData; + const component = (dataSet.data.sitecore.route as unknown) as RouteData; const phKey = 'main'; const renderedComponent = renderer @@ -97,7 +102,8 @@ describe('', () => { // use local mocks to avoid console warnings from Placeholder about unknown nested placeholders const Home = () => ; - const factory: ComponentFactory = (componentName: string) => (componentName === 'Home' ? Home : null); + const factory: ComponentFactory = (componentName: string) => + componentName === 'Home' ? Home : null; const route = { placeholders: { @@ -114,7 +120,13 @@ describe('', () => { const phKey = 'main'; const renderedComponent = renderer - .create() + .create( + + ) .toJSON(); // placeholder should only render "Home" component diff --git a/packages/sitecore-jss-react-native/testData/LS-data-EE-off.ts b/packages/sitecore-jss-react-native/test-data/LS-data-EE-off.ts similarity index 100% rename from packages/sitecore-jss-react-native/testData/LS-data-EE-off.ts rename to packages/sitecore-jss-react-native/test-data/LS-data-EE-off.ts diff --git a/packages/sitecore-jss-react-native/testData/dev-data.ts b/packages/sitecore-jss-react-native/test-data/dev-data.ts similarity index 100% rename from packages/sitecore-jss-react-native/testData/dev-data.ts rename to packages/sitecore-jss-react-native/test-data/dev-data.ts diff --git a/packages/sitecore-jss-react-native/tsconfig.json b/packages/sitecore-jss-react-native/tsconfig.json index 825f997997..2f29c7e2a1 100644 --- a/packages/sitecore-jss-react-native/tsconfig.json +++ b/packages/sitecore-jss-react-native/tsconfig.json @@ -15,7 +15,7 @@ "types", "typings", "dist", - "testData/*", + "test-data/*", "**/*.test.ts", "**/*.test.tsx", "__snapshots__" diff --git a/packages/sitecore-jss-react/.npmignore b/packages/sitecore-jss-react/.npmignore deleted file mode 100644 index 56a24e1aa2..0000000000 --- a/packages/sitecore-jss-react/.npmignore +++ /dev/null @@ -1,16 +0,0 @@ -src -testData -sitecore -index.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -npm-debug* -*.log -!/types -.nycrc -*.tgz diff --git a/packages/sitecore-jss-react/.nycrc b/packages/sitecore-jss-react/.nycrc index 9e460ccffa..433a686f8e 100644 --- a/packages/sitecore-jss-react/.nycrc +++ b/packages/sitecore-jss-react/.nycrc @@ -8,7 +8,7 @@ "**/*.test.tsx", "**/*.test.ts", "src/tests", - "src/testData", + "src/test-data", "dist", "**/sharedTypes.ts" ], diff --git a/packages/sitecore-jss-react/package.json b/packages/sitecore-jss-react/package.json index 54fec5a006..ebcced2fe6 100644 --- a/packages/sitecore-jss-react/package.json +++ b/packages/sitecore-jss-react/package.json @@ -68,5 +68,9 @@ }, "description": "", "types": "types/index.d.ts", - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "types" + ] } diff --git a/packages/sitecore-jss-react/src/components/Image.test.tsx b/packages/sitecore-jss-react/src/components/Image.test.tsx index 0bc3866a05..918f89613a 100644 --- a/packages/sitecore-jss-react/src/components/Image.test.tsx +++ b/packages/sitecore-jss-react/src/components/Image.test.tsx @@ -3,7 +3,7 @@ import chai from 'chai'; import chaiString from 'chai-string'; import { mount } from 'enzyme'; import React from 'react'; -import { imageField as eeImageData } from '../testData/ee-data'; +import { imageField as eeImageData } from '../test-data/ee-data'; import { Image, ImageField } from './Image'; const expect = chai.use(chaiString).expect; diff --git a/packages/sitecore-jss-react/src/components/Link.test.tsx b/packages/sitecore-jss-react/src/components/Link.test.tsx index 8eef32bb9b..f3cd249d39 100644 --- a/packages/sitecore-jss-react/src/components/Link.test.tsx +++ b/packages/sitecore-jss-react/src/components/Link.test.tsx @@ -3,7 +3,7 @@ import { expect } from 'chai'; import { mount } from 'enzyme'; import { Link, LinkField } from './Link'; -import { generalLinkField as eeLinkData } from '../testData/ee-data'; +import { generalLinkField as eeLinkData } from '../test-data/ee-data'; describe('', () => { it('should render nothing with missing field', () => { diff --git a/packages/sitecore-jss-react/src/components/Placeholder.test.tsx b/packages/sitecore-jss-react/src/components/Placeholder.test.tsx index 593026c858..a86cd56579 100644 --- a/packages/sitecore-jss-react/src/components/Placeholder.test.tsx +++ b/packages/sitecore-jss-react/src/components/Placeholder.test.tsx @@ -17,9 +17,9 @@ import { sxaRenderingVariantData, sxaRenderingVariantDataWithCommonContainerName as sxaRenderingCommonContainerName, sxaRenderingVariantDataWithoutCommonContainerName as sxaRenderingWithoutContainerName, -} from '../testData/non-ee-data'; -import { convertedData as eeData, emptyPlaceholderData } from '../testData/ee-data'; -import * as SxaRichText from '../testData/sxa-rich-text'; +} from '../test-data/non-ee-data'; +import { convertedData as eeData, emptyPlaceholderData } from '../test-data/ee-data'; +import * as SxaRichText from '../test-data/sxa-rich-text'; import { MissingComponent, MissingComponentProps } from './MissingComponent'; import { HiddenRendering } from './HiddenRendering'; diff --git a/packages/sitecore-jss-react/src/components/RichText.test.tsx b/packages/sitecore-jss-react/src/components/RichText.test.tsx index b1ccdba8da..3aebdd0e45 100644 --- a/packages/sitecore-jss-react/src/components/RichText.test.tsx +++ b/packages/sitecore-jss-react/src/components/RichText.test.tsx @@ -3,7 +3,7 @@ import { expect } from 'chai'; import { mount } from 'enzyme'; import { RichText, RichTextField } from './RichText'; -import { richTextField as eeRichTextData } from '../testData/ee-data'; +import { richTextField as eeRichTextData } from '../test-data/ee-data'; describe('', () => { it('should render nothing with missing field', () => { diff --git a/packages/sitecore-jss-react/src/components/Text.test.tsx b/packages/sitecore-jss-react/src/components/Text.test.tsx index a3a912b306..788b2f3bbc 100644 --- a/packages/sitecore-jss-react/src/components/Text.test.tsx +++ b/packages/sitecore-jss-react/src/components/Text.test.tsx @@ -4,7 +4,7 @@ import { expect } from 'chai'; import { mount } from 'enzyme'; import { Text, TextField } from './Text'; -import { textField as eeTextData } from '../testData/ee-data'; +import { textField as eeTextData } from '../test-data/ee-data'; describe('', () => { it('should render nothing with missing field', () => { diff --git a/packages/sitecore-jss-react/src/testData/ee-data.ts b/packages/sitecore-jss-react/src/test-data/ee-data.ts similarity index 100% rename from packages/sitecore-jss-react/src/testData/ee-data.ts rename to packages/sitecore-jss-react/src/test-data/ee-data.ts diff --git a/packages/sitecore-jss-react/src/testData/non-ee-data.ts b/packages/sitecore-jss-react/src/test-data/non-ee-data.ts similarity index 100% rename from packages/sitecore-jss-react/src/testData/non-ee-data.ts rename to packages/sitecore-jss-react/src/test-data/non-ee-data.ts diff --git a/packages/sitecore-jss-react/src/testData/sxa-rich-text.tsx b/packages/sitecore-jss-react/src/test-data/sxa-rich-text.tsx similarity index 100% rename from packages/sitecore-jss-react/src/testData/sxa-rich-text.tsx rename to packages/sitecore-jss-react/src/test-data/sxa-rich-text.tsx diff --git a/packages/sitecore-jss-react/tsconfig.json b/packages/sitecore-jss-react/tsconfig.json index 6f2ec913be..43d011ee2f 100644 --- a/packages/sitecore-jss-react/tsconfig.json +++ b/packages/sitecore-jss-react/tsconfig.json @@ -15,7 +15,7 @@ "typings", "dist", "src/tests/*", - "src/testData/*", + "src/test-data/*", "**/*.test.ts", "**/*.test.tsx" ] diff --git a/packages/sitecore-jss-rendering-host/.npmignore b/packages/sitecore-jss-rendering-host/.npmignore deleted file mode 100644 index 56a24e1aa2..0000000000 --- a/packages/sitecore-jss-rendering-host/.npmignore +++ /dev/null @@ -1,16 +0,0 @@ -src -testData -sitecore -index.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -npm-debug* -*.log -!/types -.nycrc -*.tgz diff --git a/packages/sitecore-jss-rendering-host/package.json b/packages/sitecore-jss-rendering-host/package.json index d2a7d88ed9..253ecf6dec 100644 --- a/packages/sitecore-jss-rendering-host/package.json +++ b/packages/sitecore-jss-rendering-host/package.json @@ -61,5 +61,10 @@ "repository": { "type": "git", "url": "git+https://github.com/Sitecore/jss.git" - } + }, + "files": [ + "dist", + "types", + "global.d.ts" + ] } diff --git a/packages/sitecore-jss-rendering-host/tsconfig.json b/packages/sitecore-jss-rendering-host/tsconfig.json index fd0c248937..88105240c1 100644 --- a/packages/sitecore-jss-rendering-host/tsconfig.json +++ b/packages/sitecore-jss-rendering-host/tsconfig.json @@ -8,5 +8,5 @@ "typeRoots": ["node_modules/@types"], "declarationDir": "./types" }, - "exclude": ["node_modules", "types", "dist", "src/**/*.test.ts", "src/testData/*.ts"] + "exclude": ["node_modules", "types", "dist", "src/**/*.test.ts", "src/test-data/*.ts"] } diff --git a/packages/sitecore-jss-vue/.npmignore b/packages/sitecore-jss-vue/.npmignore deleted file mode 100644 index 29473576e7..0000000000 --- a/packages/sitecore-jss-vue/.npmignore +++ /dev/null @@ -1,19 +0,0 @@ -src -testData -sitecore -*.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -npm-debug* -*.log -jest.config.js -__snapshots__ -.prettierignore -!/types -.nycrc -*.tgz diff --git a/packages/sitecore-jss-vue/package.json b/packages/sitecore-jss-vue/package.json index ea810a3a63..03d8686523 100644 --- a/packages/sitecore-jss-vue/package.json +++ b/packages/sitecore-jss-vue/package.json @@ -53,5 +53,9 @@ "@vue/compiler-sfc": "^3.0.11" }, "types": "./types/index.d.ts", - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "types" + ] } diff --git a/packages/sitecore-jss/.npmignore b/packages/sitecore-jss/.npmignore deleted file mode 100644 index af4363fcb3..0000000000 --- a/packages/sitecore-jss/.npmignore +++ /dev/null @@ -1,16 +0,0 @@ -src -testData -sitecore -index.test.js -.vscode -.babelrc -.eslintrc -.npmignore -.gitignore -jsconfig.json -tsconfig.json -npm-debug* -*.log -!/types -.nycrc -*.tgz \ No newline at end of file diff --git a/packages/sitecore-jss/.nycrc b/packages/sitecore-jss/.nycrc index 8f5760006c..afad1c8ecf 100644 --- a/packages/sitecore-jss/.nycrc +++ b/packages/sitecore-jss/.nycrc @@ -5,7 +5,7 @@ "exclude": [ "**/*.d.ts", "**/*.test.ts", - "src/testData", + "src/test-data", "dist", "src/test.ts", "src/index.ts", diff --git a/packages/sitecore-jss/package.json b/packages/sitecore-jss/package.json index 9186e359e4..fefb66c79f 100644 --- a/packages/sitecore-jss/package.json +++ b/packages/sitecore-jss/package.json @@ -64,5 +64,11 @@ }, "description": "", "types": "types/index.d.ts", - "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b" + "gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b", + "files": [ + "dist", + "types", + "./*.js", + "./*.d.ts" + ] } diff --git a/packages/sitecore-jss/tsconfig.json b/packages/sitecore-jss/tsconfig.json index ff9dda3387..8439d2d786 100644 --- a/packages/sitecore-jss/tsconfig.json +++ b/packages/sitecore-jss/tsconfig.json @@ -20,6 +20,6 @@ "site.d.ts", "personalize.d.ts", "src/**/*.test.ts", - "src/testData/*" + "src/test-data/*" ] }